Skip to content

Commit 77bb015

Browse files
authored
Remove the obsolete NuGet hack (#16491)
1 parent 685dbf0 commit 77bb015

File tree

4 files changed

+0
-29
lines changed

4 files changed

+0
-29
lines changed

src/Microsoft.FSharp.Compiler/Microsoft.FSharp.Compiler.fsproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@
99
<PackageDescription>.NET Core compatible version of the F# compiler fsc.exe.</PackageDescription>
1010
<PackageReleaseNotes>/blob/main/release-notes.md#FSharp-Tools-$(FSProductVersionReleaseNotesVersion)</PackageReleaseNotes>
1111
<NoDefaultExcludes>true</NoDefaultExcludes>
12-
<!-- Workaround to get rid of:
13-
error NU1505: Duplicate 'PackageDownload' items found.
14-
Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior.
15-
The duplicate 'PackageDownload' items are:
16-
Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2].
17-
-->
18-
<NoWarn>$(NoWarn);NU1505</NoWarn>
1912
</PropertyGroup>
2013

2114
<PropertyGroup>

src/fsc/fsc.targets

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
7-
<!-- Workaround to get rid of:
8-
error NU1505: Duplicate 'PackageDownload' items found.
9-
Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior.
10-
The duplicate 'PackageDownload' items are:
11-
Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2].
12-
-->
13-
<NoWarn>$(NoWarn);NU1505</NoWarn>
14-
157
<NoWarn>$(NoWarn);44</NoWarn> <!-- Obsolete -->
168
<NoWarn>$(NoWarn);75</NoWarn> <!-- InternalCommandLineOption -->
179
<AllowCrossTargeting>true</AllowCrossTargeting>

src/fsi/fsi.targets

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
7-
<!-- Workaround to get rid of:
8-
error NU1505: Duplicate 'PackageDownload' items found.
9-
Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior.
10-
The duplicate 'PackageDownload' items are:
11-
Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2].
12-
-->
13-
<NoWarn>$(NoWarn);NU1505</NoWarn>
147
<NoWarn>$(NoWarn);44</NoWarn> <!-- Obsolete -->
158
<AllowCrossTargeting>true</AllowCrossTargeting>
169
<OtherFlags>$(OtherFlags) --warnon:1182</OtherFlags>

tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
<OutputType>Exe</OutputType>
66
<TargetFrameworks>net472;net8.0</TargetFrameworks>
77
<TargetFrameworks Condition="'$(OS)' == 'Unix' or '$(BUILDING_USING_DOTNET)' == 'true'">net8.0</TargetFrameworks>
8-
<!-- Workaround to get rid of:
9-
error NU1505: Duplicate 'PackageDownload' items found.
10-
Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior.
11-
The duplicate 'PackageDownload' items are:
12-
Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2], Microsoft.NETCore.App.Host.win-x64 [6.0.2].
13-
-->
14-
<NoWarn>$(NoWarn);NU1505</NoWarn>
158
<NoWarn>$(NoWarn);44;75;</NoWarn>
169
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1710
<GenerateProgramFile>false</GenerateProgramFile>

0 commit comments

Comments
 (0)