我正在尝试在Visual Studio Team Services上构建我的软件。我最近从VS 2013升级到VS 2015.我从Azure 2.6升级到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" />
答案 0 :(得分:0)
我发现XAML构建定义已被弃用,因此您无法发布任何高于Azure SDK 2.8的构建版本。您必须升级到托管构建: