Migration from ASP.NET Core 2.2 to 3.0, #139
Open
UseMuse wants to merge 1 commit intoTrilonIO:masterfrom
Open
Conversation
… asp core 3.0 with hot reload by Westwind.AspnetCore.LiveReload
Member
|
Hey @UseMuse ! Just seeing this now, did you have any other issues with this upgrade? |
Author
//the design is obsolete
// Webpack initialization with hot-reload.
app.UseWebpackDevMiddleware (new WebpackDevMiddlewareOptions
{
HotModuleReplacement = true,
});suggest using I just marked the Configure method as Obsolete design app.UseMvc (routes =>
{
routes.MapRoute (
name: "default",
template: "{controller = Home} / {action = Index} / {id?}");
routes.MapSpaFallbackRoute (
name: "spa-fallback",
defaults: new {controller = "Home", action = "Index"});
});gives a warning: Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing. To continue using 'UseMvc', please set 'MvcOptions.EnableEndpointRouting = false' inside 'ConfigureServices'. In the ConfigureServices Method services.AddMvc ()
.SetCompatibilityVersion (CompatibilityVersion.Version_2_2);on this // Add framework services.
services.AddMvc (opt => opt.EnableEndpointRouting = false)
.SetCompatibilityVersion (CompatibilityVersion.Version_3_0);
//with explicit opt => opt.EnableEndpointRouting = falsealso a discussion on my proposed update can be seen here: |
Author
|
@Laranjeiras did you start with my fork? what mistake do you have? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adaptation of the project for asp core 3.0 with hot reload by Westwind.AspnetCore.LiveReload,because hot reload from asp core 2.2 stopped working