Create a Project from Existing Code Files in Visual Studio

By | May 27, 2018

Create a Project from Existing Code Files in Visual Studio - Featured

Did you know – You can create a project from existing code files in Visual Studio. Consider you have some existing files and you want to execute them quickly. In that case, you can use the “Create a Project from Existing Code” wizard in Visual Studio.  Visual Studio will ask for source file location, languages for project and type of project you want to create.  Using this feature, you can quickly create a project from sample code files for prototyping or quick testing.

Create a Project from Existing Code Files

To start with, from the Main Menu of Visual Studio, Navigate to File > New > Project from Existing Code

Create a Project from Existing Code Files - Visual Stuio

This will bring the “Create New Project from Existing Code Files” Wizard.

Create a Project from Existing Code Files - Wizard1

 

In this screen, you only need to select the project language Visual Basic or Visual C# and click on Next.

 

Related Post: 10 Visual Studio tips to improve your development productivity

 

In the next screen, choose the source file location, the name of project and type of project you want to create the code file.

Create a Project from Existing Code Files - Wizard2

That’s it. Visual Studio will create the projects for the selected type automatically.

Hope this helps.

 

Author: Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

Leave a Reply