我使用VS 2022和.NET Core6创建了一个全新的.NET Core项目。VS将生成基本模板,当我不碰任何代码就运行它时,一切都很好。到目前一切尚好。现在,我添加了Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation版本6.0.0的NuGet依赖项。在Program.cs文件中,我添加了一行
// Add services to the contai
我希望能够在不同的环境(目前仅限于开发和生产)中逐个docker运行dotnet核心,但我的docker总是在生产环境中启动。everything else and buildRUN dotnet publish -o out
FROM microsoft/dotnet:aspnetcore-runtimeENTRYPOINT ["dotnet", "t