如何在Visual Studio中使用构建后事件命令行复制debug * pdb文件? [英] How to copy debug *pdb file using post build event command line in visual studio?

查看:87
本文介绍了如何在Visual Studio中使用构建后事件命令行复制debug * pdb文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与网站分开的班级图书馆项目.当我建立单独的类库并移动ddl时,将其移动到bin目录中,但是它不会移动* pdb文件.

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.

类库中的构建后事件命令行选项

Post-Build event command Line option in the class library

我使用

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

要复制dll,但是它不会移动debug * pdb文件,我想移动两个文件.我怎样才能做到这一点?宏生成器有可能吗?如果是,有人可以告诉我这些步骤吗?

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?

推荐答案

尝试以下操作

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

宏如下扩展

  • $(TargetDir)二进制输出目录的路径
  • $(TargetName)主要输出的名称减去扩展名
  • $(TargetDir) path to tho output directory for binaries
  • $(TargetName) Name of the primary output minus the extension

这篇关于如何在Visual Studio中使用构建后事件命令行复制debug * pdb文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆