diff --git a/src/coreclr/build-test.cmd b/src/coreclr/build-test.cmd index 60e9ec3e809aa2..1af38251d7d968 100644 --- a/src/coreclr/build-test.cmd +++ b/src/coreclr/build-test.cmd @@ -320,7 +320,7 @@ if defined __SkipManaged goto SkipManagedBuild echo %__MsgPrefix%Starting the Managed Tests Build if not defined VSINSTALLDIR ( - echo %__ErrMsgPrefix%%__MsgPrefix%Error: build-test.cmd should be run from a Visual Studio Command Prompt. Please see https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md for build instructions. + echo %__ErrMsgPrefix%%__MsgPrefix%Error: build-test.cmd should be run from a Visual Studio Command Prompt. Please see https://github.com/dotnet/runtime/blob/master/docs/coreclr/project-docs/developer-guide.md for build instructions. exit /b 1 ) set __AppendToLog=false @@ -647,7 +647,7 @@ of the previous version to "%VSINSTALLDIR%" and then build. REM DIA SDK not included in Express editions echo Visual Studio Express does not include the DIA SDK. ^ You need Visual Studio 2017 or 2019 (Community is free). -echo See: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md#prerequisites +echo See: https://github.com/dotnet/runtime/blob/master/docs/coreclr/project-docs/developer-guide.md#prerequisites exit /b 1 :PrecompileFX diff --git a/src/coreclr/build.cmd b/src/coreclr/build.cmd index 40e138765a12c6..e30deaf1faf8a8 100644 --- a/src/coreclr/build.cmd +++ b/src/coreclr/build.cmd @@ -1078,5 +1078,5 @@ of the previous version to "%VSINSTALLDIR%" and then build. REM DIA SDK not included in Express editions echo Visual Studio Express does not include the DIA SDK. ^ You need Visual Studio 2017 or 2019 (Community is free). -echo See: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md#prerequisites +echo See: https://github.com/dotnet/runtime/blob/master/docs/coreclr/project-docs/developer-guide.md#prerequisites exit /b 1 diff --git a/src/coreclr/scripts/superpmi.md b/src/coreclr/scripts/superpmi.md index 074ed494d3d68b..b10a54596a10d5 100644 --- a/src/coreclr/scripts/superpmi.md +++ b/src/coreclr/scripts/superpmi.md @@ -1,7 +1,7 @@ ### An overview of using superpmi.py ------------------------- -General information on [SuperPMI](https://github.com/dotnet/coreclr/blob/master/src/ToolBox/superpmi/readme.txt) +General information on [SuperPMI](https://github.com/dotnet/runtime/blob/master/src/coreclr/ToolBox/superpmi/readme.txt) ------------------------ @@ -30,11 +30,11 @@ Although SuperPMI has many uses, setup and use of SuperPMI is not always trivial See the table above for locations of default collections that exist. If there is an mch file that exists, then SuperPMI will automatically download and setup the mch using that location. Please note that, it is possible that the collection is out of date, or there is a jitinterface change which makes the collection invalid. If this is the case, then in order to use the tool a collection will have to be done manually. In order to reproduce the default collections, please see below for what command the default collections are done with. -`/Users/jashoo/coreclr/build.sh x64 checked` +`/Users/jashoo/runtime/src/coreclr/build.sh x64 checked` -`/Users/jashoo/coreclr/build-test.sh x64 checked -priority1` +`/Users/jashoo/runtime/src/coreclr/build-test.sh x64 checked -priority1` -`/Users/jashoo/coreclr/scripts/superpmi.py collect bash "/Users/jashoo/coreclr/tests/runtest.sh x64 checked" --skip-cleanup` +`/Users/jashoo/runtime/src/coreclr/scripts/superpmi.py collect bash "/Users/jashoo/runtime/src/coreclr/tests/runtest.sh x64 checked" --skip-cleanup` **Collect** @@ -63,4 +63,4 @@ SuperPMI replay supports faster assertion checking over a collection than runnin SuperPMI will take two different JITs, a baseline and diff JIT and run the compiler accross all the methods in the mch file. It uses coredistools to do a binary difference of the two different outputs. Note that sometimes the binary will differ, and SuperPMI will be run once again dumping the asm that was output in text format. Then the text will be diffed, if there are differences, you should look for text differences. If there are some then it is worth investigating the asm differences. -It is worth noting as well that SuperPMI gives more stable instructions retired counters for the JIT. \ No newline at end of file +It is worth noting as well that SuperPMI gives more stable instructions retired counters for the JIT. diff --git a/src/coreclr/setup_vs_tools.cmd b/src/coreclr/setup_vs_tools.cmd index 24e8b230cab8a5..f9c02b8e3e8b5e 100644 --- a/src/coreclr/setup_vs_tools.cmd +++ b/src/coreclr/setup_vs_tools.cmd @@ -31,7 +31,7 @@ echo Visual Studio 2017 or later not found :call_vs if not exist "%_VSCOMNTOOLS%" ( echo %__MsgPrefix%Error: Visual Studio 2017 or 2019 required. - echo Please see https://github.com/dotnet/coreclr/blob/master/Documentation/building/windows-instructions.md for build instructions. + echo Please see https://github.com/dotnet/runtime/blob/master/docs/coreclr/building/windows-instructions.md for build instructions. exit /b 1 ) echo %__MsgPrefix%"%_VSCOMNTOOLS%\VsDevCmd.bat" diff --git a/src/coreclr/src/jit/compiler.cpp b/src/coreclr/src/jit/compiler.cpp index 89aa92440e14d6..579f389841aec0 100644 --- a/src/coreclr/src/jit/compiler.cpp +++ b/src/coreclr/src/jit/compiler.cpp @@ -4456,7 +4456,7 @@ void Compiler::compFunctionTraceEnd(void* methodCodePtr, ULONG methodCodeSize, b // code:CILJit::compileMethod function. // // For an overview of the structure of the JIT, see: -// https://github.com/dotnet/coreclr/blob/master/Documentation/botr/ryujit-overview.md +// https://github.com/dotnet/runtime/blob/master/docs/coreclr/botr/ryujit-overview.md // void Compiler::compCompile(void** methodCodePtr, ULONG* methodCodeSize, JitFlags* compileFlags) { diff --git a/src/coreclr/src/jit/conventions.txt b/src/coreclr/src/jit/conventions.txt index 2984ed60434590..2a6983413c9e63 100644 --- a/src/coreclr/src/jit/conventions.txt +++ b/src/coreclr/src/jit/conventions.txt @@ -3,7 +3,7 @@ Coding Conventions" document, that can be used as a template when writing new comments in the JIT source code. The definitive coding conventions document is located here: -https://github.com/dotnet/coreclr/blob/master/Documentation/coding-guidelines/clr-jit-coding-conventions.md +https://github.com/dotnet/runtime/blob/master/docs/coreclr/coding-guidelines/clr-jit-coding-conventions.md ********** Section 7.1.5 TODO comments diff --git a/src/coreclr/src/vm/eetoprofinterfaceimpl.cpp b/src/coreclr/src/vm/eetoprofinterfaceimpl.cpp index 121f6a76adf27c..8da5c31af27c26 100644 --- a/src/coreclr/src/vm/eetoprofinterfaceimpl.cpp +++ b/src/coreclr/src/vm/eetoprofinterfaceimpl.cpp @@ -16,7 +16,7 @@ // PLEASE READ! // // There are strict rules for how to implement ICorProfilerCallback* wrappers. Please read -// https://github.com/dotnet/coreclr/blob/master/Documentation/botr/profilability.md +// https://github.com/dotnet/runtime/blob/master/docs/coreclr/botr/profilability.md // to understand the rules and why they exist. // // As a reminder, here is a short summary of your responsibilities. Every PUBLIC diff --git a/src/coreclr/src/vm/proftoeeinterfaceimpl.cpp b/src/coreclr/src/vm/proftoeeinterfaceimpl.cpp index 6367f21ea5c8e1..bc09e3bb13039c 100644 --- a/src/coreclr/src/vm/proftoeeinterfaceimpl.cpp +++ b/src/coreclr/src/vm/proftoeeinterfaceimpl.cpp @@ -17,7 +17,7 @@ // PLEASE READ! // // There are strict rules for how to implement ICorProfilerInfo* methods. Please read -// https://github.com/dotnet/coreclr/blob/master/Documentation/botr/profilability.md +// https://github.com/dotnet/runtime/blob/master/docs/coreclr/botr/profilability.md // to understand the rules and why they exist. // // As a reminder, here is a short summary of your responsibilities. Every PUBLIC diff --git a/src/coreclr/tests/runtest.py b/src/coreclr/tests/runtest.py index c90e059c27e64f..c40d3a7986db42 100755 --- a/src/coreclr/tests/runtest.py +++ b/src/coreclr/tests/runtest.py @@ -33,8 +33,8 @@ # standard please pass the -test_native_bin_location flag to the script. # # Use the instructions here: -# https://github.com/dotnet/coreclr/blob/master/Documentation/building/windows-test-instructions.md -# https://github.com/dotnet/coreclr/blob/master/Documentation/building/unix-test-instructions.md +# https://github.com/dotnet/runtime/blob/master/docs/coreclr/building/windows-test-instructions.md +# https://github.com/dotnet/runtime/blob/master/docs/coreclr/building/unix-test-instructions.md # ################################################################################ ################################################################################ diff --git a/src/coreclr/tests/src/Interop/ReadMe.md b/src/coreclr/tests/src/Interop/ReadMe.md index 97e4202580246d..fab2ed55efb3ab 100644 --- a/src/coreclr/tests/src/Interop/ReadMe.md +++ b/src/coreclr/tests/src/Interop/ReadMe.md @@ -10,7 +10,7 @@ There should be no more than **1** project type per folder (i.e. a folder can co Ancillary source assets for all tests should be located in `Interop/common` and can be easily added to all managed tests via the `Interop.settings.targets` file or native tests via `Interop.cmake`. -A common pattern for testing is using the `Assert` utilities found in the `CoreFX` repo. This class is part of the `CoreCLRTestLibrary` which is included in all test projects by the `Interop.settings.targets` import. In order to use, add the following `using TestLibrary;` in the relevant test file. +A common pattern for testing is using the `Assert` utilities. This class is part of the `CoreCLRTestLibrary` which is included in all test projects by the `Interop.settings.targets` import. In order to use, add the following `using TestLibrary;` in the relevant test file. ### Managed @@ -55,7 +55,7 @@ Testing P/Invoke has two aspects: ### Marshal API -The Marshal API surface area testing is traditionally done via unit testing and far better suited in the [CoreFX](https://github.com/dotnet/corefx/tree/master/src/System.Runtime.InteropServices/tests) repo. Cases where testing the API surface area requires native tests assets will be performed in the [CoreCLR](https://github.com/dotnet/coreclr/tree/master/tests/src/Interop) repo. +The Marshal API surface area testing is traditionally done via unit testing and far better suited in the [library test folder](https://github.com/dotnet/runtime/tree/master/src/libraries/System.Runtime.InteropServices/tests). Cases where testing the API surface area requires native tests assets will be performed in the [coreclr test folder](https://github.com/dotnet/runtime/tree/master/src/coreclr/tests/src/Interop) repo. ### NativeLibrary @@ -69,4 +69,4 @@ This series has unit tests corresponding to `System.Runtime.NativeLibrary` APIs ### Adding new managed project 1) The build system automatically discovers managed test projects. -1) Verify project builds by running `build-tests.cmd`/`build-tests.sh` from repo root. \ No newline at end of file +1) Verify project builds by running `build-tests.cmd`/`build-tests.sh` from repo root. diff --git a/src/coreclr/tests/src/JIT/superpmi/runtests.sh b/src/coreclr/tests/src/JIT/superpmi/runtests.sh index 9fa59438216460..707cbd6b102d8f 100755 --- a/src/coreclr/tests/src/JIT/superpmi/runtests.sh +++ b/src/coreclr/tests/src/JIT/superpmi/runtests.sh @@ -2,7 +2,7 @@ # Run CoreCLR OSS tests on Linux or Mac # Use the instructions here: -# https://github.com/dotnet/coreclr/blob/master/Documentation/building/unix-test-instructions.md +# https://github.com/dotnet/runtime/blob/master/docs/coreclr/building/unix-test-instructions.md # # Summary: # 1. On Linux/Mac, in coreclr, ./build.sh diff --git a/src/installer/corehost/build.cmd b/src/installer/corehost/build.cmd index b22f2540a805f6..d54650b859979b 100644 --- a/src/installer/corehost/build.cmd +++ b/src/installer/corehost/build.cmd @@ -66,7 +66,7 @@ if "%VisualStudioVersion%"=="16.0" ( :MissingVersion :: Can't find VS 2017, 2019 echo Error: Visual Studio 2017 or 2019 required -echo Please see https://github.com/dotnet/core-setup/tree/master/Documentation/building/windows-instructions.md for build instructions. +echo Please see https://github.com/dotnet/runtime/tree/master/docs/installer/building/windows-instructions.md for build instructions. exit /b 1 :VS2019 @@ -124,7 +124,7 @@ of previous version to "%VSINSTALLDIR%" and then resume build. :: DIA SDK not included in Express editions echo Visual Studio 2013 Express does not include the DIA SDK. ^ You need Visual Studio 2013+ (Community is free). -echo See: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md#prerequisites +echo See: https://github.com/dotnet/runtime/blob/master/docs/coreclr/project-docs/developer-guide.md#prerequisites exit /b 1 :GenVSSolution diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/cs.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/cs.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/cs.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/cs.lproj/conclusion.html @@ -1,4 +1,4 @@ - +
@@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/de.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/de.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/de.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/de.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/en.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/en.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/en.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/en.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/es.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/es.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/es.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/es.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/fr.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/fr.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/fr.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/fr.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/it.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/it.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/it.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/it.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/ja.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/ja.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/ja.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/ja.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/ko.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/ko.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/ko.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/ko.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/pl.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/pl.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/pl.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/pl.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/pt-br.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/pt-br.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/pt-br.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/pt-br.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/ru.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/ru.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/ru.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/ru.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/tr.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/tr.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/tr.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/tr.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hans.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hans.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hans.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hans.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hant.lproj/conclusion.html b/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hant.lproj/conclusion.html index e81d4355432c3d..1a0ad82bef1ed5 100644 --- a/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hant.lproj/conclusion.html +++ b/src/installer/pkg/packaging/osx/hostfxr/resources/zh-hant.lproj/conclusion.html @@ -1,4 +1,4 @@ - + @@ -15,7 +15,7 @@In order to be able to use .NET Core on OS X, you need to install OpenSSL version 1.0.1/1.0.2. There are many ways to install/update your libssl. Using Homebrew is the easiest. - You can view the instructions here or if you're updating, on this page. + You can view the instructions here or if you're updating, on this page.
diff --git a/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.cmd b/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.cmd deleted file mode 100644 index eb7035b8b24245..00000000000000 --- a/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.cmd +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF -SETLOCAL - -if not [%1] == [] (set remote_repo=%1) else (set remote_repo=%COREFX_REPO%) - -IF [%remote_repo%] == [] ( - echo The 'COREFX_REPO' environment variable or command line parameter is not set, aborting. - exit /b 1 -) - -echo COREFX_REPO: %remote_repo% - -robocopy . %remote_repo%\src\Common\src\System\Net\Http\Http2 /MIR -robocopy .\..\test\Shared.Tests\Http2 %remote_repo%\src\Common\tests\Tests\System\Net\Http2 /MIR diff --git a/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.sh b/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.sh deleted file mode 100644 index f7573db5218a15..00000000000000 --- a/src/libraries/Common/src/System/Net/Http/Http2/CopyToCoreFx.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -if [[ -n "$1" ]]; then - remote_repo="$1" -else - remote_repo="$COREFX_REPO" -fi - -if [[ -z "$remote_repo" ]]; then - echo The 'COREFX_REPO' environment variable or command line parameter is not set, aborting. - exit 1 -fi - -cd "$(dirname "$0")" || exit 1 - -echo "COREFX_REPO: $remote_repo" - -rsync -av --delete ./ "$remote_repo"/src/Common/src/System/Net/Http/Http2 -rsync -av --delete ./../test/Shared.Tests/Http2/ "$remote_repo"/src/Common/tests/Tests/System/Net/Http2 diff --git a/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.cmd b/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.cmd new file mode 100644 index 00000000000000..7497eadd522099 --- /dev/null +++ b/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.cmd @@ -0,0 +1,14 @@ +@ECHO OFF +SETLOCAL + +if not [%1] == [] (set remote_repo=%1) else (set remote_repo=%RUNTIME_REPO%) + +IF [%remote_repo%] == [] ( + echo The 'RUNTIME_REPO' environment variable or command line parameter is not set, aborting. + exit /b 1 +) + +echo RUNTIME_REPO: %remote_repo% + +robocopy . %remote_repo%\src\libraries\Common\src\System\Net\Http\Http2 /MIR +robocopy .\..\test\Shared.Tests\Http2 %remote_repo%\src\libraries\Common\tests\Tests\System\Net\Http2 /MIR diff --git a/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.sh b/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.sh new file mode 100644 index 00000000000000..baf10f3b8616c4 --- /dev/null +++ b/src/libraries/Common/src/System/Net/Http/Http2/CopyToRuntime.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +if [[ -n "$1" ]]; then + remote_repo="$1" +else + remote_repo="$RUNTIME_REPO" +fi + +if [[ -z "$remote_repo" ]]; then + echo The 'RUNTIME_REPO' environment variable or command line parameter is not set, aborting. + exit 1 +fi + +cd "$(dirname "$0")" || exit 1 + +echo "RUNTIME_REPO: $remote_repo" + +rsync -av --delete ./ "$remote_repo"/src/libraries/Common/src/System/Net/Http/Http2 +rsync -av --delete ./../test/Shared.Tests/Http2/ "$remote_repo"/src/libraries/Common/tests/Tests/System/Net/Http2 diff --git a/src/libraries/Common/src/System/Net/Http/Http2/ReadMe.SharedCode.md b/src/libraries/Common/src/System/Net/Http/Http2/ReadMe.SharedCode.md index 4482e11b84b6b2..d55fa81aea2e8d 100644 --- a/src/libraries/Common/src/System/Net/Http/Http2/ReadMe.SharedCode.md +++ b/src/libraries/Common/src/System/Net/Http/Http2/ReadMe.SharedCode.md @@ -1,29 +1,29 @@ -The code in this directory is shared between CoreFx and AspNetCore. This contains HTTP/2 protocol infrastructure such as an HPACK implementation. Any changes to this dir need to be checked into both repositories. +The code in this directory is shared between dotnet/runtime and aspnet/AspNetCore. This contains HTTP/2 protocol infrastructure such as an HPACK implementation. Any changes to this dir need to be checked into both repositories. -Corefx code paths: -- corefx\src\Common\src\System\Net\Http\Http2 -- corefx\src\Common\tests\Tests\System\Net\Http2 -AspNetCore code paths: +dotnet/runtime code paths: +- runtime\src\libraries\Common\src\System\Net\Http\Http2 +- runtime\src\libraries\Common\tests\Tests\System\Net\Http2 +aspnet/AspNetCore code paths: - AspNetCore\src\Shared\Http2 - AspNetCore\src\Shared\test\Shared.Tests\Http2 ## Copying code -To copy code from CoreFx to AspNetCore set ASPNETCORE_REPO to the AspNetCore repo root and then run CopyToAspNetCore.cmd. -To copy code from AspNetCore to CoreFx set COREFX_REPO to the CoreFx repo root and then run CopyToCoreFx.cmd. +To copy code from dotnet/runtime to aspnet/AspNetCore, set ASPNETCORE_REPO to the AspNetCore repo root and then run CopyToAspNetCore.cmd. +To copy code from aspnet/AspNetCore to dotnet/runtime, set RUNTIME_REPO to the runtime repo root and then run CopyToRuntime.cmd. -## Building CoreFx code: -- https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md -- https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md -- Run build.cmd from the root once: `PS D:\github\corefx> .\build.cmd` +## Building dotnet/runtime code: +- https://github.com/dotnet/runtime/blob/master/docs/libraries/building/windows-instructions.md +- https://github.com/dotnet/runtime/blob/master/docs/libraries/project-docs/developer-guide.md +- Run libraries.cmd from the root once: `PS D:\github\runtime> .\libraries.cmd` - Build the individual projects: -- `PS D:\github\corefx\src\Common\tests> dotnet msbuild /t:rebuild` -- `PS D:\github\corefx\src\System.Net.Http\src> dotnet msbuild /t:rebuild` +- `PS D:\github\dotnet\src\libraries\Common\tests> dotnet msbuild /t:rebuild` +- `PS D:\github\dotnet\src\libraries\System.Net.Http\src> dotnet msbuild /t:rebuild` -### Running CoreFx tests: -- `PS D:\github\corefx\src\Common\tests> dotnet msbuild /t:rebuildandtest` -- `PS D:\github\corefx\src\System.Net.Http\tests\UnitTests> dotnet msbuild /t:rebuildandtest` +### Running dotnet/runtime tests: +- `PS D:\github\runtime\src\libraries\Common\tests> dotnet msbuild /t:rebuildandtest` +- `PS D:\github\runtime\src\libraries\System.Net.Http\tests\UnitTests> dotnet msbuild /t:rebuildandtest` -## Building AspNetCore code: +## Building aspnet/AspNetCore code: - https://github.com/aspnet/AspNetCore/blob/master/docs/BuildFromSource.md - Run restore in the root once: `PS D:\github\AspNetCore> .\restore.cmd` - Activate to use the repo local runtime: `PS D:\github\AspNetCore> . .\activate.ps1` @@ -31,6 +31,6 @@ To copy code from AspNetCore to CoreFx set COREFX_REPO to the CoreFx repo root a - `(AspNetCore) PS D:\github\AspNetCore\src\Shared\test\Shared.Tests> dotnet msbuild` - `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\src> dotnet msbuild` -### Running AspNetCore tests: +### Running aspnet/AspNetCore tests: - `(AspNetCore) PS D:\github\AspNetCore\src\Shared\test\Shared.Tests> dotnet test` -- `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\test> dotnet test` \ No newline at end of file +- `(AspNetCore) PS D:\github\AspNetCore\src\servers\Kestrel\core\test> dotnet test` diff --git a/src/libraries/Common/tests/StaticTestGenerator/README.md b/src/libraries/Common/tests/StaticTestGenerator/README.md index 3c299c7b3c8c0c..2467b2eebca5af 100644 --- a/src/libraries/Common/tests/StaticTestGenerator/README.md +++ b/src/libraries/Common/tests/StaticTestGenerator/README.md @@ -1,6 +1,6 @@ # Overview -This is a .NET Core utility that reflects over a corefx xunit test assembly and generates +This is a .NET Core utility that reflects over a runtime xunit test assembly and generates a simple console app that invokes tests with minimal ceremony and without any reflection. Each test invocation is emitted as a call into the public test method, with one invocation generated per theory input. @@ -9,29 +9,29 @@ generated per theory input. ## Prereqs -- Build corefx from root to ensure that the testhost directory of assemblies is published, e.g. `cd d:\repos\corefx & build.cmd`. -- Build the test assembly desired, e.g `cd src\System.Runtime\tests & dotnet msbuild`. +- Build runtime from root to ensure that the testhost directory of assemblies is published, e.g. `cd d:\repos\runtime & .\libraries.cmd`. +- Build the test assembly desired, e.g `cd src\libraries\System.Runtime\tests & dotnet msbuild`. ## Running the StaticTestGenerator utility From within the utility directory, run the utility with the arguments: - The path to the output directory into which the resulting .cs and .csproj files are written. -- The path to a directory containing all of the corefx test host assemblies. +- The path to a directory containing all of the runtime test host assemblies. - The path to the test assembly to be analyzed. - Any additional xunit options to be provided. If none are provided, it defaults to the same inputs that are passed when testing inner loop on Windows. For example: ``` -dotnet run d:\output "d:\repos\corefx\artifacts\bin\testhost\netcoreapp-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\3.0.0" "d:\repos\corefx\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll" +dotnet run d:\output "d:\repos\runtime\artifacts\bin\testhost\netcoreapp-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\5.0.0" "d:\repos\runtime\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll" ``` This will run the tool and result in output written to the console like: ``` -3/27/2019 10:55:37 PM | Test assembly path : d:\repos\corefx\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll -3/27/2019 10:55:37 PM | Helper assemblies path: d:\repos\corefx\artifacts\bin\testhost\netcoreapp-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\3.0.0\ +3/27/2019 10:55:37 PM | Test assembly path : d:\repos\runtime\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll +3/27/2019 10:55:37 PM | Helper assemblies path: d:\repos\runtime\artifacts\bin\testhost\netcoreapp-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\3.0.0\ 3/27/2019 10:55:37 PM | Output path : d:\output\System.Runtime.Tests\ -3/27/2019 10:55:37 PM | Xunit arguments : d:\repos\corefx\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll -notrait category=nonnetcoreapptests -notrait category=nonwindowstests -notrait category=IgnoreForCI -notrait category=failing -notrait category=OuterLoop +3/27/2019 10:55:37 PM | Xunit arguments : d:\repos\runtime\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll -notrait category=nonnetcoreapptests -notrait category=nonwindowstests -notrait category=IgnoreForCI -notrait category=failing -notrait category=OuterLoop 3/27/2019 10:55:37 PM | -3/27/2019 10:55:37 PM | Loaded System.Runtime.Tests from d:\repos\corefx\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll +3/27/2019 10:55:37 PM | Loaded System.Runtime.Tests from d:\repos\runtime\artifacts\bin\System.Runtime.Tests\netcoreapp-Windows_NT-Debug\System.Runtime.Tests.dll 3/27/2019 10:55:37 PM | Found 5322 test methods. 3/27/2019 10:55:38 PM | Found 3469 InlineDatas / 949 MethodDatas across 5322 test methods. 3/27/2019 10:55:38 PM | diff --git a/src/libraries/Common/tests/System/Net/Prerequisites/README.md b/src/libraries/Common/tests/System/Net/Prerequisites/README.md index 1053cc47f21862..32d54caa154ac7 100644 --- a/src/libraries/Common/tests/System/Net/Prerequisites/README.md +++ b/src/libraries/Common/tests/System/Net/Prerequisites/README.md @@ -12,7 +12,7 @@ Note: the `config.ps1` file has been added to .gitignore to prevent it being upd ### Build the server applications -Prepare the $COREFX_NET_CLIENT_Machine as any Dev station following the instructions at https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md. Ensure that you can build and test CoreFX on this machine. +Prepare the $COREFX_NET_CLIENT_Machine as any Dev station following the instructions at https://github.com/dotnet/runtime/blob/master/docs/libraries/building/windows-instructions.md. Ensure that you can build and test CoreFX on this machine. In addition, you will also need to install the _Azure development_ workload for Visual Studio 2017. From a Visual Studio command prompt: diff --git a/src/libraries/Native/build-native.cmd b/src/libraries/Native/build-native.cmd index 2caf668d5599f8..0fd1ae9830b2c5 100644 --- a/src/libraries/Native/build-native.cmd +++ b/src/libraries/Native/build-native.cmd @@ -70,7 +70,7 @@ if "%VisualStudioVersion%"=="16.0" ( :MissingVersion :: Can't find VS 2017, 2019 echo Error: Visual Studio 2017 or 2019 required -echo Please see https://github.com/dotnet/corefx/tree/master/Documentation for build instructions. +echo Please see https://github.com/dotnet/runtime/tree/master/docs/libraries/building for build instructions. exit /b 1 :VS2019 @@ -124,7 +124,7 @@ Make sure you selected the correct dependencies when installing Visual Studio. :: DIA SDK not included in Express editions echo Visual Studio Express does not include the DIA SDK. ^ You need Visual Studio 2017 or 2019 (Community is free). -echo See: https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md#required-software +echo See: https://github.com/dotnet/runtime/blob/master/docs/libraries/building/windows-instructions.md#required-software exit /b 1 :GenVSSolution diff --git a/src/libraries/System.ComponentModel.Composition/mef_guide/README.md b/src/libraries/System.ComponentModel.Composition/mef_guide/README.md index 9b1fcb31dacc71..b48d1c71b5f9fa 100644 --- a/src/libraries/System.ComponentModel.Composition/mef_guide/README.md +++ b/src/libraries/System.ComponentModel.Composition/mef_guide/README.md @@ -6,4 +6,4 @@ * It is important to recognize that MEF2 is not a new version of MEF1, but instead they serve different purposes. MEF2 is mostly suitable for web apps in order to make them more efficient. MEF1, on the other hand, uses a lot of reflection code in order to import exports, to build catalogs, and to do object instantiations but then it is more flexible in that it accepts cycles. This makes MEF1 a good option for adding dynamic extensions for long running applications. For web apps it is important to have fast response times and we deal with situations where servers might shut down, which is a good use case for MEF2. -* The `System.ComponentModel.Composition` package on nuget is most widely known as MEF1 and was originally shipped for .NET Framework. `Microsoft.Composition` package later became `System.Composition` package and both are known as MEF2. For more information on MEF you can check out the [archive](https://github.com/microsoftarchive/mef) which holds old wiki documentations in it where you can find out more about differences between MEF1 and MEF2 and links to other material. The source code for MEF1 and MEF2 can be found in this repository under [`System.ComponentModel.Composition`](https://github.com/dotnet/corefx/tree/master/src/System.ComponentModel.Composition) and [`System.Composition`](https://github.com/dotnet/corefx/tree/master/src/System.Composition) respectively. +* The `System.ComponentModel.Composition` package on nuget is most widely known as MEF1 and was originally shipped for .NET Framework. `Microsoft.Composition` package later became `System.Composition` package and both are known as MEF2. For more information on MEF you can check out the [archive](https://github.com/microsoftarchive/mef) which holds old wiki documentations in it where you can find out more about differences between MEF1 and MEF2 and links to other material. The source code for MEF1 and MEF2 can be found in this repository under [`System.ComponentModel.Composition`](https://github.com/dotnet/runtime/tree/master/src/libraries/System.ComponentModel.Composition) and [`System.Composition`](https://github.com/dotnet/runtime/tree/master/src/libraries/System.Composition) respectively. diff --git a/src/libraries/System.Data.SqlClient/tests/ManualTests/README.md b/src/libraries/System.Data.SqlClient/tests/ManualTests/README.md index 1901bf843d7efe..22042c6a8415a6 100644 --- a/src/libraries/System.Data.SqlClient/tests/ManualTests/README.md +++ b/src/libraries/System.Data.SqlClient/tests/ManualTests/README.md @@ -4,7 +4,7 @@ These tests require dedicated test servers, so they're designed to be run manual ## Prerequisites -- CoreFX building. you need to be able to do a successful build and run the standard tests, [Unix](https://github.com/dotnet/corefx/blob/master/Documentation/building/cross-platform-testing.md) or [Windows](https://github.com/dotnet/corefx/blob/master/Documentation/building/windows-instructions.md) Use build.cmd for windows and build.sh for Linux to build CoreFX. +- CoreFX building. you need to be able to do a successful build and run the standard tests, [Unix](https://github.com/dotnet/runtime/blob/master/docs/libraries/building/cross-platform-testing.md) or [Windows](https://github.com/dotnet/runtime/blob/master/docs/libraries/building/windows-instructions.md) Use build.cmd for windows and build.sh for Linux to build CoreFX. **N.B.** if you want to run the EFCore tests later you will need to build -allconfigurations to generate the NuGet packages, build -allconfigurations works only on windows. @@ -14,7 +14,7 @@ These tests require dedicated test servers, so they're designed to be run manual - The [Northwind Sample Database](https://msdn.microsoft.com/en-us/library/mt710790.aspx) -- The [UDT Test Database](https://github.com/dotnet/corefx/tree/master/src/System.Data.SqlClient/tests/ManualTests/createUdtTestDb_corefx.sql) +- The [UDT Test Database](https://github.com/dotnet/runtime/tree/master/src/libraries/System.Data.SqlClient/tests/ManualTests/createUdtTestDb_corefx.sql) - TCP and Named Pipe [connection strings](https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring.aspx) to your instance with Northwind set as the initial catalog @@ -25,7 +25,7 @@ These tests require dedicated test servers, so they're designed to be run manual 1. set the environment variables needed for the tests you want. At the minimum you need to set `TEST_NP_CONN_STR` and `TEST_TCP_CONN_STR` to the connection strings. -2. Optionally you may also want to setup other environment variables to test specific optional features such as [TEST_LOCALDB_INSTALLED](https://github.com/dotnet/corefx/blob/8f7b490ca874ee2a9f11f0163412f7c95811298b/src/System.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs#L96) or [TEST_INTEGRATEDSECURITY_SETUP](https://github.com/dotnet/corefx/blob/8f7b490ca874ee2a9f11f0163412f7c95811298b/src/System.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs#L98). Other scenarios lke azure tests may need configuration so if you see those being skipped and you want to run them invesigate the skipped test code to identify how to configure it. +2. Optionally you may also want to setup other environment variables to test specific optional features such as [TEST_LOCALDB_INSTALLED](https://github.com/dotnet/runtime/blob/be980b71efadc622b5720a36867696758e59e71c/src/libraries/System.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs#L123) or [TEST_INTEGRATEDSECURITY_SETUP](https://github.com/dotnet/runtime/blob/be980b71efadc622b5720a36867696758e59e71c/src/libraries/System.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs#L125). Other scenarios lke azure tests may need configuration so if you see those being skipped and you want to run them invesigate the skipped test code to identify how to configure it. 3. run `dotnet msbuild .\src\System.Data.SqlClient\tests\ManualTests\System.Data.SqlClient.ManualTesting.Tests.csproj /t:Rebuild` to build the debug version with all the assertions and run the tests. @@ -36,4 +36,4 @@ These tests require dedicated test servers, so they're designed to be run manual ## Running A Specific Test Once you have all tests running you may need to debug a single failing test. To do this navigate into the manual tests project directory `cd src\System.Data.SqlClient\tests\ManualTests` then run dotnet msbuild and specify the name of the test you want to execute, like this: - `dotnet msbuild /t:RebuildAndTest /p:XunitMethodName=System.Data.SqlClient.ManualTesting.Tests.DDDataTypesTest.MaxTypesTest` \ No newline at end of file + `dotnet msbuild /t:RebuildAndTest /p:XunitMethodName=System.Data.SqlClient.ManualTesting.Tests.DDDataTypesTest.MaxTypesTest` diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md b/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md index 2d32163e2d96b4..fd1a57fae0f6bb 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md +++ b/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md @@ -17,7 +17,7 @@ External dependency Activity Id is passed along with the request, so the depende Activities may be created and started/stopped by platform code or frameworks; applications need to be notified about activities events and need to have access to current activity being processed. Therefore code which creates activity also writes corresponding event to `DiagnosticSource`: -- DO - create new `DiagnosticListener` for specific Activity type to allow filtering by activity. E.g Incoming and Outgoing Http Requests should be different DiagnosticListeners. Follow [DiagnosticSource User Guide](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md) to pick a name. +- DO - create new `DiagnosticListener` for specific Activity type to allow filtering by activity. E.g Incoming and Outgoing Http Requests should be different DiagnosticListeners. Follow [DiagnosticSource User Guide](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md) to pick a name. - DO - Guard Activity creation and start with call to `DiagnosticSource.IsEnabled` to avoid creating activities when no-one is listening to them and to enable event name-based filtering or sampling. - DO - Use `DiagnosticSource.StartActivity(Activity)` and `DiagnosticSource.StopActivity(Activity)` methods instead of Activity methods to ensure Activity events are always written to `DiagnosticSource`. - DO - pass any necessary context to `DiagnosticListener`, so your application may enrich Activity. For example, in the case of an incoming HTTP request, the application needs an instance of `HttpContext` in order to add custom tags (method, path, user-agent, etc.) @@ -108,7 +108,7 @@ Note that different DiagnosticSources should be used for incoming and outgoing H ## Listening to Activity Events An application may listen to activity events and log them. It can access `Activity.Current` to get information about the current activity. -This follows normal [DiagnosticListener conventions](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md). +This follows normal [DiagnosticListener conventions](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md). An application may also add tags and baggage to the current activity when processing an Activity start callback. Note that in the [Incoming Request Sample](#starting-and-stopping-activity), we pass `HttpContext` to DiagnosticSource, so that the application has access to the request properties in order to enrich the current activity. diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md b/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md index e2cb110f2c1420..d723d0f1505b1a 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md +++ b/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md @@ -15,7 +15,7 @@ instrumenting code. In addition to `DiagnosticSource`, there are two other logging systems provided by Microsoft: 1. `EventSource` [docs](https://msdn.microsoft.com/en-us/library/system.diagnostics.tracing.eventsource(v=vs.110).aspx) - and [src](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs). + and [src](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs). `EventSource` has been available since V4.5 of the .NET Runtime and is what is used to instrument the runtime itself. It is designed to be fast and to be strongly typed (payloads are typed, named properties), and to interface with OS logging @@ -374,7 +374,7 @@ Note that using reflection is relatively expensive. However, using reflection is option if the payloads were generated using anonymous types. You can reduce this overhead by making fast, specialized property fetchers either using `PropertyInfo.CreateDelegate` or `ReflectEmit`, but that is beyond the scope of this document. -(See the [PropertySpec](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs#L784) +(See the [PropertySpec](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs#L784) class used in the `DiagnosticSourceEventSource` for an example of a fast, delegate-based property fetcher.) #### Filtering @@ -453,5 +453,5 @@ subscribe to any `DiagnosticListener` as well as pluck off particular data items Thus code that is using `System.Diagnostics.Tracing.EventListener` or ETW can get at any information logged with `DiagnosticSource`. -See [DiagnosticSourceEventSource](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs) +See [DiagnosticSourceEventSource](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/System/Diagnostics/DiagnosticSourceEventSource.cs) for more information on how to use it. diff --git a/src/libraries/System.Net.Http/src/HttpDiagnosticsGuide.md b/src/libraries/System.Net.Http/src/HttpDiagnosticsGuide.md index f4e927421874a2..7a73dda2ccf990 100644 --- a/src/libraries/System.Net.Http/src/HttpDiagnosticsGuide.md +++ b/src/libraries/System.Net.Http/src/HttpDiagnosticsGuide.md @@ -1,12 +1,12 @@ # HttpClient Diagnostic Instrumentation Users Guide -This document describes `HttpClientHandler` instrumentation with [`DiagnosticSource`](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md). +This document describes `HttpClientHandler` instrumentation with [`DiagnosticSource`](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/DiagnosticSourceUsersGuide.md). # Overview Applications typically log outgoing HTTP requests. Usually, it's done with `DelegatingHandler` implementation that logs every request. However, in an existing system, it may require extensive code changes, since `DelegatingHandler` needs to be added to the `HttpClient` pipeline every time when a new client is created. `DiagnosticListener` instrumentation allows to enable outgoing request tracing with a few lines of code; it also provides the context necessary to correlate logs. -Context is represented as `System.Diagnostics.Activity` class. `Activity` may be started as a child of another `Activity`, and the whole operation is represented with a tree of Activities. You can find more details in the [Activity User Guide](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md). +Context is represented as `System.Diagnostics.Activity` class. `Activity` may be started as a child of another `Activity`, and the whole operation is represented with a tree of Activities. You can find more details in the [Activity User Guide](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/ActivityUserGuide.md). `Activity` carries useful properties for logging such as `Id`, `Tags`, `Baggage`, start time and parent information. @@ -17,7 +17,7 @@ Instrumentation adds context into the request headers: * *Request-Id* header with `Activity.Id` value * *Correlation-Context* header with `Activity.Baggage` key-value pair list in `k1=v1, k2=v2` format -See [HTTP Protocol proposal](https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md) for more details. +See [HTTP Protocol proposal](https://github.com/dotnet/runtime/blob/master/src/libraries/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md) for more details. ## Subscription Instrumentation is off by default. To enable it, consumer firstly needs to subscribe to a `DiagnosticListener` called *HttpHandlerDiagnosticListener*. diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Readme.md b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Readme.md index 9247eb2f3fa337..f5ce26498ab283 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Readme.md +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Readme.md @@ -16,32 +16,32 @@ To get the full list of available parameters: $ dotnet run -- -help ``` -### Running with local corefx builds +### Running with local runtime builds Note that the stress suite will test the sdk build available in the available, -that is to say it will not necessarily test the implementation of the local corefx repo. -To achieve this, you will need to point your environment to the [`testhost` build of corefx](https://github.com/dotnet/coreclr/blob/master/Documentation/building/testing-with-corefx.md). +that is to say it will not necessarily test the implementation of the local runtime repo. +To achieve this, you will need to point your environment to the [`testhost` build](https://github.com/dotnet/runtime/blob/master/docs/coreclr/building/testing-with-corefx.md). Using powershell on windows: ```powershell -# Build corefx from source -PS> .\build.sh -c Release +# Build runtime libraries from source +PS> .\libraries.sh -c Release # Load the testhost sdk in the current environment, must match build configuration -PS> . .\src\System.Net.Http\tests\StressTests\HttpStress\load-corefx-testhost.ps1 -c Release +PS> . .\src\libraries\System.Net.Http\tests\StressTests\HttpStress\load-corefx-testhost.ps1 -c Release # run the stress suite with the new bits -PS> cd .\src\System.Net.Http\tests\StressTests\HttpStress ; dotnet run -c Release --