当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Joining some projects in one

问题描述:

I have 30 projects in C# - SomeProject_1, SomeProject_2 ... SomeProject_30. And I need join all to one new project that include only 30 buttons to open the each project. It's possible?

网友答案:

As Dor Cohen said, this is what solutions are for:

  1. Open Visual Studio

  2. Open the New Project dialog (even though we're not creating a new project) via File > New > Project...

  3. Under "Installed Templates" on the left, expand "Other Project Types" and select "Visual Studio Solutions"

  4. In the main list, select "Blank Solution"

  5. Give it a filename and location, then click OK to create it

  6. In the resulting blank solution, right-click the solution and choose Add > Exiting project..., choosing the existing project you want to add

  7. Repeat step 6 for the other 29 projects

  8. Save the solution

Now, when you open the one solution, all 30 projects are opened.

网友答案:

Make exe of each solution. Then,

As you said, going to add 30 buttons, you can give simple command to buttons as:

Process.Start(exePath)

By this you can start each process in 30 different buttons.

Referance:

http://msdn.microsoft.com/en-us/library/e8zac0ca.aspx

分享给朋友:
您可能感兴趣的文章:
随机阅读: