From 2665f3620b6e93e412223217c0432b234bbc0e53 Mon Sep 17 00:00:00 2001 From: Vlad Zarytovskii Date: Sun, 3 Jul 2022 12:19:46 +0200 Subject: [PATCH] Fix NU1505 (#13423) --- src/fsc/fsc.targets | 8 ++++++++ src/fsi/fsi.targets | 7 +++++++ .../FSharp.Compiler.Service.Tests.fsproj | 7 +++++++ tests/PEVerify/PEVerify.csproj | 7 +++++++ .../CompiledCodeBenchmarks/MicroPerf/MicroPerf.fsproj | 7 +++++++ .../TaskPerf/TaskPerf/TaskPerf.fsproj | 7 +++++++ .../FSharp.Compiler.Benchmarks.fsproj | 7 +++++++ 7 files changed, 50 insertions(+) diff --git a/src/fsc/fsc.targets b/src/fsc/fsc.targets index e4b7d938cb4..9e4e4e48067 100644 --- a/src/fsc/fsc.targets +++ b/src/fsc/fsc.targets @@ -4,6 +4,14 @@ Exe + + $(NoWarn);NU1505 + $(NoWarn);44 $(NoWarn);75 true diff --git a/src/fsi/fsi.targets b/src/fsi/fsi.targets index 4ccc4ad6649..ce90d34c3cc 100644 --- a/src/fsi/fsi.targets +++ b/src/fsi/fsi.targets @@ -4,6 +4,13 @@ Exe + + $(NoWarn);NU1505 $(NoWarn);44 true $(OtherFlags) --warnon:1182 diff --git a/tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj b/tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj index bbc18f60f13..9e7230e54f6 100644 --- a/tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj +++ b/tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj @@ -5,6 +5,13 @@ Exe net472;net6.0 net6.0 + + $(NoWarn);NU1505 $(NoWarn);44;75; true false diff --git a/tests/PEVerify/PEVerify.csproj b/tests/PEVerify/PEVerify.csproj index 961cbc66379..d8761bd252e 100644 --- a/tests/PEVerify/PEVerify.csproj +++ b/tests/PEVerify/PEVerify.csproj @@ -7,6 +7,13 @@ net6.0 win-x86;win-x64;linux-x64;osx-x64 $(AssetTargetFallback);portable-net45+win8+wp8+wpa81 + + $(NoWarn);NU1505 $(NoWarn);1591 diff --git a/tests/benchmarks/CompiledCodeBenchmarks/MicroPerf/MicroPerf.fsproj b/tests/benchmarks/CompiledCodeBenchmarks/MicroPerf/MicroPerf.fsproj index ca33650ff2e..9b89d243beb 100644 --- a/tests/benchmarks/CompiledCodeBenchmarks/MicroPerf/MicroPerf.fsproj +++ b/tests/benchmarks/CompiledCodeBenchmarks/MicroPerf/MicroPerf.fsproj @@ -2,6 +2,13 @@ net6.0 Exe + + $(NoWarn);NU1505 true $(OtherFlags) --nowarn:1204 diff --git a/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf/TaskPerf.fsproj b/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf/TaskPerf.fsproj index c67780ef893..4d04ba47cb4 100644 --- a/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf/TaskPerf.fsproj +++ b/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf/TaskPerf.fsproj @@ -3,6 +3,13 @@ net6.0 Exe + + NU1505 true $(OtherFlags) --nowarn:1204 diff --git a/tests/benchmarks/FCSBenchmarks/CompilerServiceBenchmarks/FSharp.Compiler.Benchmarks.fsproj b/tests/benchmarks/FCSBenchmarks/CompilerServiceBenchmarks/FSharp.Compiler.Benchmarks.fsproj index edcd2ccfaed..ce0203b33e8 100644 --- a/tests/benchmarks/FCSBenchmarks/CompilerServiceBenchmarks/FSharp.Compiler.Benchmarks.fsproj +++ b/tests/benchmarks/FCSBenchmarks/CompilerServiceBenchmarks/FSharp.Compiler.Benchmarks.fsproj @@ -4,6 +4,13 @@ Exe net6.0 true + + $(NoWarn);NU1505