Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
In a C# solution, how do I add an .EXE project to a solution of DLL project's?

This is using Microsoft Visual Studio Professional

I have been handed a solution file which contains three projects. But all three projects generate DLL files. It is kind of unique because I have uncovered that they contain XAML files. So there is the opportunity to use the dll's to display WPF style UI as long as I properly create a new project for the solution. And this is what I am asking. What are the steps involved in creating a new project in the solution that is an executable and loads the DLL's and displays the UI'S?

What I have tried:

I don't know where to begin, frankly
Posted
Updated 12-Jan-22 2:39am
v2

1 solution

The mechanics are simple: open the solution, right click it in the Solution explorer pane and select the "Add ... New project" option from the drop down. Pick the "WPF App" project type, give it a name and teh EXE project will be created for you.
You then open the project branch, right click "References", select "Add reference..." and add the DLL projects to the EXE project.
You'll probably want to add using lines to all relevant source files in your EXE project in order to use the the DLL code.

After that, it's up to you: we have no idea what the DLL's contain, so we can't give you specific instructions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900