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

前端 未结 1 924
予麋鹿
予麋鹿 2021-02-05 18:15

I have a class library 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.

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 18:34

    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 讨论(0)
提交回复
热议问题