1个解决方案2个项目 [英] 1 solution 2 projects

查看:66
本文介绍了1个解决方案2个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是这个级别的新手,真的需要一些帮助.
我有2个需要组合的独立项目. 1个获胜应用.和1个控制台应用程序.控制台应用程序.将在后台做一些工作.根本没有视觉效果,只需运行代码即可.
我的想法是将控制台项目置于win解决方案之下.
像这样:
我有1个解决方案和2个项目.一个项目是基于Windows的,另一个项目是基于控制台的. Win项目取决于控制台项目.
问题:如何将控制台项目包含在win项目中,所以如果win项目启动,那么控制台项目也会启动?控制台项目是将在win项目所依赖的后台运行的代码.
致以最诚挚的问候.

Hi,
I''m new at this level and really need some help.
I got 2 separate projects that need be put together. 1 win app. and 1 console app. The console app. is going to do some work in the background. Nothin visual at all, just running code.
My idea is to put the console project under the win solution.
Like this:
I got 1 solution and 2 projects. 1 project is windows based and the other is console based. The win project is dependent on the console project.
Question: How do I include the console project into the win project, so if the win project starts, the console project also starts? The console project is code that will run in the background that the win project is dependent on.
Best regards to you all.

推荐答案

为什么每次启动Win应用程序时都不要立即启动控制台应用程序?另外,您可以使用计时器检查控制台应用程序是否正在运行.
Why don''t you just start the console app everytime the win app is started? Additionally you could check if the console app is running using a timer.


更具体.是否将控制台项目添加到Win解决方案中?然后如何启动控制台程序.我是否可以通过在控制台项目中对Main()进行校准来在winize项目(构造函数)中启动它?
More specific. Do I add the console project into the win solution? then howe do I start the console program. Do I start it in the win project(constructor) under InitializeComponent() by caling the Main() in console project?


一切都准备好了,我想先一起尝试一下. Havent编译了它.控制台应用程序.提供数据以赢得应用程序.通过som方法.所以这就是我目前所在的位置.我怎么从这里去?
Everything is ready and I want to try it out together first. Havent compiled it yet. The console app. delivers data to win app. throug som methods. So thats where I am at the moment. Howe to I go from here?


这篇关于1个解决方案2个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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