I wanted to publish my project with "PreCompile During Publish" option checked but I get this error:
Copying file VERYLONGDIRECTORY\P.aspx to obj\Release\AspnetCompileMerge\Source\VERYLONGDIRECTORY\P.aspx failed. Could not find a part of the path 'obj\Release\AspnetCompileMerge\Source\VERYLONGDIRECTORY\P.aspx'.
I deleted the file from the project and the publish succeeded. Then, re-added the ASPX file to the project and the error is popping up again. I excluded it from the project and it works. I need the ASPX file to be in my project, this is a bit weird...
What should I do?