gpt4 book ai didi

azure - 将 umbraco 部署到 Azure

转载 作者:行者123 更新时间:2023-12-03 03:17:03 27 4
gpt4 key购买 nike

在将 Umbraco 6.1.6 部署到 Azure 时,是否有人遇到过类似的问题:我的网络应用程序是使用 nuget 设置的(如果这有什么区别的话)。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (2291): Could not open Source file: Could not find a part of the path 'C:\a\src\MyProject\MyProject\Umbraco\Install\Views\Web.config;\umbraco\Install\Views\Web.config

我还收到警告:

C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets (1696): Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.

最佳答案

这是一个老歌,但它是黄金,因为我在 7.5 中仍然遇到这个问题解决办法:

在项目目录中,如果文件 ProjectName.wpp.targets 不存在,请创建它。确保内容包括:

<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AutoParameterizationWebConfigConnectionStrings>False</AutoParameterizationWebConfigConnectionStrings>
</PropertyGroup>
</Project>

该文件甚至不必包含在项目中。就是这样。

关于azure - 将 umbraco 部署到 Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23363058/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com