-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Web api migration #6
Conversation
For RC we will be renaming the ASP.NET 5 Class Library and ASP.NET 5 Console Application templates to something more generic that fits their purpose. We will need to track updating the screen shots accordingly. ASP.NET 5 Class Library will be renamed to Class Library (Package). |
Also, the ASP.NET dialog is getting some cleanup. The template names will just be Empty, Website and Web API. |
@@ -0,0 +1,145 @@ | |||
Migrating From ASP.NET Web API 2 to ASP.NET 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From ASP.NET Web API 2 to MVC 6
There are a bunch of subtle changes to attribute routing in MVC 6 that need to be addressed somewhere. @rynowak is probably the best person to detail the main differences |
There are a number of topics related to migrating Web API 2 code that are not addressed by this article:
|
@@ -25,6 +25,15 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |||
app.UseStaticFiles(); | |||
// Add MVC to the request pipeline. | |||
app.UseMvc(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned previously, we recommend using attribute routing instead of trying to make things work with global routes.
It would be interesting to discuss this with you more and get your thoughts on this guidance.
Web api migration article, initial publication
Gatsby ascii doc
A simple article on migrating a Web API 2 project to ASP.NET 5. Includes new /samples/ folder in aspnet/docs root.