Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set the "executable project as the startup project" in Visual Studio 2013 Express?

So I am trying to study a sample application called ModernUIDemo.exe found in a zip file here. The website mentions the source code of the app can be found here.

After downloading, and pointing Visual Studio Express 2013 for Windows Desktop to the solutions file and trying to start without debugging, I get an error message:

A project with an Output Type of Class Library cannot be started directly.

In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.

I am assuming this means that there are multiple projects, and I need to set a startable project. So how do I do this?

I have been looking in the Application settings, where it lists "Startup objects" and it says FirstFloor.ModernUI.App.App. Isn't that correct?

Typically, how is documentation laid out in C# apps? Is there like a javadoc I have to generate for C#/XAML/WPF?

edit:

I am now getting some reference errors in the XAML to <mui:ModernTab and <mui:BBCodeBlock does not exist in XML namespace. Any clues? I already thought I added the dll file....

like image 934
user3525618 Avatar asked Apr 29 '14 14:04

user3525618


People also ask

How do you make an executable project as the startup project in Visual Studio?

Solution 1Open the Solution Explorer pane in Visual Studio, find the EXE project branch and right click it. In the drop down list that appears is "Set as Startup Project". Click that, and the EXE will run when you debug.

How do I add an executable project to class library?

Right click the Project name in Solution Explorer of Visual Studio. Select Properties. Select Application tab. In Output type drop box, select the correct application type of your project.

How do I designate a startup project in VS code?

In Visual Studio, you can get this done by – right click on the project, and choose “ Set as Startup project" .

How do I find the startup project in Visual Studio 2019?

Right click your solution on the solution explorer and go to properties. Under Common Properties/Startup Projects you will see an overview about every project and it's auto startup status.


1 Answers

Right click on the project you want to run -> Set as start up project

like image 147
MichaelLo Avatar answered Nov 15 '22 17:11

MichaelLo