-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include hostcommon sources in hostfxr static library #75858
Conversation
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsThe hostfxr static library can't be used without this.
|
I don't know if there's anything that can be done with the build process, but it was harder than I would like to build this change. All I wanted was to build the Microsoft.NETCore.DotNetAppHost packages so I tried to run
I ended up copying a dummy singlefilehost.exe into the right place and disabling the PrepareSingleFileHostWithEmbeddedDac target because I didn't want to build anything else. |
Do we need to rethink the package structure? |
@jkotas That is not what I see. I added libhostfxr.lib to the package in .NET 6 and I don't see that file in the path you provided for .NET 6.0.8 or .NET 7 RC1. Sometime later, the code was refactored and parts of hostfxr were moved into the hostcommon static lib. This is just adding the missing code. I would be fine with a custom host package, but it seems like changing the distribution of these assets seems to be low priority for everyone. |
Ok, I got confused by the two very similar packages with overlapping content: @vitek-karas For my education: Why do have so much stuff in the package that is bundled into the SDK - how are we deciding what should go into each of these two package? |
BTW: A solution that was implemented in #72896 for similar problem was to ship the relevant C/C++ sources in the nuget package. I expect we will prefer shipping C/C++ sources for these situations going forward. It avoids the problems with fragility of C/C++ .libs and compiler settings. |
6c86728
to
d212e5d
Compare
runtime (Build Build OSX x64 release NativeAOT) failure
This is #74328? runtime (Build mono llvmfullaot Pri0 Runtime Tests Run Linux x64 release) failure
I don't think this was caused by my change. If it were, I would expect the arm64 build to have failed as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@vitek-karas @elinor-fung Any additional feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @rseanhall!
I think this is #72114. |
The hostfxr static library can't be used without this.