【发布时间】:2018-06-09 21:03:34
【问题描述】:
昨天我更新到net core 2.1。
现在,如果我正在调试,视图会被预编译,这在启动过程中当然需要很长时间......如果需要的话,是否有可能退回到以前的行为,即及时编译视图?
我的 csproj 中没有与预编译相关的参考资料。它是来自元包的东西吗?
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="11.1.0" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.0" PrivateAssets="All" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="2.5.0" />
<!--<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.ViewCompilation" Version="2.0.0" PrivateAssets="All" />-->
</ItemGroup>
【问题讨论】:
-
您好,我想知道您是否知道编译后的视图存储在哪里?提前致谢。
-
它们只是包含在
Views.dll中的普通类。您可以使用 dotPeek @Örvar 等工具显示 dll 中的内容
标签: c# asp.net-core asp.net-core-mvc asp.net-core-2.1 .net-5