Home > other >  how to Add Shared Project to WPF Project in VS2019
how to Add Shared Project to WPF Project in VS2019

Time:01-06

I've created an WPF Project. Since the project has become big enough for me to maintain I wish to break its code into several Shared Projects.

So can I add/create Shared Project for C# & WPF?

I'm asking this since I cannot find any template in New Projects for creating Shared Project for C# & WPF

Thanks in Advance Amit Saraf

CodePudding user response:

  • Create a new class library (File->New->Project in Visual Studio) using the WPF Custom Control Library (.NET Framework) or ``WPF Custom Control Library` template depending on your target framework

  • Move the code (copy and paste) to this new project from the existing application project

  • Add a project reference to the new project from the existing application project (Project->Add Reference->Projects->Solution in Visual Studio

  •  Tags:  
  • Related