Skip to content

Commit ef6dc65

Browse files
committed
Add net472 target framework
1 parent ab237e4 commit ef6dc65

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Source/Schema.NET/Schema.NET.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup Label="Build">
4-
<TargetFrameworks>netstandard1.1;netstandard2.0;net461</TargetFrameworks>
4+
<TargetFrameworks>netstandard1.1;netstandard2.0;net461;net472</TargetFrameworks>
55
<NoWarn>$(NoWarn);SA1629</NoWarn>
66
<CodeAnalysisRuleSet>../../MinimumRecommendedRulesWithStyleCop.ruleset</CodeAnalysisRuleSet>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -47,7 +47,8 @@
4747
<PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" Version="1.1.118" />
4848
</ItemGroup>
4949

50-
<PropertyGroup Label="Build net641 on Mono" Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">
50+
<PropertyGroup Label="Build net4xx on Mono" Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">
51+
<!-- See https://www.cafe-encounter.net/p2312/multi-targetting-net-framework-and-net-core-in-a-single-project -->
5152
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on Mono using 'dotnet build' you -->
5253
<!-- have to teach MSBuild where the Mono copy of the reference asssemblies is -->
5354
<!-- Look in the standard install locations -->
@@ -64,6 +65,7 @@
6465
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net462'">$(BaseFrameworkPathOverrideForMono)/4.6.2-api</FrameworkPathOverride>
6566
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net47'">$(BaseFrameworkPathOverrideForMono)/4.7-api</FrameworkPathOverride>
6667
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net471'">$(BaseFrameworkPathOverrideForMono)/4.7.1-api</FrameworkPathOverride>
68+
<FrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != '' AND '$(TargetFramework)' == 'net472'">$(BaseFrameworkPathOverrideForMono)/4.7.2-api</FrameworkPathOverride>
6769
<EnableFrameworkPathOverride Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">true</EnableFrameworkPathOverride>
6870
<!-- Add the Facades directory. Not sure how else to do this. Necessary at least for .NET 4.5 -->
6971
<AssemblySearchPaths Condition="'$(BaseFrameworkPathOverrideForMono)' != ''">$(FrameworkPathOverride)/Facades;$(AssemblySearchPaths)</AssemblySearchPaths>

0 commit comments

Comments
 (0)