Visual Studio 2017 csproj .NET Core build - views not being copied correctly
问题 I have a project running in .NET Core and I am using VS2017 as IDE. When I build my project through Visual Studio 2017 it does not automatically add the Views folder and the wwwroot folder to the output in [projectRoot]/bin/Debug/netcoreapp1.1/win10-x64 ( BuildDir ). This means that if I try to run my website directly from the .exe file created in the bin folder, I get an error with the missing views and wwwroot . If I manually copy these folders to the BuildDir then the views load correctly.