我正在使用Visual Studio 2008,
我已经创建了一个C#控制台应用程序作为WCF Web服务的客户端,当我尝试发布客户端时出现以下错误。
Error 105 Unable to copy file "bin\x64\Release\GameBoardWebServerServiceClient.exe.manifest" to "bin\x64\Release\app.publish\Application Files\GameBoardWebServerServiceClient_1_0_0_4\GameBoardWebServerServiceClient.exe.manifest". 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. C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 3554
问题出现在Microsoft.Common.targets文件
中<!-- Copy files to publish folder -->
<Copy
SourceFiles=
"@(_ApplicationManifestFinal);
@(_DeploymentResolvedManifestEntryPoint);
@(_DeploymentManifestFiles);
@(ReferenceComWrappersToCopyLocal);
@(ResolvedIsolatedComModules);
@(_DeploymentLooseManifestFile)"
DestinationFiles=
"@(_ApplicationManifestFinal->'$(_DeploymentApplicationDir)%(TargetPath)');
@(_DeploymentManifestEntryPoint->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
@(_DeploymentManifestFiles->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
@(ReferenceComWrappersToCopyLocal->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
@(ResolvedIsolatedComModules->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
@(_DeploymentLooseManifestFile->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)')"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"/>
<Copy
SourceFiles="@(_DeploymentManifestDependencies)"
DestinationFiles="@(_DeploymentManifestDependencies->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)')"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
Condition="'%(_DeploymentManifestDependencies.DependencyType)'=='Install'"/>
<Copy
SourceFiles="@(_ReferenceScatterPaths)"
DestinationFiles="@(_ReferenceScatterPaths->'$(_DeploymentApplicationDir)%(Filename)%(Extension)$(_DeploymentFileMappingExtension)')"
SkipUnchangedFiles="true"
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"/>`
如何解决这个问题?
有没有办法更改最大尺寸参数或任何此类工作而不必减少文件名