-
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
The new nethost static library is not published in the daily builds #1154
Comments
The switch-to-dotnet/runtime is still in progress for daily SDK builds: dotnet/installer#5924, which include runtime bits. Currently it is pointing to Nov 14 revision: dotnet/core-setup@c77948d.
CDN_URL="https://dotnetcli.azureedge.net/dotnet/Runtime/master/dotnet-nethost-latest-linux-x64.tar.gz"
curl -sSL $CDN_URL | tar xvz | strings libnethost.so | grep "@(#)"
@(#)Version 5.0.19.56401 @Commit: c77948d92a2f950140f09384f057cb893ec3955a |
Thank you @am11. |
I looks like I've prematurely closed this.
Is this a CDN issue? |
I think just a broken pipe, this should work: curl -sSL $CDN_URL | tar xvz && strings libnethost.so | grep "@(#)" |
You're right but where is
|
Daily builds hasn't been published to blob storage in a while (latest build is from Nov 14 commit), and
Yes, if we build the product locally, we can find libnethost.a in tar.gz. git clone https://github.com/dotnet/runtime dotnet-runtime
cd dotnet-runtime
./build.sh -c release
./build.sh --subset PkgProj /p:Configuration=Release
tar xvzf ./artifacts/packages/Release/Shipping/dotnet-nethost-5.0.0-dev.19627.1-linux-x64.tar.gz
strings libnethost.a | grep "@(#)" @dagood, could you share some insights when can we expect daily runtime builds from new repo? |
We have official builds since Dec 21, check out #98 for the latest status. |
cc @elinor-fung |
@dagood, ah thanks! So currently it is under a different subdomain:
@Brar, this one contains static library: Is it because we are waiting for dotnet/toolset and dotnet/core-sdk update to get unblocked #98 (comment), before it will appear under |
It looks like the location was broken with that build number, the file is intended to be available on dotnetcli same as always--here's a link from a newer build: |
Could the version-less |
@am11 unfortunately no, the infra that was doing that is very brittle vs. Arcade breaking changes, so we decided to wait for dotnet/arcade#3963 instead of bringing the old infra online in the new dotnet/runtime repo. |
This is now being published, but the Suggestions are welcome - sorry for hijacking this issue, but it is technically no longer fully published in a consumable way. |
Thanks @AaronRobinsonMSFT for bringing this up. @swaroop-sridhar @VSadov can you please look into that - it's kind of related to the host build system (single-file and all)? |
@vitek-karas @swaroop-sridhar @VSadov It might be easiest to revert #2123. I can do that if it would help. |
@vitek-karas @swaroop-sridhar @VSadov If you all concur with @jkotas and it doesn't impact your other single file work, I will do that revert. |
le sigh... Reverting this change is going to be basically impossible. Too many things have built on top of it. I will revert the conceptual change rather the actual commit. |
Thanks @AaronRobinsonMSFT This may make some components smaller. For example, libhostcommon has things like info.cpp and header.cpp, which hostfxr and hostpolicy need, but nethost, comhost etc don't need. |
My current iteration of single file work no longer moves files under corehost. |
@VSadov I am trying to leave files where they are. However, the CMake files for corehost need a lot of attention. They are in an unacceptable state and make reasoning about this so much harder than they should be for such a simple set of build requirements like corehost. |
Most of the single-file changes are in CMake projects. The change is mostly about hostfxr and policy though, so depending what changes it might not be that hard to merge on top. |
@AaronRobinsonMSFT As far as I can tell, this issue is currently adding tracking a test to make sure that the nethost is buildable as a static library? |
@agocke Yes that is true. It is now published and used, but a test would be prudent. |
I'd say that a static nethost would be the most convenient way to actually use it (for outside projects) if it eventually gets published in a reliable way. Just my 2ct. |
Improves wallclock time for compilation of a Hello World by ~3%. Looking up things by name is not exactly cheap and we do it a lot here.
I'm trying to use the new nethost static library that was introduced via #296.
Since I have yet to figure out how to use NuGet packages like
Microsoft.NETCore.DotNetAppHost
(orMicrosoft.NETCore.App.Host.[win-x64|linux-x64]
) from native C builds I tried to download the daily releases (https://dotnetcli.blob.core.windows.net/dotnet/Runtime/master/dotnet-nethost-latest-win-x64.zip or https://dotnetcli.blob.core.windows.net/dotnet/Runtime/master/dotnet-nethost-latest-linux-x64.tar.gz) where I found out that the static libraries don't get published.Is this an intentional decision or an oversight?
If it is an intentional decision, this might be a documentation issue.
How am I supposed to consume the NuGet packages and are there daily builds of them?
I've already read https://docs.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting and https://github.com/dotnet/runtime/blob/master/docs/design/features/native-hosting.md and also tried https://github.com/dotnet/samples/tree/master/core/hosting/HostWithHostFxr but all of them don't show an elegant or recommended way of using them.
The samples actually show a way which is described as "relatively complicated" and recommend CMake for native builds which, to my knowledge, can't consume NuGet packages.
The text was updated successfully, but these errors were encountered: