c# – Azure发布或软件包失败,没有错误

前端之家收集整理的这篇文章主要介绍了c# – Azure发布或软件包失败,没有错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在将SDK 2.5迁移到2.7之后,我正试图将我们的webrole发布或打包到Azure中(2.5即使我不确定它是否相关,2.5工作正常).
这是我从“输出”窗口中出现的错误
3>------ Build started: Project: MyProject.Azure,Configuration: Production Any cpu ------
4>------ Publish started: Project: MyProject.Azure,Configuration: Production Any cpu ------
4>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1697,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "msshrtmi,Version=2.5.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=AMD64","AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references,or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
4>      Transformed Web.config using E:\Legacy\Main\Azure\MyProject.Front\Web.Production.config into obj\Production\TransformWebConfig\transformed\Web.config.
4>Done building project "MyProject.Azure.ccproj" -- Failed.
4>
4>Build Failed.
========== Build: 3 succeeded,0 Failed,25 up-to-date,0 skipped ==========
========== Publish: 0 succeeded,1 Failed,0 skipped ==========

我已经搜索了一个厕所,并提出了这个链接http://blogs.msdn.com/b/narahari/archive/2012/03/30/windows-azure-package-creation-or-publish-fails-with-build-failed-message-in-visual-studio-output-window.aspx
在那里他们声明这可能是由于OutOfMemoryException,而修复是在高端x64系统上构建的.我正在建立一个核心的i7 16gig的ram非常好的电脑,所以我不认为它来自于此.我还安装了Windows 7修补程序,修复了来自largeaddressaware开关的模拟器问题,以防万一,但它没有帮助.
谢谢

解决方法

好的,我设法解决问题,这里是怎么回事.
实际上,与诊断配置相关的问题是完全不明显的.
我做的是增加MSBuild输出的详细程度:
Tools > Options > Projects and Solutions > Build and Run > MSBuild project build output verbosity : Diagnostic

揭露了这一点:

Failed to produce diagnostics extension's config for MyProject.Azure\diagnostics.wadcfgx. 
Error : Value cannot be null. Parameter name: input

然后,修复是添加

<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString"/>

在您的ServiceDefinition.csdef和您的csfgs文件中正确的实现.
之后,它们都构建,打包和发布.

现在,我不知道这个问题是否是Azure SDK v2.7 diagnostics issue is preventing publish/package的重复,因为链接的帖子中的问题的标题已经是一个进步,并且使这个问题和天蓝色诊断配置之间的连接真的没有那么明显,给定的视觉工作室的默认最小输出.

感谢大家

原文链接:https://www.f2er.com/csharp/93716.html

猜你在找的C#相关文章