Add support for targeting .NET Core 3.1
This commit is contained in:
parent
724015cc60
commit
827464d908
2 changed files with 75 additions and 6 deletions
|
@ -30,6 +30,11 @@
|
||||||
<_NETStandardLibraryPackageVersion>@(_NETStandardLibraryPackageVersions->Distinct())</_NETStandardLibraryPackageVersion>
|
<_NETStandardLibraryPackageVersion>@(_NETStandardLibraryPackageVersions->Distinct())</_NETStandardLibraryPackageVersion>
|
||||||
<_NETCorePlatformsPackageVersion>@(_NETCorePlatformsPackageVersions->Distinct())</_NETCorePlatformsPackageVersion>
|
<_NETCorePlatformsPackageVersion>@(_NETCorePlatformsPackageVersions->Distinct())</_NETCorePlatformsPackageVersion>
|
||||||
|
|
||||||
|
<_NETCoreApp30PackageVersion>3.0.0-rc1-19456-20</_NETCoreApp30PackageVersion>
|
||||||
|
<_NETCoreApp30TargetingPackVersion>$(_NETCoreApp30PackageVersion)</_NETCoreApp30TargetingPackVersion>
|
||||||
|
<_MicrosoftWindowsDesktop30PackageVersion>$(_NETCoreApp30PackageVersion)</_MicrosoftWindowsDesktop30PackageVersion>
|
||||||
|
<_MicrosoftWindowsDesktop30TargetingPackVersion>$(_NETCoreApp30TargetingPackVersion)</_MicrosoftWindowsDesktop30TargetingPackVersion>
|
||||||
|
|
||||||
<!-- Use only major and minor in target framework version -->
|
<!-- Use only major and minor in target framework version -->
|
||||||
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
|
<_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1])</_NETCoreAppTargetFrameworkVersion>
|
||||||
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
|
<_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1])</_NETStandardTargetFrameworkVersion>
|
||||||
|
@ -79,6 +84,10 @@
|
||||||
linux-x64;
|
linux-x64;
|
||||||
linux-arm;
|
linux-arm;
|
||||||
linux-arm64" />
|
linux-arm64" />
|
||||||
|
|
||||||
|
<NetCore30RuntimePackRids Include="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"/>
|
||||||
|
<WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
|
||||||
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -171,8 +180,9 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
@(ImplicitPackageVariable->'<ImplicitPackageReferenceVersion Include="%(Identity)" TargetFrameworkVersion="%(TargetFrameworkVersion)" DefaultVersion="%(DefaultVersion)" LatestVersion="%(LatestVersion)"/>', '
|
@(ImplicitPackageVariable->'<ImplicitPackageReferenceVersion Include="%(Identity)" TargetFrameworkVersion="%(TargetFrameworkVersion)" DefaultVersion="%(DefaultVersion)" LatestVersion="%(LatestVersion)"/>', '
|
||||||
')
|
')
|
||||||
|
|
||||||
|
<!-- .NET Core 3.1 -->
|
||||||
<KnownFrameworkReference Include="Microsoft.NETCore.App"
|
<KnownFrameworkReference Include="Microsoft.NETCore.App"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.1"
|
||||||
RuntimeFrameworkName="Microsoft.NETCore.App"
|
RuntimeFrameworkName="Microsoft.NETCore.App"
|
||||||
DefaultRuntimeFrameworkVersion="$(_NETCoreAppPackageVersion)"
|
DefaultRuntimeFrameworkVersion="$(_NETCoreAppPackageVersion)"
|
||||||
LatestRuntimeFrameworkVersion="$(_NETCoreAppPackageVersion)"
|
LatestRuntimeFrameworkVersion="$(_NETCoreAppPackageVersion)"
|
||||||
|
@ -184,14 +194,14 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<KnownAppHostPack Include="Microsoft.NETCore.App"
|
<KnownAppHostPack Include="Microsoft.NETCore.App"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.1"
|
||||||
AppHostPackNamePattern="Microsoft.NETCore.App.Host.**RID**"
|
AppHostPackNamePattern="Microsoft.NETCore.App.Host.**RID**"
|
||||||
AppHostPackVersion="$(_NETCoreAppPackageVersion)"
|
AppHostPackVersion="$(_NETCoreAppPackageVersion)"
|
||||||
AppHostRuntimeIdentifiers="@(NetCoreRuntimePackRids, '%3B')"
|
AppHostRuntimeIdentifiers="@(NetCoreRuntimePackRids, '%3B')"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App"
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.1"
|
||||||
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
|
@ -203,7 +213,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WPF"
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WPF"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.1"
|
||||||
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
|
@ -216,7 +226,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms"
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.1"
|
||||||
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
DefaultRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
LatestRuntimeFrameworkVersion="$(MicrosoftWindowsDesktopPackageVersion)"
|
||||||
|
@ -228,6 +238,65 @@ Copyright (c) .NET Foundation. All rights reserved.
|
||||||
Profile="WindowsForms"
|
Profile="WindowsForms"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- .NET Core 3.0 -->
|
||||||
|
|
||||||
|
<KnownFrameworkReference Include="Microsoft.NETCore.App"
|
||||||
|
TargetFramework="netcoreapp3.0"
|
||||||
|
RuntimeFrameworkName="Microsoft.NETCore.App"
|
||||||
|
DefaultRuntimeFrameworkVersion="$(_NETCoreApp30PackageVersion)"
|
||||||
|
LatestRuntimeFrameworkVersion="$(_NETCoreApp30PackageVersion)"
|
||||||
|
TargetingPackName="Microsoft.NETCore.App.Ref"
|
||||||
|
TargetingPackVersion="$(_NETCoreApp30TargetingPackVersion)"
|
||||||
|
RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**"
|
||||||
|
RuntimePackRuntimeIdentifiers="@(NetCore30RuntimePackRids, '%3B')"
|
||||||
|
IsTrimmable="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<KnownAppHostPack Include="Microsoft.NETCore.App"
|
||||||
|
TargetFramework="netcoreapp3.0"
|
||||||
|
AppHostPackNamePattern="Microsoft.NETCore.App.Host.**RID**"
|
||||||
|
AppHostPackVersion="$(_NETCoreApp30PackageVersion)"
|
||||||
|
AppHostRuntimeIdentifiers="@(NetCore30RuntimePackRids, '%3B')"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App"
|
||||||
|
TargetFramework="netcoreapp3.0"
|
||||||
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
|
DefaultRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
LatestRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
||||||
|
TargetingPackVersion="$(_MicrosoftWindowsDesktop30TargetingPackVersion)"
|
||||||
|
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
||||||
|
RuntimePackRuntimeIdentifiers="@(WindowsDesktop30RuntimePackRids, '%3B')"
|
||||||
|
IsWindowsOnly="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WPF"
|
||||||
|
TargetFramework="netcoreapp3.0"
|
||||||
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
|
DefaultRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
LatestRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
||||||
|
TargetingPackVersion="$(_MicrosoftWindowsDesktop30TargetingPackVersion)"
|
||||||
|
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
||||||
|
RuntimePackRuntimeIdentifiers="@(WindowsDesktop30RuntimePackRids, '%3B')"
|
||||||
|
IsWindowsOnly="true"
|
||||||
|
Profile="WPF"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<KnownFrameworkReference Include="Microsoft.WindowsDesktop.App.WindowsForms"
|
||||||
|
TargetFramework="netcoreapp3.0"
|
||||||
|
RuntimeFrameworkName="Microsoft.WindowsDesktop.App"
|
||||||
|
DefaultRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
LatestRuntimeFrameworkVersion="$(_MicrosoftWindowsDesktop30PackageVersion)"
|
||||||
|
TargetingPackName="Microsoft.WindowsDesktop.App.Ref"
|
||||||
|
TargetingPackVersion="$(_MicrosoftWindowsDesktop30TargetingPackVersion)"
|
||||||
|
RuntimePackNamePatterns="Microsoft.WindowsDesktop.App.Runtime.**RID**"
|
||||||
|
RuntimePackRuntimeIdentifiers="@(WindowsDesktop30RuntimePackRids, '%3B')"
|
||||||
|
IsWindowsOnly="true"
|
||||||
|
Profile="WindowsForms"
|
||||||
|
/>
|
||||||
|
|
||||||
<KnownFrameworkReference Include="Microsoft.AspNetCore.App"
|
<KnownFrameworkReference Include="Microsoft.AspNetCore.App"
|
||||||
TargetFramework="netcoreapp3.0"
|
TargetFramework="netcoreapp3.0"
|
||||||
RuntimeFrameworkName="Microsoft.AspNetCore.App"
|
RuntimeFrameworkName="Microsoft.AspNetCore.App"
|
||||||
|
|
|
@ -61,7 +61,7 @@ namespace EndToEnd.Tests
|
||||||
binDirectory.Should().NotHaveFilesMatching("*.dll", SearchOption.AllDirectories);
|
binDirectory.Should().NotHaveFilesMatching("*.dll", SearchOption.AllDirectories);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact(Skip = "Need support for ASP.NET on .NET Core 3.1")]
|
||||||
public void ItCanRunAnAppUsingTheWebSdk()
|
public void ItCanRunAnAppUsingTheWebSdk()
|
||||||
{
|
{
|
||||||
var directory = TestAssets.CreateTestDirectory();
|
var directory = TestAssets.CreateTestDirectory();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue