【发布时间】:2015-01-07 01:17:23
【问题描述】:
当我从 bitbucket 部署我的存储库时,我收到以下错误,
Handling .NET Web Application deployment.
The system cannot find the file specified.
Failed exitCode=1, command=nuget restore "D:\home\site\repository\MySolution.sln"
An error has occurred during web site deployment.
我在 repo 的根目录上有一个 .deployment 文件,其中包含以下内容
[config]
command = deploy.cmd
我在根目录下也有一个 deploy.cmd 文件,由于某种原因会在下一行失败
echo Handling .NET Web Application deployment.
:: 1. Restore NuGet packages
IF /I "MySolution.sln" NEQ "" (
call :ExecuteCmd nuget restore "%DEPLOYMENT_SOURCE%\MySolution.sln"
IF !ERRORLEVEL! NEQ 0 goto error
)
为什么 Azure 找不到我的解决方案文件?即使使用 FTP,我也可以在存储库的根目录中看到解决方案文件...
【问题讨论】: