Skip to content

Commit

Permalink
Merge pull request dotnet#156 from radical/update-xplat-master
Browse files Browse the repository at this point in the history
[mono/master] Update from upstream master and update SDKs
  • Loading branch information
radical committed Nov 21, 2019
2 parents d482afe + 717a35b commit e531c61
Show file tree
Hide file tree
Showing 218 changed files with 3,962 additions and 2,275 deletions.
3 changes: 0 additions & 3 deletions .vsts-dotnet-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
- job: BootstrapMSBuildOnFullFrameworkWindows
displayName: "Windows Full"
pool:
name: 'Hosted'
vmImage: 'windows-2019'
steps:
- task: BatchScript@1
Expand Down Expand Up @@ -52,7 +51,6 @@ jobs:
- job: BootstrapMSBuildOnCoreWindows
displayName: "Windows Core"
pool:
name: 'Hosted'
vmImage: 'windows-2019'
steps:
- task: BatchScript@1
Expand Down Expand Up @@ -98,7 +96,6 @@ jobs:
- job: FullReleaseOnWindows
displayName: "Windows Full Release (no bootstrap)"
pool:
name: 'Hosted'
vmImage: 'windows-2019'
steps:
- task: BatchScript@1
Expand Down
9 changes: 7 additions & 2 deletions .vsts-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ trigger:
# SkipApplyOptimizationData: false

variables:
- name: SourceBranch
value: $(IbcSourceBranchName)
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/exp/') }}:
- name: SourceBranch
value: master
- name: _DotNetArtifactsCategory
value: .NETCore
- name: _DotNetValidationArtifactsCategory
Expand All @@ -23,7 +28,7 @@ stages:
jobs:
- job: Windows_NT
pool:
name: VSEng-MicroBuildVS2017
name: VSEng-MicroBuildVS2019
demands:
- agent.os -equals Windows_NT

Expand Down Expand Up @@ -78,7 +83,7 @@ stages:
-officialBuildId $(Build.BuildNumber)
-officialSkipApplyOptimizationData $(SkipApplyOptimizationData)
/p:RepositoryName=$(Build.Repository.Name)
/p:VisualStudioIbcSourceBranchName=$(IbcSourceBranchName)
/p:VisualStudioIbcSourceBranchName=$(SourceBranch)
/p:VisualStudioDropAccessToken=$(System.AccessToken)
/p:VisualStudioDropName=$(VisualStudio.DropName)
/p:DotNetSignType=$(SignType)
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<!-- Repository and project URLs (used in nuget packages) -->
<RepositoryUrl>https://github.com/microsoft/msbuild</RepositoryUrl>
<PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkId=624683</PackageProjectUrl>
<PackageIconUrl>https://go.microsoft.com/fwlink/?linkid=825694</PackageIconUrl>
<PackageIcon>MSBuild-NuGet-Icon.png</PackageIcon>
<PackageTags>MSBuild</PackageTags>

<TargetMSBuildToolsVersion>Current</TargetMSBuildToolsVersion>
Expand Down
1 change: 1 addition & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<ItemGroup>
<None Include="$(ThirdPartyNotice)" Pack="true" PackagePath="notices" Visible="false" Condition=" '$(IsPackable)' == 'true' " />
<None Include="$(RepoRoot)branding\MSBuild-NuGet-Icon.png" Pack="true" PackagePath="\" Visible="false" Condition=" '$(IsPackable)' == 'true' " />
</ItemGroup>

<Target Name="_RemoveMSSourceLinkGitHub" AfterTargets="CollectPackageReferences" Condition="'$(MonoBuild)' == 'true'">
Expand Down
2 changes: 2 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
<add key="darc-pub-dotnet-corefx-4ac4c03" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-corefx-4ac4c036/nuget/v3/index.json" />
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
<add key="arcade" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />

<add key="roslyn" value="https://dotnet.myget.org/F/roslyn/api/v3/index.json" />
<add key="nuget-build" value="https://dotnet.myget.org/F/nuget-build/api/v3/index.json" />
<add key="roslyn-tools" value="https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json" />
<add key="dotnet-buildtools" value="https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json" />

<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
</packageSources>
</configuration>
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ For more information on MSBuild, see the [MSBuild documentation](https://docs.mi

### Build Status

The current development branch is `master`. Changes in `master` will go into a future update of MSBuild, which will release with Visual Studio 16.4 and a corresponding version of the .NET Core SDK.
The current development branch is `master`. Changes in `master` will go into a future update of MSBuild, which will release with Visual Studio 16.5 and a corresponding version of the .NET Core SDK.

[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/Microsoft/msbuild/msbuild-pr?branchName=master)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=86&branchName=master)

We have forked for MSBuild 16.3 in the branch [`vs16.3`](https://github.com/Microsoft/msbuild/tree/vs16.3). Changes to that branch need special approval.
We have forked for MSBuild 16.4 in the branch [`vs16.4`](https://github.com/Microsoft/msbuild/tree/vs16.4). Changes to that branch need special approval.

[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/Microsoft/msbuild/msbuild-pr?branchName=vs16.3)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=86&branchName=vs16.3)
[![Build Status](https://dev.azure.com/dnceng/public/_apis/build/status/Microsoft/msbuild/msbuild-pr?branchName=vs16.4)](https://dev.azure.com/dnceng/public/_build/latest?definitionId=86&branchName=vs16.4)

MSBuild 16.0 builds from the branch [`vs16.0`](https://github.com/Microsoft/msbuild/tree/vs16.0). Only high-priority bugfixes will be considered for servicing 16.0.

Expand Down
42 changes: 42 additions & 0 deletions documentation/wiki/Mac-Debugging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#Debugging with MacOS
* Open terminal
* Hit command-space, type terminal, hit enter. Alternatively, hit magnifying glass (spotlight) in upper-right corner and search for terminal.)
* Build and run tests
* Navigation in terminal is similar to command prompt (cd), although you type `ls` in place of `dir`.
* **Use `./build.sh -test` instead of `.\build.cmd -test`.**
* If tests fail, they will appear twice in red: once when the test fails and once after all tests have run. As an example, it might say `XUnit : error : Tests failed: /Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Utilities.UnitTests_netcoreapp2.1_x64.html [netcoreapp2.1|x64] [/Users/forgind/Desktop/code/msbuild/src/Utilities.UnitTests/Microsoft.Build.Utilities.UnitTests.csproj]` near the end.
* Successful tests appear in white and only once like this: `Tests succeeded: /Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.CommandLine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.CommandLine.UnitTests.dll [netcoreapp2.1|x64]`
* Choose a set of tests to analyze.
* From the previous example, one sample would be `Microsoft.Build.UnitTests_netcoreapp2.1_x64`, that is, the part immediately preceding `.html`.
* Run `find . -name Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.log`
* Note the addition of the extension `.log` in place of `.html`.
* This should print out a path (from your current working directory) to the relevant log file.
* Type `tail -n 1 <path from previous step>`
* This prints out the last line of that file.
* You can also just open it normally from a finder window.
* This file contains the standard output from the last run.
* You may notice that the line printed by this command is a single (long) command line statement.
* Copy the command line statement from the previous step. Remove the portion after the redirection (`>` character not preceded by 2) including that character. You may notice that part redirects output to the file you’re viewing.
* The last part (`2>&1`) redirects standard error (using `2>`) to the same place as where standard out is going (`&1`), in this case this log file.
* If you would like to rerun all tests from a given class (rather than just a specific method), you can append `-class` and the class's fully qualified name. To run all tests from `TaskBuilder_Tests`, for instance, you would add `-class Microsoft.Build.UnitTests.BackEnd.TaskBuilder_Tests` and run the statement without the following steps. Note that in the example below, standard output is redirected to `/dev/null`, thus only printing the errors.
* Prepend `./build.sh &&` to the truncated command line statement.
* Append `-method ` and the name of the method you want to test to the end.
* You can find the failing method by opening the html file (`/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Utilities.UnitTests_netcoreapp2.1_x64.html` from the above case) in a web browser of choice. You will need to prepend `file://` if you use Safari.
* This will show a list of failing methods including why they failed.
* Running this statement will run just the one test (after building) and print out both the error and the Console.WriteLine() statements you added to the test/what it calls.


Sample statements with outputs below and changes to the output of the second command **bolded** (note that additionally, the last two lines and one character of the second output were deleted):

<pre><code>
$ find . -name Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.log
./artifacts/log/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.log

$ tail -n 1 ./artifacts/log/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.log
"/Users/forgind/Desktop/code/msbuild/.dotnet/dotnet" exec --depsfile "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.deps.json" --runtimeconfig "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.runtimeconfig.json" "/Users/forgind/.nuget/packages/xunit.runner.console/2.4.1/tools/netcoreapp2.0/xunit.console.dll" "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.dll" -noautoreporters -xml "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.xml" -html "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.html" -notrait category=nonosxtests -notrait category=netcore-osx-failing -notrait category=nonnetcoreapptests -notrait category=failing > "/Users/forgind/Desktop/code/msbuild/artifacts/log/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.log" 2>&1

$ "/Users/forgind/Desktop/code/msbuild/.dotnet/dotnet" exec --depsfile "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.deps.json" --runtimeconfig "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.runtimeconfig.json" "/Users/forgind/.nuget/packages/xunit.runner.console/2.4.1/tools/netcoreapp2.0/xunit.console.dll" "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.dll" -noautoreporters -xml "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.xml" -html "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.html" -notrait category=nonosxtests -notrait category=netcore-osx-failing -notrait category=nonnetcoreapptests -notrait category=failing -class Microsoft.Build.UnitTests.BackEnd.TaskBuilder_Tests > /dev/null
Microsoft.Build.UnitTests.BackEnd.TaskBuilder_Tests.NullMetadataOnLegacyOutputItems [FAIL]

$ <b>./build.sh &&</b> "/Users/forgind/Desktop/code/msbuild/.dotnet/dotnet" exec --depsfile "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.deps.json" --runtimeconfig "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.runtimeconfig.json" "/Users/forgind/.nuget/packages/xunit.runner.console/2.4.1/tools/netcoreapp2.0/xunit.console.dll" "/Users/forgind/Desktop/code/msbuild/artifacts/bin/Microsoft.Build.Engine.UnitTests/Debug/netcoreapp2.1/Microsoft.Build.Engine.UnitTests.dll" -noautoreporters -xml "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.xml" -html "/Users/forgind/Desktop/code/msbuild/artifacts/TestResults/Debug/Microsoft.Build.Engine.UnitTests_netcoreapp2.1_x64.html" -notrait category=nonosxtests -notrait category=netcore-osx-failing -notrait category=nonnetcoreapptests -notrait category=failing <b>-method Microsoft.Build.UnitTests.BackEnd.TaskBuilder_Tests.NullMetadataOnLegacyOutputItems</b>
</code></pre>
2 changes: 1 addition & 1 deletion documentation/wiki/Providing-Binary-Logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ However, you should be aware what type of information is captured in the binary

⚠ NOTE: some build environments make secrets available using environment variables. Before sharing a binary log, make sure it does not expose API tokens or other important secrets.

You can create a binary log by passing the `/bl` parameter to MSBuild. You can explore the contents of the generated .binlog file using [MSBuild Structured Log Viewer](http://msbuildlog.com/).
You can create a binary log by passing the `-bl` parameter to MSBuild. You can explore the contents of the generated .binlog file using [MSBuild Structured Log Viewer](http://msbuildlog.com/).

[More details about binary logs](Binary-Log.md)
3 changes: 3 additions & 0 deletions eng/BootStrapMSBuild.targets
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@

<!-- NuGet.targets will be in the ResolvedRuntimeTargets ItemGroup -->
<_NuGetRuntimeDependencies Include="%(RuntimeTargetsCopyLocalItems.Identity)" Condition="'@(RuntimeTargetsCopyLocalItems->Contains('NuGet.'))' == 'True'" />

<!-- We are not installing dotnet sdk for a mono build, so this file won't be available. It is copied over separately -->
<_NuGetRuntimeDependencies Include="$(DOTNET_INSTALL_DIR)\sdk\$(DotNetCliVersion)\RuntimeIdentifierGraph.json" Condition="'$(MonoBuild)' != 'true'" />
</ItemGroup>
</Target>

Expand Down
11 changes: 6 additions & 5 deletions eng/Packages.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>

<PropertyGroup>
<MicrosoftNetCompilersVersion>3.3.1-beta4-19462-11</MicrosoftNetCompilersVersion>
<CompilerToolsVersion>3.3.1-beta4-19462-11</CompilerToolsVersion>
<NuGetPackageVersion>5.3.0-rtm.6192</NuGetPackageVersion>
<MicrosoftNetCompilersVersion>3.4.0-beta3-19521-01</MicrosoftNetCompilersVersion>
<CompilerToolsVersion>$(MicrosoftNetCompilersVersion)</CompilerToolsVersion>
<NuGetPackageVersion>5.4.0-rtm.6292</NuGetPackageVersion>
<NuGetBuildTasksVersion Condition="'$(NuGetBuildTasksVersion)' == ''">$(NuGetPackageVersion)</NuGetBuildTasksVersion>
<NuGetCommandsVersion Condition="'$(NuGetCommandsVersion)' == ''">$(NuGetPackageVersion)</NuGetCommandsVersion>
<NuGetProtocolVersion Condition="'$(NuGetProtocolVersion)' == ''">$(NuGetPackageVersion)</NuGetProtocolVersion>
Expand Down Expand Up @@ -34,7 +35,7 @@
<PackageReference Update="System.Net.Http" Version="4.3.4" />
<PackageReference Update="System.Reflection.Metadata" Version="1.6.0" />
<PackageReference Update="System.Reflection.TypeExtensions" Version="4.1.0" />
<PackageReference Update="System.Resources.Extensions" Version="$(SystemResourcesExtensionsVersion)" />
<PackageReference Update="System.Resources.Extensions" Version="4.6.0" />
<PackageReference Update="System.Resources.Writer" Version="4.0.0" />
<PackageReference Update="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
<PackageReference Update="System.Runtime.Loader" Version="4.0.0" />
Expand All @@ -50,7 +51,7 @@
</ItemGroup>

<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<GlobalPackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-alpha-004" PrivateAssets="All"/>
<GlobalPackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-alpha-004" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down
36 changes: 14 additions & 22 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,47 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<Dependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19461.7">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19564.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>8eb29ba860a3cfcfe68f9a8256caa7efc1f1aaba</Sha>
<Sha>2485d69f4aebb147ab4ec1755555ffa24a3c6b1b</Sha>
</Dependency>
</ToolsetDependencies>
<ProductDependencies>
<Dependency Name="System.Resources.Extensions" Version="4.6.0-rc2.19458.3">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>173d70b99a5dbb3ff9298a6e2e9c7f7e7b56dd7c</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Sdk" Version="3.1.100-preview1.19463.2">
<Dependency Name="Microsoft.NET.Sdk" Version="3.1.100-rtm.19568.4">
<Uri>https://github.com/dotnet/sdk</Uri>
<Sha>a19b734139ab62de631c31897b0ffc35f8462f3f</Sha>
<Sha>49bbede419cf63e15c70f4b463f80e4811fe3f34</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Sdk.Razor" Version="3.1.0-preview1.19470.1">
<Dependency Name="Microsoft.NET.Sdk.Razor" Version="3.1.0">
<Uri>https://github.com/aspnet/AspNetCore-Tooling</Uri>
<Sha>f283e4a7c0d47054c9a178ff0b29f00e68f307d3</Sha>
<Sha>806f68f84d7ecf341811e317810f9aea0e1a862e</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.Sdk.Web" Version="3.0.100-rc2.19461.2">
<Dependency Name="Microsoft.NET.Sdk.Web" Version="3.1.100-rtm.19569.1">
<Uri>https://github.com/aspnet/websdk</Uri>
<Sha>9471e9daf66b1e4f03d8b461c3ca0594f742923b</Sha>
<Sha>a1041655b92f65e492b7337786f235e0a1a4b731</Sha>
</Dependency>
<Dependency Name="ILLink.Tasks" Version="0.1.6-prerelease.19380.1">
<Uri>https://github.com/mono/linker</Uri>
<Sha>1127689f262d52ea8ff68ef03d706fa62b3b40a1</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App" Version="3.1.0-preview1.19467.7">
<Dependency Name="Microsoft.NETCore.App" Version="3.1.0-preview2.19521.15">
<Uri>https://github.com/dotnet/core-setup</Uri>
<Sha>1e19b8c0d63fe23da7bdd9625ca51c6bd2d1bab2</Sha>
<Sha>f830769364b45286b638a57176d4a7997dbc5237</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Cli.Runtime" Version="3.1.100-preview1.19467.5">
<Dependency Name="Microsoft.DotNet.Cli.Runtime" Version="3.1.100-rtm.19568.3">
<Uri>https://github.com/dotnet/cli</Uri>
<Sha>11fe23d96c69dad32ab5267d63e572778c5d6de5</Sha>
</Dependency>
<Dependency Name="Microsoft.Net.Compilers" Version="3.3.1-beta3-19426-02">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>c82648d8964d1e683f92b7daa91beef2fdc5fb72</Sha>
<Sha>cc6bdda9777fff833fe170e3006470e9409521cf</Sha>
</Dependency>
<Dependency Name="NuGet.Build.Tasks" Version="5.3.0-rtm.6192">
<Dependency Name="NuGet.Build.Tasks" Version="5.4.0-rtm.6292">
<Uri>https://github.com/NuGet/NuGet.Client</Uri>
<Sha>bb60d6720d24890b8f3e071e70d27ea0f2bef57e</Sha>
<Sha>6f8eb3a2e1db6b458451b9cfd2a4f5557769b041</Sha>
</Dependency>
</ProductDependencies>
</Dependencies>
Loading

0 comments on commit e531c61

Please sign in to comment.