I'd like to have a Microsoft.Net.Sdk project that launch a web server using asp.net core. It is a normal dll project, not a Web project. The csproj header is the following:
<Project Sdk="Microsoft.NET.Sdk">
And in order to make it work I added (see docs):
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
The web server is launched correctly but the Views don't work, I always have the View Not Found exception. The views are in the right places and are Content file.
If I change from <Project Sdk="Microsoft.NET.Sdk"> to <Project Sdk="Microsoft.NET.Sdk.Web"> everything works fine.
I think I have to add some packages or FrameworkReference to my csproj but I couldn't find anything. Any ideas?