azure - 将 umbraco 部署到 Azure

标签 azure deployment nuget umbraco

在将 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/

相关文章:

azure - Azure 数据工厂中复制事件的异常处理

java - Java 项目中的多个 .properties 文件

django - 在 Django 部署中维护内容类型 pk 完整性

PHP opcache 重置 + 符号链接(symbolic link)式部署

c# - 将框架/NuGet 包的源代码添加到 Visual Studio

python - 如何以安全的方式退出Python Azure Function?

azure - 从开发到生产的自动化合并和发布。持续集成

使用 SignIn 注册用户流程进行注册时,Azure B2C 收到 400 错误请求

c# - 项目设置中缺少 Visual Studio 2017 包选项卡

nuget - 强制更新 TeamCity NuGet 源