如何自动将现有项目添加到Visual Studio项目? [英] How can I automatically add existing items to a Visual Studio project?

查看:277
本文介绍了如何自动将现有项目添加到Visual Studio项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工具,可以动态 生成 .xaml和.xaml.cs文件,并将它们放置在适当的Visual Studio 目录中.

I have a tool which dynamically generates .xaml and .xaml.cs files and puts them in the appropriate Visual Studio directory.

要将它们添加到项目中,我必须:

To add them to the project, I have to then:

  • 右键单击该目录
  • 选择添加现有项目"
  • 导航到硬盘驱动器上的匹配目录
  • 选择创建的两个文件
  • 单击确定

我是否可以告诉项目将所有现有项目包括在硬盘驱动器上的项目文件夹下"?

推荐答案

我对此没有任何自动化.我仍然遵循以下相同的要求.这样可以避免点击几下.

I do not have any automation for this. Still I follow following for the same requirement. This will avoid few clicking.

  • 在解决方案资源管理器中高亮显示/选择 显示所有文件"按钮
  • 按控制键(以多选) 然后点击鼠标选择文件 包含在解决方案中.
  • 右键单击突出显示的任何一个 文件,然后选择包含在项目中"
  • In solution Explorer highlight/Select "Show all files" button
  • Press control key (to multi select) and select files with mouse click to be included in solution.
  • Right click on any one of highlighted file, and select "Include in project"

这篇关于如何自动将现有项目添加到Visual Studio项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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