.netcoreaps是否支持使用developmentMode和DEVPATH?
对于 Windows 上的 .net 框架,我通常在 .exe.config 文件中启用它,但当我使用 dotnet 运行应用程序并在 .dll.config 中启用它时,似乎不起作用
最佳答案
.NET Core 支持开发模式和 DEVPATH,但它的用法有点隐藏。它可以通过 coreclr repo 文档中描述的运行时配置旋钮进行设置:
https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/clr-configuration-knobs.md
要设置开发者模式,需要使用developerInstallation
旋钮,它可以通过环境变量进行设置。
When using these configurations from environment variables, the variables need to have the COMPlus_ prefix in their names. e.g. To set DumpJittedMethods to 1, add the environment variable COMPlus_DumpJittedMethods=1
要使其正常工作,请执行以下操作:
设置环境变量
DEVPATH
指向开发程序集的位置。通过设置环境变量启用
developerInstallation
旋钮:
设置 COMPlus_developerInstallation=1
启动运行时并享受 .NET Core 中的 DEVPATH 和开发模式功能。
关于.net - 在 .netcoreapp 中启用开发模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47208552/