码迷,mamicode.com
首页 > 其他好文 > 详细

Azure 因为路径太长 打包失败

时间:2015-11-17 23:25:43      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

错误提示

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

解决方案

<?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.7</ProductVersion>
    <ProjectGuid>f3f4151f-2513-46a3-ac97-0eed0e13963a</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>RealNext.Azure.Presentation.Web</RootNamespace>
    <AssemblyName>RealNext.Azure.Presentation.Web</AssemblyName>
    <StartDevelopmentStorage>True</StartDevelopmentStorage>
    <Name>RealNext.Azure.Presentation.Web</Name>
    <PackageEnableRemoteDebugger>False</PackageEnableRemoteDebugger>
    <ServiceOutputDirectory>C:\RealNextWebPackageTemp\</ServiceOutputDirectory>
  </PropertyGroup>

可以在PropertyGroup中添加<ServiceOutputDirectory>标签,用来设置打包的临时目录,从而避免路径太长的问题。

参考:http://govada.blogspot.com/2011/12/windows-azure-package-build-error.html

Azure 因为路径太长 打包失败

标签:

原文地址:http://www.cnblogs.com/wuyicqb/p/4973128.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!