错误提示
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
时间: 2024-11-06 13:48:18