forked from dotnet/corefx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update package testing to test for 5.0 and use the SDK targeting pack…
… for 3.0
- Loading branch information
Showing
5 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<!-- Enable targeting netcoreapp3.0 even in an older CLI --> | ||
<NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion> | ||
<!-- use the most recent MS.NETCore.App we have from upstack --> | ||
<RuntimeFrameworkVersion>$(MicrosoftNETCoreAppPackageVersion)</RuntimeFrameworkVersion> | ||
<DisableImplicitNETCorePlatformsReference>true</DisableImplicitNETCorePlatformsReference> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- SDK doesn't honor RuntimeFrameworkVersion for targeting pack--> | ||
<KnownFrameworkReference Update="Microsoft.NETCore.App" TargetingPackVersion="$(RuntimeFrameworkVersion)" /> | ||
<!-- We can remove this workaround until we retarget corefx to 5.0 --> | ||
<IgnoredReference Include="System.Private.CoreLib" /> | ||
|
||
<!-- Temporary till SDK supports transitive framework references. --> | ||
<KnownFrameworkReference Remove="Microsoft.AspNetCore.App" /> | ||
<KnownFrameworkReference Remove="Microsoft.WindowsDesktop.App" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<!-- CodePages is part of the framework but we don't yet have a MicrosoftNETCoreAppPackageVersion with that change --> | ||
<IgnoredReference Include="System.Text.Encoding.CodePages"/> | ||
|
||
<!-- Temporarily suppress checking System.Private.CoreLib until we get a new MicrosoftNETCoreAppPackageVersion built against a 5.0 version of it --> | ||
<IgnoredReference Include="System.Private.CoreLib" /> | ||
</ItemGroup> | ||
<Target Name="CheckForWorkaroundRemoval" AfterTargets="ResolveReferences"> | ||
<Error Condition="'%(Reference.FileName)' == 'System.Text.Encoding.CodePages' AND '%(Reference.NuGetPackageId)' == 'Microsoft.NETCore.App'" | ||
Text="Please remove IgnoredReference workaround from pkg\test\frameworkSettings\netcoreapp3.0\settings.targets" /> | ||
</Target> | ||
</Project> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp5.0</TargetFramework> | ||
<NETCoreAppMaximumVersion>5.0</NETCoreAppMaximumVersion> | ||
<RuntimeFrameworkVersion>$(MicrosoftNETCoreAppPackageVersion)</RuntimeFrameworkVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Since we don't have an SDK that knows about 5.0 framework, we should specify it manually. --> | ||
<KnownFrameworkReference Update="Microsoft.NETCore.App" | ||
TargetFramework="$(TargetFramework)" | ||
RuntimeFrameworkName="Microsoft.NETCore.App" | ||
DefaultRuntimeFrameworkVersion="$(RuntimeFrameworkVersion)" | ||
LatestRuntimeFrameworkVersion="$(RuntimeFrameworkVersion)" | ||
TargetingPackName="Microsoft.NETCore.App.Ref" | ||
TargetingPackVersion="$(RuntimeFrameworkVersion)" | ||
RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**" | ||
RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86" | ||
PackagesToReference="Microsoft.NETCore.App/$(RuntimeFrameworkVersion)" | ||
IsTrimmable="true" | ||
/> | ||
|
||
<KnownAppHostPack Update="Microsoft.NETCore.App" | ||
TargetFramework="$(TargetFramework)" | ||
AppHostPackNamePattern="Microsoft.NETCore.App.Host.**RID**" | ||
AppHostPackVersion="$(RuntimeFrameworkVersion)" | ||
AppHostRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86" | ||
/> | ||
|
||
<KnownFrameworkReference Remove="Microsoft.AspNetCore.App" /> | ||
<KnownFrameworkReference Remove="Microsoft.WindowsDesktop.App" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
</Project> |