How do I fix MSB3073 error in my post-build event?

后端 未结 14 2568
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 04:48

I\'m working on a project that requires that DLLs generated by building my solution to be copied from the bin folder to another folder, both of which are on my machine, in m

14条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 05:16

    This is too late but posting my experience for people looking at it later:-

    In MS VS 2010 I had the same issue. It got resolved by putting quotes to post build copy command args which contained spaces!

    In Project Properties --> Configuration Properties --> Build Events --> Post-Build Event --> Command Line change:

    copy $(ProjectDir)a\b\c $(OutputPath)

    to

    copy "$(ProjectDir)a\b\c" "$(OutputPath)"

提交回复
热议问题