SolutionDir set to *Undefined* in post-build xcopy event

前端 未结 3 2146
借酒劲吻你
借酒劲吻你 2021-02-20 06:32

I have a project that has a post-build event that xcopies a DLLs to a certain directory:

xcopy \"$(TargetDir)$(TargetName).dll\" \"$(SolutionDir)..\\UdpLocationS         


        
3条回答
  •  逝去的感伤
    2021-02-20 06:52

    Follow these steps:

    • Unload your project file (e.g. *.csproj)
    • Open your project file for editing
    • Find the AfterBuild target
    • Separate out the two invocations of XCopy into two distinct Exec tasks
    • Save your changes and Reload your project file

提交回复
热议问题