【问题标题】:Azure deployment failing cannot find solution file?Azure 部署失败找不到解决方案文件?
【发布时间】: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,我也可以在存储库的根目录中看到解决方案文件...

【问题讨论】:

    标签: azure msbuild


    【解决方案1】:

    原来是因为我在我的 NuGet.config 中为我的私人 nuget 服务器使用了加密密码,我切换到纯文本并且它有效!

    【讨论】:

    • 你是怎么得出这个结论的?您采取了哪些步骤来调试调试部署?我也有类似情况
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-11
    • 2017-10-22
    • 2015-05-15
    • 2016-05-17
    • 2020-02-02
    • 1970-01-01
    • 2018-05-27
    相关资源
    最近更新 更多