Skip to content

Commit a6ba447

Browse files
committed
Mute obsolete warnings
1 parent 297ecd8 commit a6ba447

File tree

4 files changed

+4
-10
lines changed

4 files changed

+4
-10
lines changed

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<RootNamespace>UnitsNet.Serialization.JsonNet</RootNamespace>
2424
<!-- Workaround for building with dotnet CLI and targeting .NET 3.5: https://github.com/Microsoft/msbuild/issues/1333#issuecomment-296346352 -->
2525
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
26+
<NoWarn>CS1701;CS1702;CS1705;CS0618</NoWarn>
2627
<OutputPath>..\Artifacts\$(MSBuildProjectName)</OutputPath>
27-
<NoWarn>CS0618</NoWarn>
2828
</PropertyGroup>
2929

3030
<!-- NuGet references that work for both signed and unsigned -->

UnitsNet.Tests/UnitsNet.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
55
<RootNamespace>UnitsNet.Tests</RootNamespace>
6+
<NoWarn>CS1701;CS1702;CS1705;CS0618</NoWarn>
67
<OutputPath>..\Artifacts\$(MSBuildProjectName)</OutputPath>
7-
<NoWarn>CS0618</NoWarn>
88
</PropertyGroup>
99

1010
<ItemGroup>

UnitsNet/UnitsNet.Common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<RootNamespace>UnitsNet</RootNamespace>
2525
<!-- Workaround for building with dotnet CLI and targeting .NET 3.5: https://github.com/Microsoft/msbuild/issues/1333#issuecomment-296346352 -->
2626
<FrameworkPathOverride Condition="'$(TargetFramework)' == 'net35'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
27-
<NoWarn>CS0618,CS0809</NoWarn>
27+
<NoWarn>CS1701;CS1702;CS1705;CS0618;CS0809</NoWarn>
2828
</PropertyGroup>
2929

3030
<!-- NuGet references that work for both signed and unsigned -->

UnitsNet/UnitsNet.WindowsRuntimeComponent.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1919
<AllowCrossPlatformRetargeting>false</AllowCrossPlatformRetargeting>
2020
<OutputPath>..\Artifacts\UnitsNet.WindowsRuntimeComponent</OutputPath>
21-
<BaseIntermediateOutputPath>obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
21+
<NoWarn>CS1701;CS1702;CS1705;CS0618;CS0809;2008</NoWarn>
2222
</PropertyGroup>
2323
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2424
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -42,7 +42,6 @@
4242
<PlatformTarget>x86</PlatformTarget>
4343
<DebugSymbols>true</DebugSymbols>
4444
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
45-
<NoWarn>;2008</NoWarn>
4645
<DebugType>full</DebugType>
4746
<PlatformTarget>x86</PlatformTarget>
4847
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -52,7 +51,6 @@
5251
<PlatformTarget>x86</PlatformTarget>
5352
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
5453
<Optimize>true</Optimize>
55-
<NoWarn>;2008</NoWarn>
5654
<DebugType>pdbonly</DebugType>
5755
<PlatformTarget>x86</PlatformTarget>
5856
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -62,7 +60,6 @@
6260
<PlatformTarget>ARM</PlatformTarget>
6361
<DebugSymbols>true</DebugSymbols>
6462
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
65-
<NoWarn>;2008</NoWarn>
6663
<DebugType>full</DebugType>
6764
<PlatformTarget>ARM</PlatformTarget>
6865
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -72,7 +69,6 @@
7269
<PlatformTarget>ARM</PlatformTarget>
7370
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
7471
<Optimize>true</Optimize>
75-
<NoWarn>;2008</NoWarn>
7672
<DebugType>pdbonly</DebugType>
7773
<PlatformTarget>ARM</PlatformTarget>
7874
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -82,7 +78,6 @@
8278
<PlatformTarget>x64</PlatformTarget>
8379
<DebugSymbols>true</DebugSymbols>
8480
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
85-
<NoWarn>;2008</NoWarn>
8681
<DebugType>full</DebugType>
8782
<PlatformTarget>x64</PlatformTarget>
8883
<UseVSHostingProcess>false</UseVSHostingProcess>
@@ -92,7 +87,6 @@
9287
<PlatformTarget>x64</PlatformTarget>
9388
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
9489
<Optimize>true</Optimize>
95-
<NoWarn>;2008</NoWarn>
9690
<DebugType>pdbonly</DebugType>
9791
<PlatformTarget>x64</PlatformTarget>
9892
<UseVSHostingProcess>false</UseVSHostingProcess>

0 commit comments

Comments
 (0)