Skip to content

Commit

Permalink
Update to Arcade 5.0 and .NET 5.0 (#5836)
Browse files Browse the repository at this point in the history
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
Now on dotnet 5.0.102
Removed OsEnvironment in favor of IsOSPlatform intrinsic function
Nowarn on SYSLIB0011
Update various build scripts with net5.0 path
Use IsTargetFrameworkCompatible in various locations to simplify checks.
  • Loading branch information
benvillalobos committed Jan 20, 2021
1 parent 7814dc4 commit f98579d
Show file tree
Hide file tree
Showing 113 changed files with 5,618 additions and 2,478 deletions.
18 changes: 3 additions & 15 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Copyright>$(CopyrightNetFoundation)</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<PropertyGroup>
<Product>Microsoft® Build Tools®</Product>
<Configurations>Debug;Release;Debug-MONO;Release-MONO;MachineIndependent</Configurations>
Expand All @@ -16,19 +16,6 @@
<FullFrameworkTFM>net472</FullFrameworkTFM>
</PropertyGroup>

<PropertyGroup>
<OsEnvironment Condition="$([MSBuild]::IsOSPlatform('windows'))">windows</OsEnvironment>
<OsEnvironment Condition="$([MSBuild]::IsOSPlatform('linux'))">linux</OsEnvironment>
<OsEnvironment Condition="$([MSBuild]::IsOSPlatform('osx'))">osx</OsEnvironment>
<!-- Replace with MSBuild::IsBsdLike once the initial msbuild knows about it -->
<OsEnvironment Condition="$([MSBuild]::IsOSPlatform('FREEBSD')) Or $([MSBuild]::IsOSPlatform('NETBSD')) Or $([MSBuild]::IsOSPlatform('OPENBSD'))">bsd</OsEnvironment>

<OsUnixLike>false</OsUnixLike>
<OsUnixLike Condition="$([MSBuild]::IsOsUnixLike())">true</OsUnixLike>

<TargetPlatformIdentifier Condition="'$(TargetPlatformIdentifier)'==''">$(OS)</TargetPlatformIdentifier>
</PropertyGroup>

<PropertyGroup>
<DOTNET_INSTALL_DIR Condition="'$(DOTNET_INSTALL_DIR)' == ''">$(RepoRoot).dotnet\</DOTNET_INSTALL_DIR>

Expand All @@ -49,9 +36,10 @@
CS1701 and CS1702 are by default ignored by Microsoft.NET.Sdk, but if you define the NoWarn property in Directory.Build.props,
you don't get those defaults.
NU5125: Arcade uses licenseUrl when doing pack, which now causes NU5125 warning. This disables that warning until arcade can switch over.
SYSLIB0011: Removing binary formatter will happen as part of a larger .NET-wide effort.
-->

<NoWarn>$(NoWarn);NU1603;NU5105;NU5125;1701;1702</NoWarn>
<NoWarn>$(NoWarn);NU1603;NU5105;NU5125;1701;1702;SYSLIB0011</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Debug-MONO'">
Expand Down
5 changes: 5 additions & 0 deletions eng/Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<PackageReference Update="System.Reflection.TypeExtensions" Version="4.1.0" />
<PackageReference Update="System.Resources.Extensions" Version="4.6.0" />
<PackageReference Update="System.Resources.Writer" Version="4.0.0" />
<PackageReference Update="System.Runtime.CompilerServices.Unsafe" Version="5.0.0"/>
<PackageReference Update="System.Runtime.InteropServices" Version="4.3.0" />
<PackageReference Update="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<PackageReference Update="System.Runtime.Loader" Version="4.0.0" />
Expand All @@ -46,6 +47,10 @@
<PackageReference Update="xunit.core" Version="$(XUnitVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(MonoBuild)' == 'true' or $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netcoreapp2.1'))">
<PackageReference Update="Microsoft.Extensions.DependencyModel" Version="5.0.0"/>
</ItemGroup>

<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<GlobalPackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<Dependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.20580.3">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20621.10">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>7ee8c2b620e66b3762d7a5a688dee8238770c86a</Sha>
<Sha>6813f5aa511a7a4498fa217a54219b5704a01f83</Sha>
</Dependency>
<Dependency Name="NuGet.Build.Tasks" Version="5.9.0-preview.3.7016">
<Uri>https://github.com/NuGet/NuGet.Client</Uri>
<Sha>719f110bf31709b7f8bdf1ab74024450936d866c</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="3.9.0-2.20574.26">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha />
<Sha>e9fd4dc7d74932c0d4b042251bc5a88bb5b3c437</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
6 changes: 4 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
</PropertyGroup>
<!-- Toolset Dependencies -->
<PropertyGroup>
<DotNetCliVersion>3.1.100</DotNetCliVersion>
<MicrosoftNetCompilersToolsetVersion>3.3.1-beta3-final</MicrosoftNetCompilersToolsetVersion>
<!-- DotNetCliVersion MUST match the dotnet version in global.json.
Otherwise, this version of dotnet will not be installed and the build will error out. -->
<DotNetCliVersion>5.0.102</DotNetCliVersion>
<MicrosoftNetCompilersToolsetVersion>3.9.0-2.20574.26</MicrosoftNetCompilersToolsetVersion>
<NuGetBuildTasksVersion>5.9.0-preview.3.7016</NuGetBuildTasksVersion>
</PropertyGroup>
<Target Name="OverrideArcadeFileVersion" AfterTargets="_InitializeAssemblyVersion">
Expand Down
2 changes: 1 addition & 1 deletion eng/cibuild_bootstrapped_msbuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ try {
else
{
$buildToolPath = $dotnetExePath
$buildToolCommand = Join-Path $bootstrapRoot "netcoreapp2.1\MSBuild\MSBuild.dll"
$buildToolCommand = Join-Path $bootstrapRoot "net5.0\MSBuild\MSBuild.dll"
$buildToolFramework = "netcoreapp2.1"
}

Expand Down
2 changes: 1 addition & 1 deletion eng/cibuild_bootstrapped_msbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bootstrapRoot="$Stage1Dir/bin/bootstrap"
if [ $host_type = "core" ]
then
_InitializeBuildTool="$_InitializeDotNetCli/dotnet"
_InitializeBuildToolCommand="$bootstrapRoot/netcoreapp2.1/MSBuild/MSBuild.dll"
_InitializeBuildToolCommand="$bootstrapRoot/net5.0/MSBuild/MSBuild.dll"
_InitializeBuildToolFramework="netcoreapp2.1"
elif [ $host_type = "mono" ]
then
Expand Down
158 changes: 0 additions & 158 deletions eng/common/CheckSymbols.ps1

This file was deleted.

83 changes: 0 additions & 83 deletions eng/common/PublishToPackageFeed.proj

This file was deleted.

0 comments on commit f98579d

Please sign in to comment.