我试图使用
Publish Web Site tool发布一个ASP.NET网站项目,但是得到这个错误:
ASPNETCOMPILER(0,0): Error ASPRUNTIME: 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.
我看到它正在尝试将文件复制到AppData中的很长的路径中:
Copying all files to temporary location below for package/publish: C:\Users\imx0\AppData\Local\Temp\1\WebSitePublish\BMW.Web-424993535\obj\Debug\AspnetCompileMerge\Source. c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /BMW.Web -p C:\Users\imx0\AppData\Local\Temp\1\WebSitePublish\BMW.Web-424993535\obj\Debug\AspnetCompileMerge\Source C:\Users\imx0\AppData\Local\Temp\1\WebSitePublish\BMW.Web-424993535\obj\Debug\AspnetCompileMerge\TempBuildDir
我的.pubxml发布配置文件中找不到关于此临时目录的任何内容。如何更改Visual Studio将文件复制到的临时目录?