简体   繁体   English

VS2019 在解决方案中复制项目以用作新项目的起点

[英]VS2019 copy project within solution to use as starting point for new project

Hi I have a VS2019 solution that contains multiple projects, some are class libraries and some are commandline apps您好我有一个包含多个项目的 VS2019 解决方案,有些是 class 库,有些是命令行应用程序

I want to start a new commandline app but would like to base it on an existing app in the solution.我想启动一个新的命令行应用程序,但希望它基于解决方案中的现有应用程序。

Is there any easy way to do this?有什么简单的方法可以做到这一点? Or do I just have to start the new project and then labouriously copy all the references, progrma.cs etc etc...还是我只需要开始新项目,然后费力地复制所有参考资料、progrma.cs 等...

If thats the case then fine.. I am just wondering if I am missing a trick here, maybe this is something people do a lot?如果是这样,那很好。我只是想知道我是否在这里错过了一个技巧,也许这是人们经常做的事情?

Thanks谢谢

  1. Copy Project:复制项目:

在此处输入图像描述 在此处输入图像描述

  1. Add Existing Project:添加现有项目:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

  1. Rename the project otherwise an error will be reported.重命名项目,否则会报错。

在此处输入图像描述

After renameing:重命名后:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS2019 中的 xUnit 项目 - xUnit Project in VS2019 如何在VS2019中将共享项目添加到WPF项目中 - how to Add Shared Project to WPF Project in VS2019 VS2019 Winforms SDK风格项目,无法添加新表单 - VS2019 Winforms SDK-style project, can't add a new form 在 vs2019 中创建 xamarin 项目时无法在 app1 中使用 android 库 - Unable to use android library in app1 when creating xamarin project in vs2019 vs2019 .net 核心项目 CopyToOutputDirectory 无效 - vs2019 .net core project CopyToOutputDirectory is invalid 有人征服了VS2019中的Visual Studio安装程序项目吗? - Has anyone conquered the Visual Studio installer project in VS2019? 如何在 VS2019 中为 Windows 窗体应用程序创建安装程序项目 - How to create an installer project in VS2019 for a Windows form application C# (VS2019):当两者都使用 class 使用 VS 项目结构时,如何将域层与数据层分离 - C# (VS2019): How to separate a domain layer from a data layer when both use a class using VS project structure 在新的VS2019 MVC应用程序中使用bootswatch的基本问题 - Issue with basic use of bootswatch in a new VS2019 MVC app VS2010:使用解决方案中另一个项目的命名空间? - VS2010: Use namespace from another project within the solution?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM