Skip to content

Commit fe16b0f

Browse files
committed
Fix target inconsistency in generated SDK targets
This was causing the SDKs to not be properly imported when specified as `#:sdk ...` in the C# file.
1 parent 9fc9d04 commit fe16b0f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/SmallSharp/Sdk.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="'$(MicrosoftCommonPropsHasBeenImported)' != 'true' and Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1919

2020
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk"
21-
Condition="!Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdks.props')" />
21+
Condition="!Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdk.props')" />
2222

23-
<Import Project="$(MSBuildProjectExtensionsPath)SmallSharp.sdks.props"
24-
Condition="Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdks.props')" />
23+
<Import Project="$(MSBuildProjectExtensionsPath)SmallSharp.sdk.props"
24+
Condition="Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdk.props')" />
2525

2626
<Import Project="..\build\SmallSharp.props" />
2727

src/SmallSharp/Sdk.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Project>
22

33
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk"
4-
Condition="!Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdks.targets')" />
4+
Condition="!Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdk.targets')" />
55

6-
<Import Project="$(MSBuildProjectExtensionsPath)SmallSharp.sdks.targets"
7-
Condition="Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdks.targets')" />
6+
<Import Project="$(MSBuildProjectExtensionsPath)SmallSharp.sdk.targets"
7+
Condition="Exists('$(MSBuildProjectExtensionsPath)SmallSharp.sdk.targets')" />
88

99
<Import Project="..\build\SmallSharp.targets" />
1010

0 commit comments

Comments
 (0)