I'm having a problem deploying an ASP.NET Core web app to a remote IIS server using Visual Studio 2017. Everything compiles and runs fine on my local machine but when I want to publish using VS, I keep getting error messages saying its unable to copy some files since the path length is too long.
I found a similar posting from 2015 but the selected answer there does not seem to work for me in VS2017.
I am able to publish manually via the CLI command:
dotnet publish -f netcoreapp2.2 -r win10-x64 --self-contained false -o c:\temp\publish
and then manually copy the output from the C:\temp\publish
directory to the remote IIS server, but this seems unnecessarily long-winded given that Visual Studio 2017 has a publishing feature.
Does anyone know what settings need to be changed to get VS2017 to use a shorter path for its intermediate files instead of deepening the directory tree of my project directory?