【问题标题】:Azure .ccproj is not supported by this version of application此版本的应用程序不支持 Azure .ccproj
【发布时间】:2015-03-17 20:30:31
【问题描述】:

最近开始通过 Visual Studio 2013 Ultimate 开发 azure 云服务,上周一切正常,我可以为我的云服务创建一个 .ccprog 文件。我决定在星期一格式化我的电脑,所以重新安装了 VS2013 和我之前使用的 azure SDK v2.5 oof,但现在当我尝试创建一个新的 azure 云服务项目并选择 WCF 服务 Web 角色时出现错误说“由于此版本的应用程序不支持.ccproj文件,无法创建它。请使用支持此类项目文件的版本。”我认为 VS 不识别 SDK 但不确定,当我选择帮助时 VS 网站说请更新您的 VS 版本但它已经是最新的 VS2013.4,任何帮助都会很棒,谢谢

【问题讨论】:

标签: c# wcf azure visual-studio-2013 azure-cloud-services


【解决方案1】:

您的 csproj 似乎包含旧版 Azure SDK 版本。所以你应该更新它。

这里是一步一步的快速:

1) Unload the project file (Right click on project, click "Unload project")
2) Edit the project file (Right click on unloaded project, click "Edit X.csproj")
3) Change the product version to 2.5
<ProductVersion>2.5</ProductVersion>
4) Change the Azure tools version to 2.5
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)MicrosoftVisualStudiov$(VisualStudioVersion)Windows Azure Tools2.5</CloudExtensionsDir>
5) Save the project file, and reload the project
6) This should activate the conversion wizard which will then make changes to your .csdef file, adding the following schema version attribute:
<ServiceDefinition name="SentinelWebAzure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-05.1.7">
NOTE: If you are getting a build error complaining about the schema version, that is because you dont have the right cloud extension dir setting applied.  See step #4.

来源:http://mvolo.com/visual-studio-build-and-publishing-problems-after-upgrading-to-azure-1-7-sdk/

【讨论】:

  • 感谢您的回复,但我无法卸载项目文件,因为它没有创建一个项目文件,我从它工作时卸载了一个旧的 .ccprog 文件,并且在解决方案资源管理器中显示“未安装应用程序”
猜你喜欢
  • 2016-02-25
  • 1970-01-01
  • 2017-09-10
  • 2018-01-17
  • 2021-09-27
  • 1970-01-01
  • 1970-01-01
  • 2021-07-26
  • 1970-01-01
相关资源
最近更新 更多