-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
There are many enjoyable things about developing an ASP.NET Core application, this includes, but is not limited to:
- SPA support
- ease of testing
- separation of concerns
- middleware configuration
- dependency inversion/injection
- tooling
It feels like modern web app development.
I am creating a web application that will include an Angular SPA and Web API. Unfortunately, my organization will not allow ASP.NET Core deployments for the foreseeable future; all software must run against the .NET Framework runtime.
What can I do now to satisfy the organizational requirement of the .NET Framework runtime, while still having a great development experience and using the first-class constructs of ASP.NET Core?
Through some research, I came across two items that might help:
- the Microsoft.AspNetCore.App and Microsoft.AspNetCore.All metapackages actually encapsulate netstandard packages such as Microsoft.AspNetCore.
- The csproj can be edited to target net471
Here is what I am considering.
- In the csproj, replace the netcore target with net471
- Remove the dependency upon Microsoft.AspNetCore.App
- Add dependencies to the netstandard versions of the packages needed such as Microsoft.AspNetCore
- Host in IIS with an Application Pool configured with a .NET CLR Version belonging to .NET Framework instead of
No Managed Code
Do you see any issues or have any concerns? Even if this is possible, is this something I should do?
Here are some questions I had, please answer if you can.
- Will the app execute in the .NET Framework runtime?
- Will this require the .NET Hosting Bundle?
- Will it require .NET Core to be installed on the IIS server?
- As a deployed app, will there be anything ".NET Core" about it?