我想部署一個.NET的MVC應用程序通過Github上到Azure,但部署失敗,出現以下錯誤消息。這可能是什麼原因?它在本地工作。Github上 - > Azure的部署:不能找到路徑
WebCompiler: Begin compiling compilerconfig.json
D:\home\site\repository\src\BeYourMarket.Web\Themes\Default\Content\theme.less : WebCompiler error 0: The system cannot find the path specified. [D:\home\site\repository\src\BeYourMarket.Web\BeYourMarket.Web.csproj]
D:\home\site\repository\src\BeYourMarket.Web\Themes\Default\Content\theme.less : WebCompiler error 0: [D:\home\site\repository\src\BeYourMarket.Web\BeYourMarket.Web.csproj]
WebCompiler: Done compiling compilerconfig.json
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\repository\src\BeYourMarket.Web\BeYourMarket.Web.csproj" /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="D:\local\Temp\8d34cc45ff19d01";AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\repository\src\\"
An error has occurred during web site deployment
預先感謝您的任何提示和提示!
由於錯誤是丟失的文件編譯.LESS文件時,我猜你有你的本地計算機上的另一個.LESS或.css文件並不在你的Git倉庫存在。 – Rytmis
我有Github上正確的文件夾的CSS和更少的文件:/src/BeYourMarket.Web/Themes/Default/Content/ 或者,這是不正確的文件夾? – sebvst
我也檢查了天藍色服務器。該文件存在於指定的文件夾中。我不知道爲什麼它說道路找不到。 – sebvst