diff --git a/Documentation/guides/DotNet5.md b/Documentation/guides/DotNet5.md index b6da293e023..2ac7a95015d 100644 --- a/Documentation/guides/DotNet5.md +++ b/Documentation/guides/DotNet5.md @@ -156,7 +156,7 @@ The following instructions can be used for early preview testing. ```xml - netcoreapp5.0 + net5.0 android.21-arm64 Exe diff --git a/build-tools/automation/azure-pipelines-oss.yaml b/build-tools/automation/azure-pipelines-oss.yaml index 40242ceb41e..775a26c053c 100644 --- a/build-tools/automation/azure-pipelines-oss.yaml +++ b/build-tools/automation/azure-pipelines-oss.yaml @@ -27,7 +27,7 @@ variables: PREPARE_FLAGS: PREPARE_CI=1 PREPARE_CI_PR=1 DotNetCoreVersion: 3.1.201 # Version number from: https://dotnet.microsoft.com/download/dotnet-core/5.0 - DotNetCorePreviewVersion: 5.0.100-preview.4.20227.14 + DotNetCorePreviewVersion: 5.0.100-preview.6.20265.2 stages: - stage: mac_stage diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index bfca97576fa..c0bab5b02b5 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -50,7 +50,7 @@ variables: NUnitConsoleVersion: 3.9.0 DotNetCoreVersion: 3.1.201 # Version number from: https://github.com/dotnet/installer#installers-and-binaries - DotNetCorePreviewVersion: 5.0.100-preview.4.20227.14 + DotNetCorePreviewVersion: 5.0.100-preview.6.20265.2 HostedMacMojave: Hosted Mac Internal Mojave HostedMac: Hosted Mac Internal HostedWinVS2019: Hosted Windows 2019 with VS2019 diff --git a/build-tools/create-packs/Microsoft.Android.Ref.proj b/build-tools/create-packs/Microsoft.Android.Ref.proj index c5ec2a4620a..147dd5bd11f 100644 --- a/build-tools/create-packs/Microsoft.Android.Ref.proj +++ b/build-tools/create-packs/Microsoft.Android.Ref.proj @@ -15,7 +15,7 @@ by projects that use the Microsoft.Android framework in .NET 5. Microsoft Microsoft.Android reference assemblies. Please do not reference directly. ..\..\bin\Build$(Configuration)\nupkgs\ - <_AndroidRefPackAssemblyPath>ref\netcoreapp5.0 + <_AndroidRefPackAssemblyPath>ref\net5.0 diff --git a/build-tools/create-packs/Microsoft.Android.Runtime.proj b/build-tools/create-packs/Microsoft.Android.Runtime.proj index f54b94d2d8a..6712bd2137d 100644 --- a/build-tools/create-packs/Microsoft.Android.Runtime.proj +++ b/build-tools/create-packs/Microsoft.Android.Runtime.proj @@ -17,7 +17,7 @@ projects that use the Microsoft.Android framework in .NET 5. Microsoft Microsoft.Android runtime components. Please do not reference directly. ..\..\bin\Build$(Configuration)\nupkgs\ - <_AndroidRuntimePackAssemblyPath>runtimes\$(AndroidRID)\lib\netcoreapp5.0 + <_AndroidRuntimePackAssemblyPath>runtimes\$(AndroidRID)\lib\net5.0 <_AndroidRuntimePackNativePath>runtimes\$(AndroidRID)\native diff --git a/build-tools/create-packs/Microsoft.Android.Sdk.proj b/build-tools/create-packs/Microsoft.Android.Sdk.proj index cbe73660342..d266cdd4ed6 100644 --- a/build-tools/create-packs/Microsoft.Android.Sdk.proj +++ b/build-tools/create-packs/Microsoft.Android.Sdk.proj @@ -85,7 +85,7 @@ the new entry point for short-form style Android projets in .NET 5. - <_AndroidNETAppTargetFramework>netcoreapp5.0 + <_AndroidNETAppTargetFramework>net5.0 Microsoft.Android.Sdk.BundledVersions.props diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XASdkProject.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XASdkProject.cs index dcd36742a08..369b0ef1171 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XASdkProject.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/XASdkProject.cs @@ -39,11 +39,14 @@ static XASdkProject () public XASdkProject (string sdkVersion = "", string outputType = "Exe") { Sdk = string.IsNullOrEmpty (sdkVersion) ? "Microsoft.Android.Sdk" : $"Microsoft.Android.Sdk/{sdkVersion}"; - TargetFramework = "netcoreapp5.0"; + TargetFramework = "net5.0"; PackageName = PackageName ?? string.Format ("{0}.{0}", ProjectName); JavaPackageName = JavaPackageName ?? PackageName.ToLowerInvariant (); - ExtraNuGetConfigSources = new List { Path.Combine (XABuildPaths.BuildOutputDirectory, "nupkgs") }; + ExtraNuGetConfigSources = new List { + Path.Combine (XABuildPaths.BuildOutputDirectory, "nupkgs"), + "https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet5/nuget/v3/index.json", + }; GlobalPackagesFolder = Path.Combine (XABuildPaths.TopDirectory, "packages"); SetProperty (KnownProperties.OutputType, outputType); diff --git a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Tooling.targets b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Tooling.targets index fd9eeee08bd..025063d5fa6 100644 --- a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Tooling.targets +++ b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Tooling.targets @@ -43,20 +43,24 @@ projects. - <_ResolveSdksDependsOnTargets>ResolveFrameworkReferences + <_ResolveSdksDependsOnTargets>ResolveTargetingPackAssets <_ResolveSdksDependsOnTargets>_GetReferenceAssemblyPaths + + + <_ResolveSdksFrameworkRefAssemblyPaths Include="@(ResolvedTargetingPack->'%(Path)\ref\%(TargetFramework)')" Condition=" '@(ResolvedTargetingPack)' == '@(FrameworkReference)' and '%(Identity)' != '' " /> + <_AndroidAllowMissingSdkTooling Condition=" '$(_AndroidAllowMissingSdkTooling)' == '' ">False - - <_XATargetFrameworkDirectories Condition=" '$(UsingAndroidNETSdk)' == 'True' ">@(ResolvedFrameworkReference->'%(TargetingPackPath)\ref\$(TargetFramework)') + <_XATargetFrameworkDirectories Condition=" '$(UsingAndroidNETSdk)' == 'True' ">@(_ResolveSdksFrameworkRefAssemblyPaths)