Reputation: 38109
I have a website that was written with .net 4.5.2. and MVC 5.
I want to keep it at that framework version, as the 3rd party libraries it uses have not yet been updated to use .net 5.
However, I like the new project structure. Is it possible to convert the existing project over to the new project structure, or to create a project from scratch and add the older .net framework to it?
Upvotes: 1
Views: 91
Reputation: 38109
I found a way to do this:
Create a new empty project with the new structure.
Edit the "frameworks" section of project.json:
"frameworks": { "net452": { } }
Use Nuget to add MVC and the other libraries. (Not the Add reference Dialog as with the old project style.)
Upvotes: 1