Visual Studio2015
场景:在Visual Studio 2015--Solution Explorer. Build,build成功,publish失败。
console log
Severity CodeDescription ProjectFile LineSuppression State
Error Copying file 10003\207\updates\test.exe to obj\Release\AspnetCompileMerge\Source\10003\207\updates\test.exe failed. Could not find file '10003\207\updates\test.exe'.
提示test.exe 在copy file的时候找不到,但是这个文件在Solution Explorer中可见,publish的时候找不到。、
解决方案。
1. 选中这个文件右击,选择properties选项。
这个文件的默认选项是Do not copy, 改成Copy always或者Copy if newer.
问题解决!!