我收到“'Microsoft.Cct.CctProjectNode'的类型初始值设定项引发了异常."安装Azure SDK 2.9后打开ccproj文件时 [英] I get "The type initializer for 'Microsoft.Cct.CctProjectNode' threw an exception." when opening ccproj files after installing Azure SDK 2.9

查看:35
本文介绍了我收到“'Microsoft.Cct.CctProjectNode'的类型初始值设定项引发了异常."安装Azure SDK 2.9后打开ccproj文件时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有Azure云项目的解决方案,该解决方案的目标是2.7版本的Microsoft Azure SDK,我可以毫无问题地打开/构建和部署该解决方案.由于Visual Studio妨碍我进行更新,因此我继续安装了新的Azure SDK 2.9版.更新之后,我无法打开云项目文件,而Visual Studio(2015年社区版,在我撰写本文时已完全更新为最新)会显示以下错误消息:

I have a solution with an Azure cloud project in it that's targeting the 2.7 version of the Microsoft Azure SDK which I could open/build and deploy without problems. Since Visual Studio was nagging me to update, I went ahead and installed the new Azure SDK version of 2.9. After that update, I cannot open the cloud project files, and Visual Studio (2015 Community edition, now fully updated to the latest as of the time I'm writing this) gives me this error message:

MyTest.ccproj:错误:"Microsoft.Cct.CctProjectNode"的类型初始值设定项引发了异常.

MyTest.ccproj : error : The type initializer for 'Microsoft.Cct.CctProjectNode' threw an exception.

如果我手动编辑ccproj文件并更改

I am able to open the project if I manually edit the ccproj file and change the

<ProductVersion>2.7</ProductVersion>

值为2.9.但是,我不能使用它,因为其他人正在从事此项目,并且他们仍然希望保留在Azure SDK 2.7版本中,该版本目前也已部署到生产中.

value to 2.9. However, I can not use that, since other people are working on this project and they still want to remain on the 2.7 version of the Azure SDK, which is also currently deployed to production.

是否有一种方法可以允许Visual Studio打开旧版本的云项目?我必须卸载Azure SDK更新吗?

Is there a way to allow Visual Studio to open older versions of cloud projects? Do I have to uninstall the Azure SDK updates?

谢谢大家!

推荐答案

对于2.9.5和更低版本的SxS兼容性存在问题.这是最近才发现的,我们正在寻找下一个版本的修复程序,但是在此之前,您将必须卸载2.9.

There is an issue with the SxS compatibility for 2.9.5 and previous versions. This is very recently discovered and we are looking into a fix for the next version, but until then you will have to uninstall 2.9.

  1. 卸载用于Microsoft Visual Studio的Microsoft Azure工具2015 –添加/删除程序中的v2.9"
  2. 运行 msiexec/x {60473BF2-359B-43B3-AF6C-12BAC6C5BC3F} .(对于VS 2013,请使用 {438EED24-F35B-44E0-A2E2-675838273002} )这应该调出msi对话框以卸载用于Microsoft Visual的Microsoft Azure工具Studio 2015 Core"
  3. 在添加/删除程序中,修复用于Microsoft Visual Studio 2015的Microsoft Azure工具– v2.7(对于使用该版本的用户,则为v2.8).
  1. Uninstall the "Microsoft Azure tools for Microsoft Visual Studio 2015 – v2.9" from add/remove programs
  2. Run msiexec /x {60473BF2-359B-43B3-AF6C-12BAC6C5BC3F}. (For VS 2013, use {438EED24-F35B-44E0-A2E2-675838273002}) This should bring up the msi dialog to uninstall "Microsoft Azure Tools for Microsoft Visual Studio 2015 Core"
  3. In add/remove programs, repair Microsoft Azure Tools for Microsoft Visual Studio 2015 – v2.7 (or v2.8 for people using that version).

更新答案.#2最常见的GUID是:

Updating answer. The most common GUIDs for #2 are :

  • {60473BF2-359B-43B3-AF6C-12BAC6C5BC3F}
  • {438EED24-F35B-44E0-A2E2-675838273002}

如果出现错误此操作仅对当前安装的产品有效".尝试使用 {8664E001-704C-4EFB-B68D-6A3DEF60BBEE} .

If you get an error "This action is only valid for products that are currently installed." try using {8664E001-704C-4EFB-B68D-6A3DEF60BBEE}.

与此相关的MSFT支持论坛为

The MSFT Support forum on this is here

连接票证为 查看全文

相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆