1
我想在Visual Studio Team Services上構建我的軟件。我最近從VS 2013升級到VS 2015.我從Azure 2.6升級到Azure 2.9 SDK。當軟件構建時,出現此錯誤:Visual Studio Build - Azure 2.9 SDK
C:\ a \ src \ CCC \ Azure \ CloudService1 \ CloudService1.ccproj(95,0) 導入的項目「C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ Windows Azure Tools \ 2.9 \ Microsoft.WindowsAzure.targets「未找到。確認聲明中的路徑是正確的,並且該文件存在於磁盤上。
目前不支持2.9嗎?這裏是我的ccproj文件:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>2.9</ProductVersion>
<ProjectGuid>XX</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CloudService1</RootNamespace>
<AssemblyName>CloudService1</AssemblyName>
<StartDevelopmentStorage>True</StartDevelopmentStorage>
<Name>CloudService1</Name>
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
<UseEmulatorExpressByDefault>False</UseEmulatorExpressByDefault>
</PropertyGroup>
<!-- Import the target files for this project template -->
<PropertyGroup>
<VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
<CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.9\</CloudExtensionsDir>
</PropertyGroup>
<Import Project="$(CloudExtensionsDir)Microsoft.WindowsAzure.targets" />
您的意思是visual Studio 2015? – Aravind
是的,對不起!我的研究表明,Azure應該在託管構建機器上安裝2.9 SDK。我不確定爲什麼這個文件丟失。 –
在修改構建配置文件的可能修復方面,已經有一個問題了。但這是爲本地開發者。不知道如何在Visual Studio在線複製這個。如果你使用自己的構建服務器,你可以在那裏嘗試。 http://stackoverflow.com/questions/37635735/msbuild-msb4096-error-with-azure-sdk-2-9-1 – Aravind