Visual Studio adds .dll and .pdb to project after compiling

后端 未结 2 954
情歌与酒
情歌与酒 2021-01-27 18:13

In my Visual Studio 2008 web vbproj, I have included only certain files in the bin folder. I am using browserhawk and it needs to have some browser definition files (maindefs.b

相关标签:
2条回答
  • 2021-01-27 18:46

    You won't be able to if your bin folder is included in your project. Instead, you can put your browser definition files in your project under a separate folder, or just under the project, and change the Build Action to Content (or None) and Copy to Output Directory to Copy Always (or Copy if Newer) in the properties for each file you want to go to your bin folder. That way the files are part of the project and get added to the bin folder automatically.

    0 讨论(0)
  • 2021-01-27 18:48

    Use a Post Build Event to copy the files. Be sure the browser hawk files build action is set to "do not copy". Then goto your project properties, select the "Build Events" tab and add the following to the Post-build event command line:

    copy "$(ProjectDir)\common\browserhawk*.*" "$(TargetDir)"

    Be sure to include the quotes if your project path has spaces in it.

    0 讨论(0)
提交回复
热议问题