forked from dotnet/msbuild
-
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.
Merge pull request dotnet#156 from radical/update-xplat-master
[mono/master] Update from upstream master and update SDKs
- Loading branch information
Showing
218 changed files
with
3,962 additions
and
2,275 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
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
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,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> |
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
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,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> |
Oops, something went wrong.