Skip to content

Commit 4afe1d9

Browse files
Suppress warnings for use of .NET Standard older than 2.0. Required while legacy Web API is still supported.
1 parent 7b4cb60 commit 4afe1d9

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

build/assets.msbuildproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard1.0</TargetFramework>
44
<IsPackable>false</IsPackable>
5+
<NoWarn>$(NoWarn);NETSDK1215</NoWarn>
56
</PropertyGroup>
67
<ItemGroup>
78
<None Include="**\*.*" Exclude="*.msbuildproj;obj\**\*.*" />

src/Abstractions/src/Asp.Versioning.Abstractions/Asp.Versioning.Abstractions.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<IsAotCompatible>true</IsAotCompatible>
1515
</PropertyGroup>
1616

17+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
18+
<CheckNotRecommendedTargetFramework>false</CheckNotRecommendedTargetFramework>
19+
</PropertyGroup>
20+
1721
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
1822
<Compile Remove="netstandard2.0\**\*.cs;net#.0\**\*.cs" />
1923
<None Include="netstandard2.0\**\*.cs;net#.0\**\*.cs" />

src/Client/src/Asp.Versioning.Http.Client/Asp.Versioning.Http.Client.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
<IsAotCompatible>true</IsAotCompatible>
1515
</PropertyGroup>
1616

17+
<PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard1.1' ">
18+
<CheckNotRecommendedTargetFramework>false</CheckNotRecommendedTargetFramework>
19+
</PropertyGroup>
20+
1721
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.1' ">
1822
<Compile Remove="net#.0\**\*.cs" />
1923
<None Include="net#.0\**\*.cs" />

src/Common/src/Common.Backport/Common.Backport.msbuildproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.Build.NoTargets/3.3.0">
22
<PropertyGroup>
33
<TargetFramework>netstandard1.0</TargetFramework>
4+
<NoWarn>$(NoWarn);NETSDK1215</NoWarn>
45
</PropertyGroup>
56
<ItemGroup>
67
<None Include="**\*.*" Exclude="*.msbuildproj;obj\**\*.*" />

0 commit comments

Comments
 (0)