VS2008自定义调试配置? - 有可能? [英] VS2008 Custom debug configurations? - possible?

查看:65
本文介绍了VS2008自定义调试配置? - 有可能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试一个COM dll插件,该插件在10个不同的主机应用程序版本的主机应用程序中运行。



每次我想在一个运行我的DLL特定版本的主机应用程序,我必须进入项目的属性,并将调试部分中的COMMAND字段更改为正确的路径和应用程序exe名称,该名称因应用程序版本而异。



我一直以这种方式生活,但是如果我能选择一个名为VerX Debug的自定义调试配置,其配置与常规调试相同,我认为会很酷。但是已经更改了COMMAND行以启动正确版本的托管应用程序,并且拥有大量的em。



如果我进行新的配置,VS想要''为ARM PC或Mobile制作一个。所以我在那里咆哮着错误的树。



远程可能吗?



谢谢。



:Ron

I am debugging a COM dll plugin that runs in a host application of 10 different possible host application versions.

Each time I want to run my DLL in a particular version of the host application, I have to go into the properties of the project, and change the COMMAND field in the debugging section to the correct path and application exe name which varies from application version to version.

I have been living this way for a long time but thought it would be so cool if I could just choose a custom debug config that is named VerX Debug, whose config is that same as regular debug, but has the COMMAND line changed to start the correct version of the hosting app, and have a lot of em.

If I do a new config, VS want''s to make one for an ARM pc or Mobile. So I''m barking up the wrong tree there.

Is this remotely possible?

Thanks.

:Ron

推荐答案

在Build菜单下,选择Configuration Manager。在弹出的对话框中,单击Active solution configuration下拉列表,然后选择< new ...>。从那里,您可以设置新配置。然后,在关闭配置管理器之后,您应该能够在项目属性的调试选项卡上选择该配置,并根据需要设置命令文本。
Under the Build menu, select Configuration Manager. In the dialog that pops up, click on the "Active solution configuration" dropdown and select "<new...>". From there, you can set up the new configuration. Then, after closing the configuration manager you should be able to select that configuration on the Debug tab of your project''s properties and set the command text as you wish.


是,这是很有可能。配置只不过是MSBuild项目的名称,它将整个构建选项组合在一起。您可以添加自己的配置,并为每个配置定义整套选项,预定义或您自己的配置。请注意,预定义配置与您自己的配置没有区别。它们实际上并不存在于项目文件标准中,可能存在也可能不存在。在Visual Studio中,它们仅显示在从模板创建项目时使用的模板中。如果您愿意,可以跳过使用模板,或者您可以从模板开始并在创建后从项目中删除几乎所有模板。



看看你是什么可以做,学会使用Visual Studio配置管理器(请在菜单中找到它)。此外,了解如何组织和使用MSBuild项目是很好的: http://msdn.microsoft.com/en-us/library/ms171452%28v=vs.90%29.aspx [ ^ ]。



请注意,在Visual Studio中,您可以设置任何可用的配置,还可以设置在MSBuild和Visual StudioPlatform中调用的CPU体系结构。这两个参数传递给构建为属性(您可以在上面引用的参考中找到),它们被称为
Yes, this is quite possible. Configuration is nothing but a name for the MSBuild project grouping together the whole set of build options. You can add your own configurations and define the whole set of options for each configurations, predefined or your own. Note that predefined configurations are no different from your own. They do not actually present in the project file standard and may or may not be present. In Visual Studio, they merely appear from the template you used when you create a project from template. You can skip using a template, if you wish, or you can start from the template and remove nearly all from your project after you create it.

To see what you can do, learn to use Visual Studio Configuration Manager (please find it in the menus). Also, it''s good to understand how MSBuild projects are organized and used: http://msdn.microsoft.com/en-us/library/ms171452%28v=vs.90%29.aspx[^].

Note that inside Visual Studio, you can set any of the available configurations, but also a CPU architecture called in MSBuild and Visual Studio "Platform". These two parameters are passed to build as properties (you can find then in the reference I referenced above), they are referred as


(配置)
(Configuration) and


这篇关于VS2008自定义调试配置? - 有可能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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