Azure 因为路径太长 打包失败

错误提示

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

转载于:https://www.cnblogs.com/wuyicqb/p/4973128.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值