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....

有帮助吗?

解决方案 2

In your project's property in Application tab you have to see:

enter image description here

Output type: Windows Application.

With this configuration after compilation you will get EXE file. Instead, according to the error message you get, your application is configured like Class Library, so output is DLL.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top