繁体   English   中英

ASP核心网C:\\ Program Files \\ dotnet \\ dotnet.exe

[英]asp core net C:\Program Files\dotnet\dotnet.exe

每次将项目发布到iis后,我都需要在Web配置中将processPath属性从processPath="dotnet.exe"更改为processPath="C:\\Program Files\\dotnet\\dotnet.exe"以启动程序。

我知道我可以将此属性/参数添加到我的项目中,但我不知道如何。 在我的项目中,我没有Web文件配置。 据我了解,配置文件是在发布项目时自动创建的。

只需将dotnet.exe的路径添加到环境变量Path

This PC -> Properties -> Advanced system settings -> Environment Variables... -> System variables -> Path -> Edit -> New -> C:\Program Files\dotnet\dotnet.exe

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM