You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sort out design time interaction with Startup in ASP.NET Core #4546
Our tooling currently runs code in Startup.cs to get the context from services. This is messy though because our design time environment is not the same as the environment the app really runs in. We need to revisit this.
As part of this we need to try and remove ASP.NET specific dependencies from our general commands package so you don't get references to Microsoft.AspNetCore.Hosting.* etc in a UWP/WinForms/WPF project (see #4830).
See also #5037. In this change, we specifically workaround limitations in UWP and startupinvoker. We will need a different abstraction when/if we stop cross-compiling to UWP. #5045
Recent Hosting templates have changed to loading configuration in Program.Main. EF can't (and shouldn't) call Program.Main at design-time, yet we still need to load configuration to get connection strings.
@ajcvickers, @anpete, @rowanmiller & I discussed this today. We came up with a solution (similar to the one @divega proposed in #2357) that would keep some of the ASP.NET-specific code outside of the main tooling package, but decided that the cost and complexity of implementing it wasn't worth the marginal value it would add.
As part of #5334, we are going to author and structure the packages in a way that reduces the amount of dependencies that get pulled into your project and utilize NuGet & CLI features to prevent the ones we do pull in from getting deployed with your application.
Activity
natemcmaster commentedon Apr 12, 2016
See also #5037. In this change, we specifically workaround limitations in UWP and startupinvoker. We will need a different abstraction when/if we stop cross-compiling to UWP. #5045This workaround was removed in #5142
natemcmaster commentedon Apr 19, 2016
We will likely need to react to this: aspnet/Hosting#714
cc @divega
natemcmaster commentedon May 9, 2016
Related issue: #5304 (comment)
Recent Hosting templates have changed to loading configuration in
Program.Main. EF can't (and shouldn't) callProgram.Mainat design-time, yet we still need to load configuration to get connection strings.bricelam commentedon Jun 1, 2016
@ajcvickers, @anpete, @rowanmiller & I discussed this today. We came up with a solution (similar to the one @divega proposed in #2357) that would keep some of the ASP.NET-specific code outside of the main tooling package, but decided that the cost and complexity of implementing it wasn't worth the marginal value it would add.
As part of #5334, we are going to author and structure the packages in a way that reduces the amount of dependencies that get pulled into your project and utilize NuGet & CLI features to prevent the ones we do pull in from getting deployed with your application.
I'm closing this issue and splitting off the remaining work into #4710, #5616, #5615, #5617 & #5677