Skip to content

Conversation

@AustinWise
Copy link
Contributor

The current directions for trying out your own build of coreclr are a little outdated. These edits update the directories and files names to match the locations where I was able to find the build output. I did not update the second half of the document.

Update the First Run section for .NET 5.
@AustinWise
Copy link
Contributor Author

I'd like to highlight two issues I encountered while trying this procedure.

A small one first: in a locally-built System.Private.CoreLib.dll, there is no git commit hash embedded. The nightly and preview builds do have the git hash. I don't know if this is intentional. I updated to the sample to remove the reference to the Git commit hash.

Secondly, when following this procedure, I get the following error:

  Determining projects to restore...
C:\test\test.csproj : error NU1102: Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 5.0.0-dev)
C:\test\test.csproj : error NU1102:   - Found 25 version(s) in nuget [ Nearest version: 5.0.0-preview.1.20127.5 ]
C:\test\test.csproj : error NU1102:   - Found 0 version(s) in local CoreCLR
C:\test\test.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 5.0.0-dev)
C:\test\test.csproj : error NU1102:   - Found 28 version(s) in nuget [ Nearest version: 5.0.0-preview.1.20124.5 ]
C:\test\test.csproj : error NU1102:   - Found 0 version(s) in local CoreCLR

I was able to resolve this by editing a file in the SDK. In the Microsoft.NETCoreSdk.BundledVersions.props file, I commented out the KnownFrameworkReferences that mentioned in the error message. If this is not a known issue I should probably file a bug on the SDK. I did not covered this problem in my changes.

Lastly, I was going through this all to try out #40104. It looks great: according to PerfView, there are now zero foreground JIT compilations happening in hello world. The state of .NET single file packaging and AOT is much improved!

@danmoseley
Copy link
Member

@danmoseley
Copy link
Member

I made some updates. The second section of this file ## Update using runtime nuget package is still out of date and may not even be relevant anymore. Same for using-your-build.md.

@danmoseley danmoseley merged commit 82ba676 into dotnet:master Aug 7, 2020
@danmoseley
Copy link
Member

Thanks for the changes.

@danmoseley
Copy link
Member

#40557

@AustinWise AustinWise deleted the patch-1 branch August 8, 2020 00:15
@AustinWise
Copy link
Contributor Author

Thanks for the edits.

Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
* Update using-dotnet-cli.md

Update the First Run section for .NET 5.

* more renames

* typo

Co-authored-by: danmosemsft <[email protected]>
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants