【发布时间】:2017-06-08 04:06:05
【问题描述】:
伙计们,
我正在尝试使用以下命令行运行构建,但是每次都会出现提示,这会造成麻烦。我必须手动解决这个问题,并且无法运行自动构建。
$currentScriptPath = (pwd).Path
$solution = "$($currentScriptPath)\foobar_Msi.sln"
$project = "$($currentScriptPath)\foobarSetup\foobarSetup.vdproj"
$BuildLog = "$($currentScriptPath)\buildlog.txt"
$devEnvCom = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.com"
$devEnvExe = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
$PackagePath = "$($currentScriptPath)\ReleasePackage"
.
.
.
& $devEnvCom $solution /project $project /Build release /Out $BuildLog
将 IIS Express 设置应用于服务器 URL 时发生错误 'http://localhost:2943/' 用于项目'Foobar.UI'。你可能不得不 手动编辑 applicationHost.config 文件并进行更改 您的网站正常运行
我清除了文档中的 IISAppsettings,尝试了非交互式命令行参数,更改了构建服务器 applicationHost.Config 文件中的绑定,但没有任何效果。
【问题讨论】:
-
看看这是否与你的问题有关? forums.asp.net/t/…
-
链接打不开
-
对我有用。其中一个要点是更改端口号并尝试。
-
这个问题或许有答案:stackoverflow.com/questions/43748878/…
标签: c# asp.net powershell msbuild