开发者

How to copy debug *pdb file using post build event command line in visual studio?

开发者 https://www.devze.com 2023-03-07 03:22 出处:网络
I have a class library开发者_C百科 project seperate from the website. When I build the seperate class library and I move ddl the website bin directory however it doesn\'t move *pdb file.

I have a class library开发者_C百科 project seperate from the website. When I build the seperate class library and I move ddl the website bin directory however it doesn't move *pdb file.

Post-Build event command Line option in the class library

I use

copy /y "$(TargetPath)" "E:\inetpub\Site\bin\"  

to copy dll however it doesn't move the debug *pdb file and I want to move both files. How can I do that? Is it possible with macro builder. If yes, can some one tell me the steps?


Try the following

xcopy /y "$(TargetDir)$(TargetName).pdb" "E:\inetpub\Site\bin\" 

The macros expand as follows

  • $(TargetDir) path to tho output directory for binaries
  • $(TargetName) Name of the primary output minus the extension
0

精彩评论

暂无评论...
验证码 换一张
取 消