简体   繁体   English

如何将一个mvc3 c#项目添加到其他可执行项目中?

[英]How to add one mvc3 c# project into other executable project?

I have mvc3 project when I start debugging it show messbox like this 当我开始调试它时,我有mvc3项目,显示像这样的messbox

在此处输入图片说明

How can i put this project into another executable project?Any idea? 如何将这个项目放入另一个可执行项目中?

Looks like there are multiple projects in the solution and start up project needs setting. 解决方案中似乎有多个项目,并且需要设置启动项目。

The MVC projects which you created needs to be the start up project. 您创建的MVC项目必须是启动项目。

To set a single startup project (VS 2010 and 2012) 1.In Solution Explorer, select the desired startup project within your solution. 设置单个启动项目(VS 2010和2012)1.在解决方案资源管理器中,在解决方案中选择所需的启动项目。 2.On the Project menu, choose Set as StartUp Project. 2.在“项目”菜单上,选择“设置为启动项目”。

Source: http://msdn.microsoft.com/en-us/library/a1awth7y(v=vs.80).aspx 来源: http : //msdn.microsoft.com/en-us/library/a1awth7y(v=vs.80).aspx

Hope it helps 希望能帮助到你

just go to the properties of the project then in the output tab change the output type from class library into executable . 只需转到项目的属性,然后在“输出”选项卡中将输出类型从类库更改为可执行文件即可。 after did this run your project. 之后运行您的项目。

我同意Daniel:在您的MVC3项目上单击鼠标右键,然后选择“设置为启动项目”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM