Skip to content

Commit 432b8e5

Browse files
Stop bundling obsolete FSharp.NET.SDK (#51650)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1b7a79f commit 432b8e5

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

src/Layout/redist/targets/BundledSdks.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<ItemGroup>
44
<BundledSdk Include="NuGet.Build.Tasks.Pack" Version="$(NuGetBuildTasksPackPackageVersion)" />
55
<BundledSdk Include="Microsoft.NET.Sdk.WindowsDesktop" Version="$(MicrosoftNETSdkWindowsDesktopPackageVersion)" />
6-
<BundledSdk Include="FSharp.NET.Sdk" Version="1.0.4-bundled-0100" />
76
<BundledSdk Include="Microsoft.Docker.Sdk" Version="1.1.0" />
87

98
<BundledSdk Include="Microsoft.Build.Tasks.Git" Version="$(MicrosoftBuildTasksGitVersion)" />

src/Tasks/Microsoft.NET.Build.Tasks/Microsoft.NET.Build.Tasks.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
</LayoutFile>
141141

142142
<!-- Include some of the Sdks from the Stage 0 CLI for performance tests-->
143-
<Stage0SdkFile Include="$(_Stage0SdksFolder)\FSharp.NET.Sdk\**" SdkName="FSharp.NET.Sdk" />
144143
<Stage0SdkFile Include="$(_Stage0SdksFolder)\Microsoft.NET.Sdk.WindowsDesktop\**" SdkName="Microsoft.NET.Sdk.WindowsDesktop" />
145144
<LayoutFile Include="@(Stage0SdkFile)">
146145
<TargetPath>..\%(Stage0SdkFile.SdkName)\%(Stage0SdkFile.RecursiveDir)%(Stage0SdkFile.Filename)%(Stage0SdkFile.Extension)</TargetPath>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FSharp.props

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,13 @@ Copyright (c) .NET Foundation. All rights reserved.
1212

1313
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1414

15-
<!-- If any of these variables are set then we are building under the FSharp.NET.Sdk so use their logic -->
16-
<PropertyGroup Condition = "'$(UseBundledFSharpTargets)' == '' ">
17-
<!-- If any of these variables are set then we are building under the FSharp.NET.Sdk so use their logic -->
18-
<UseBundledFSharpTargets Condition = " '$(_FscTaskAssemblyPath_net)' != '' or '$(_FscTaskAssemblyPath_netcoreapp1_0)' != '' or '$(_FscToolFullPath_net)' != '' or '$(_FscToolFullPath_netcoreapp1_0)' != '' ">false</UseBundledFSharpTargets>
19-
<UseBundledFSharpTargets Condition = "'$(UseBundledFSharpTargets)' == '' ">true</UseBundledFSharpTargets>
20-
</PropertyGroup>
21-
2215
<!-- Shim to select the correct Microsoft.NET.Sdk.FSharp.props file.
2316
If running under desktop select Microsoft.NET.Sdk.FSharp.props file from VS deployment,
2417
if running core msbuild select Microsoft.NET.Sdk.FSharp.props from dotnet cli deployment -->
2518
<PropertyGroup>
2619
<FSharpPropsShim Condition = " '$(FSharpPropsShim)' == '' and Exists('$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.NetSdk.props') ">$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.NetSdk.props</FSharpPropsShim>
2720
<FSharpPropsShim Condition = " '$(FSharpPropsShim)' == '' and Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.NetSdk.props') ">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.NetSdk.props</FSharpPropsShim>
2821
</PropertyGroup>
29-
<Import Condition=" '$(UseBundledFSharpTargets)' == 'true' and Exists('$(FSharpPropsShim)') " Project="$(FSharpPropsShim)" />
22+
<Import Condition=" Exists('$(FSharpPropsShim)') " Project="$(FSharpPropsShim)" />
3023

3124
</Project>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FSharp.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ Copyright (c) .NET Foundation. All rights reserved.
2222
<FSharpOverridesTargetsShim Condition = " '$(FSharpOverridesTargetsShim)' == '' and Exists('$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.Overrides.NetSdk.targets') ">$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.Overrides.NetSdk.targets</FSharpOverridesTargetsShim>
2323
<FSharpOverridesTargetsShim Condition = " '$(FSharpOverridesTargetsShim)' == '' and Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Overrides.NetSdk.targets') ">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.Overrides.NetSdk.targets</FSharpOverridesTargetsShim>
2424
</PropertyGroup>
25-
<Import Condition=" '$(UseBundledFSharpTargets)' == 'true' and '$(IsCrossTargetingBuild)' != 'true' and Exists('$(FSharpOverridesTargetsShim)') " Project="$(FSharpOverridesTargetsShim)" />
25+
<Import Condition=" '$(IsCrossTargetingBuild)' != 'true' and Exists('$(FSharpOverridesTargetsShim)') " Project="$(FSharpOverridesTargetsShim)" />
2626

2727
</Project>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FSharpTargetsShim.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Copyright (c) .NET Foundation. All rights reserved.
1414

1515
<Import Project="$(MSBuildToolsPath)\Microsoft.Managed.Before.targets" />
1616

17-
<PropertyGroup Condition=" '$(UseBundledFSharpTargets)' == 'true' ">
17+
<PropertyGroup>
1818
<AppDesignerFolder Condition="'$(AppDesignerFolder)' == ''">Properties</AppDesignerFolder>
1919
</PropertyGroup>
2020

21-
<PropertyGroup Condition=" '$(DisableImplicitConfigurationDefines)' != 'true' and '$(UseBundledFSharpTargets)' == 'true' ">
21+
<PropertyGroup Condition=" '$(DisableImplicitConfigurationDefines)' != 'true' ">
2222
<ImplicitConfigurationDefine>$(Configuration.ToUpperInvariant())</ImplicitConfigurationDefine>
2323

2424
<!-- Replace dashes and periods in the configuration with underscores. This makes it more likely that
@@ -44,9 +44,9 @@ Copyright (c) .NET Foundation. All rights reserved.
4444
<FSharpDesignTimeTargetsPath Condition="'$(FSharpDesignTimeTargetsPath)' == ''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed\Microsoft.FSharp.DesignTime.targets</FSharpDesignTimeTargetsPath>
4545
</PropertyGroup>
4646
<Import Project="$(FSharpDesignTimeTargetsPath)"
47-
Condition=" '$(UseBundledFSharpTargets)' == 'true' and '$(FSharpDesignTimeTargetsPath)' != '' and Exists('$(FSharpDesignTimeTargetsPath)') " />
47+
Condition=" '$(FSharpDesignTimeTargetsPath)' != '' and Exists('$(FSharpDesignTimeTargetsPath)') " />
4848
<Import Project="$(MSBuildToolsPath)\Microsoft.Common.CrossTargeting.targets"
49-
Condition=" '$(UseBundledFSharpTargets)' == 'true' and '$(IsCrossTargetingBuild)' == 'true' "/>
49+
Condition=" '$(IsCrossTargetingBuild)' == 'true' "/>
5050

5151
<!-- ***************************************************************************************************************
5252
Shim to select the correct Microsoft.NET.Sdk.FSharp.targets file when not running
@@ -58,6 +58,6 @@ Copyright (c) .NET Foundation. All rights reserved.
5858
<FSharpTargetsShim Condition = " '$(FSharpTargetsShim)' == '' and Exists('$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.NetSdk.targets') ">$(MSBuildToolsPath)\FSharp\Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim>
5959
<FSharpTargetsShim Condition = " '$(FSharpTargetsShim)' == '' and Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.NetSdk.targets') ">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\FSharp\Microsoft.FSharp.NetSdk.targets</FSharpTargetsShim>
6060
</PropertyGroup>
61-
<Import Condition=" '$(UseBundledFSharpTargets)' == 'true' and '$(IsCrossTargetingBuild)' != 'true' and Exists('$(FSharpTargetsShim)') " Project="$(FSharpTargetsShim)" />
61+
<Import Condition=" '$(IsCrossTargetingBuild)' != 'true' and Exists('$(FSharpTargetsShim)') " Project="$(FSharpTargetsShim)" />
6262
<Import Project="$(MSBuildToolsPath)\Microsoft.Managed.After.targets" />
6363
</Project>

0 commit comments

Comments
 (0)