如何在一个解决方案中加入ASP.NET mvc5项目和WPF项目 [英] How do I join ASP.NET mvc5 project and WPF project in one solution

查看:92
本文介绍了如何在一个解决方案中加入ASP.NET mvc5项目和WPF项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个单独制作的项目。第一个项目是在asp.net mvc5中制作的,第二个项目是在wpf中制作的。我想加入他们的一个解决方案。

等待您的回复



我尝试了什么:



i创建了mvc5项目并在其中添加了wpf项目。但无法从网页运行或启动wpf项目。

i have two projects made separately. first project is made in asp.net mvc5 and second is made in wpf. i want to join them in one solution.
waiting for your kind response

What I have tried:

i have created mvc5 project and added wpf project in it. but not able to run or start wpf project from a web page.

推荐答案

您将无法运行或启动WPF应用程序或任何其他可执行文件,来自网页。如果可以,那将是一场安全噩梦!



可能能够从服务器上运行的代码启动应用程序。但这将运行服务器上的应用程序,没有人会看到它。这样做没有什么意义。



(在Visual Studio中调试站点时,它可能显示。但这是只是因为客户端和服务器在该特定实例中是同一台PC。一旦部署到真实服务器,它就会停止工作。)
You won't be able to run or start a WPF application, or any other executable, from a web page. If you could, it would be a security nightmare!

You might be able to start the application from the code running on the server. But that will run the application on the server, where nobody will ever see it. There's very little point in doing that.

(It might appear to work whilst you're debugging your site in Visual Studio. But that's only because the client and the server are the same PC in that specific instance. As soon as you deploy to a real server, it will stop working.)


这篇关于如何在一个解决方案中加入ASP.NET mvc5项目和WPF项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆