Ensure that corehost works on Nano Server
We had some issues with building dnx on Nano Server. We need to verify that corehost will work fine on Nano Server (which only supports the OneCore APIs).
I think @schellap and @gkhanna79 own this now, right? This is definitely important for RTM since we expect ASP.NET applications to run on Nano Server. @moozzyk may have some insight from our own porting efforts for DNX.
/cc @piotrpMSFT
Yes, @schellap owns it. However, I am not sure if this can make RC2 but can be done for RTM. I will move this to RTM - let me know if anyone feels otherwise.
CC @leecow
@anurse @Rick-Anderson @shirhatti Curious ... Does the .NET 5 on Nano doc also need to stay under-the-covers until RTM? https://github.com/aspnet/Docs/pull/894
My only concern with waiting for RTM is that DNX RC1 ran on Nano Server, so this would be a temporary regression of behavior since an ASP.NET app compiled with dotnet cli would not be guaranteed to run on Nano Server.
@DamianEdwards, @danroth27, @davidfowl and @glennc should probably be aware of that :)
/cc @victorhurdugaci @muratg @Eilon
We have customers running on Nano now so this would indeed be a regression for RC2. What is the hold up?
It's mostly just that we have a new host now (corehost rather than dnx) and we need to to ensure that it runs on Nano server.
This would require building the host against apisets so that it can work on Nano server. And since it will be linked against them, we need to have the right forwarder binaries in place.
The work is to ensure all of this works - especially on downlevel OS. It would have been awesome to see this issue earlier but it came our way just yesterday. We will see what can be done for RC2.
CC @Petermarcu
At the moment ASP.NET requires reverse forwarders to be installed on Nano.
If reverse forwarders are installed, then the host should work (since R-Forwarders are going to resolve Kernel32->API-*). Has someone on ASP.NET or Nano server tried using the host?
Yes ... It's working with the Forwarders package. Which is what we have in the tutorial on this. I can rapidly respond to changes for the doc to match any changes teams make, and I can add a note at the head of the doc saying "works for RC1 only" if RC2 is a concern.
... btw ... my test middleware app is RC2 current packages and runtime ... and it did work just this morning.
... dotnet CLI changes ... no idea on that one ... which I think is what @anurse is referring to here.
Requiring the reverse forwarders is probably just fine, so if we need to do that, that's fine.
@moozzyk, @victorhurdugaci You guys have done nano server work before. Do you still have a VM set up using nano? My VM host doesn't use Hyper-V (because Docker) so I can't easily set one up. We just need someone to try running a dotnet-published app on Nano Server and see if it works :)
When we convert MusicStore it will test Nano server too. We have a Nano CI agent for it
If reverse forwarders (and not APISet forwarders) are always going to be present on Nano server, then please try the test @anurse suggested above. It should just work without requiring any changes to the host. In that case, this issue is a no-op and can be closed (once confirmation comes through).
The requirement of having reverse loaders on Nano for ASP.NET 5 comes from http platform handler and libuv. I could imagine that in the future http plafrom handler will no longer require forwarders. Similarly libuv can be fixed (there are ~20 APIs that are not available in one core - most of which have *Ex counterparts that are present in onecore) - especially if http platform handler is fixed.
Also, not sure how much of a scenario it is but cli apps will likely won't work...
I would say leave this open to fix for post RTM.
Also, not sure how much of a scenario it is but cli apps will likely won't work...
@moozzyk Curious why it will/might break for dotnet cli? ... just because if true, it blocks the release of the ".NET 5 on Nano Server" doc for quite a while.
@moozzyk Nevermind. I'm off that doc now. Someone else is going to handle it.
@GuardRex In general native apps not against onecore.lib don't work without reverse forwarders and reverse forwarders are not installed on Nano by default (as opposed to e.g. win10 Iot Core).
@moozzyk thx