加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-15 03:47:26 所属栏目:百科 来源:网络整理
导读:在将SDK 2.5迁移到2.7之后,我正试图将我们的webrole发布或打包到Azure中(2.5即使我不确定它是否相关,2.5工作正常). 这是我从“输出”窗口中出现的错误: 3------ Build started: Project: MyProject.Azure,Configuration: Production Any CPU ------4------
在将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)MSBuild12.0binMicrosoft.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:LegacyMainAzureMyProject.FrontWeb.Production.config into objProductionTransformWebConfigtransformedWeb.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.Azurediagnostics.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的重复,因为链接的帖子中的问题的标题已经是一个进步,并且使这个问题和天蓝色诊断配置之间的连接真的没有那么明显,给定的视觉工作室的默认最小输出.

感谢大家

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读