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

前端 未结 3 2396
借酒劲吻你
借酒劲吻你 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 07:01

    I fixed this for problems with the Microsoft.SqlServer.Compact nuget package (which adds a similar post-build script), by adding:

    ..\
    

    right above the . You'll want to adjust the relative path to match your project layout.

提交回复
热议问题