From afe95bac41dbd65e623c2cdc8a776a18e6a6e789 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Sat, 11 May 2019 17:14:56 -0700 Subject: Update UsingYourBuild.md (#24389) Change MyGet to the custom feeds. I found that for dotnet new console to restore, I needed an ASP.NET feed as well. --- Documentation/workflow/UsingYourBuild.md | 33 ++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Documentation/workflow/UsingYourBuild.md b/Documentation/workflow/UsingYourBuild.md index 2624e6090b..da301c9151 100644 --- a/Documentation/workflow/UsingYourBuild.md +++ b/Documentation/workflow/UsingYourBuild.md @@ -64,10 +64,23 @@ needed. dotnet publish ``` -**Note:** If publish fails to restore runtime packages you need to configure custom NuGet feed. To do so you have to: +**Note:** If publish fails to restore runtime packages you need to configure custom NuGet feeds. This is because you are using a dogfood .NET Core SDK: its dependencies are not yet on the regular NuGet feed. To do so you have to: 1. run `dotnet new nugetconfig` -2. go to the `NuGet.Config` file and add `` +2. go to the `NuGet.Config` file and replace the content with: + +```xml + + + + + + + + + + +``` After you publish you will find you all the binaries needed to run your application under `bin\Debug\netcoreapp3.0\win-x64\publish\`. @@ -128,6 +141,22 @@ Hello World from Core 4.6.26210.0 @BuiltBy: adsitnik-MININT-O513E3V @SrcCode: ht The location is C:\coreclr\helloWorld\bin\Debug\netcoreapp3.0\win-x64\publish\System.Private.CoreLib.dll ``` +### If it's not using your copied binary + +Make sure you are running the exe directly. If you use `dotnet run` it will overwrite your custom binaries before executing the app: + +``` +.\bin\Debug\netcoreapp3.0\win-x64\publish\HelloWorld.exe +``` + +### If you get a consistency check assertion failure + +Something like this happens if you copied coreclr.dll but not System.Private.Corelib.dll as well. + +``` +Assert failure(PID 13452 [0x0000348c], Thread: 10784 [0x2a20]): Consistency check failed: AV in clr at this callstack: +``` + ## Using DotNetCli to run your .NET Core Application If you don't like the idea of copying files manually you can follow [these instructions](UsingDotNetCli.md) to use dotnet cli to do this for you. -- cgit v1.2.3