Post-build event copy not working

谁说我不能喝 提交于 2020-01-15 09:14:11

问题


I have a post-build event to copy a .dll from one project to another on successful build using the following command:

copy $(TargetPath) ....\MainProject\bin

This works fine on my local machine, but it appears to be failing on the build server because when building the MainProject I receive the following:

warning MSB3245: Could not resolve this reference. Could not locate the assembly "Project2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

Has anyone experienced similar issues with the copy command in a post-build event?


回答1:


That warning isn't from the Copy task, it is from the build of a project. Crank up the diagnostic level and log to a file (/fl /flp:v=diag;logfile=diag.txt) to see where the warning is actually coming from.



来源:https://stackoverflow.com/questions/7123618/post-build-event-copy-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!