-
Notifications
You must be signed in to change notification settings - Fork 107
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
Application name defaults to "Saturn" majorly breaking framework expectations on this #69
Comments
Grrr this won't work as it'll be compiled to a standard optimized closure, aka AssemblyName = FSharp.Core.
Only like this will an actual type be generated inside your own app to get a good read of.
Any clever ideas? @Krzysztof-Cieslak |
A possible workaround here would be for Saturn to add a The actual configuration change would be
|
Relevant, it may get more clear in 3.0 dotnet/aspnetcore#7315 |
I'm confused why dotnet/aspnetcore#14183 was closed as "no work to do" - can anyone shed light on that decision? This is the closest issue I can find. I spent some time digging through the code in this repo trying to figure out why my ASPNETCORE 3.x app was not respecting the I'm curious why it does not simply respect the I'm using a Generic Host and then calling It appears to place the Generic Host guidance for setting Eventually I'm hoping that the responsibility of overriding the |
Apologies, I didn't even realize which repo this issue is in, after clicking through so many issues I think I got lost. ;-) will ask in the aspnet repos. |
I'm not even sure if the bug is still there, but anyway, we can't do anything about it here - it's underlying ASP problem. So I'm closing this issue. |
Things like IHostingStartup auto discovery and IStartup discovery fail, also distributed cache and quite a few other things expect this to be unique/equal to your startup assembly name. This stuff is for instance used by ApplicationInsights auto wireup.
The ApplicationName comes from the assembly that hosts the Configure delegate passed into
builder.Configure
as can be seen here https://github.com/aspnet/Hosting/blob/ae9da9290eb825f4145aaaa23603186d51211e53/src/Microsoft.AspNetCore.Hosting/WebHostBuilderExtensions.cs#L30Temp fixes are:
HostingEnvironment
UseSetting(WebHostDefaults.ApplicationKey, "NewName")
before running buildPR fix would be to use the same reflection strategy
WebHostBuilderExtensions
uses on the router and override the setting before returning the builder.The text was updated successfully, but these errors were encountered: