


Detailed introduction to mixed development and testing of C# and VB.net (pictures and text)
Mar 15, 2017 am 11:09 AM
In the past, programming software was basically developed using a development language, either C#, Java, or Delphi. Recently, I have seen some development methods of merging multiple C# projects into one solution, and I think this method is good. Below we will create a simple example to experience the charm of Microsoft platform multi-language development.
Development process:
1. Create a new C# Windows program project
2. Create a new VBclass library project
Add the class library to the C# project just now ("Add Solution")
After building the project, the following picture is shown:
3. Write VB class library code
Create a new test method SayHello() and simply output information prompts.
4. Add project Reference
Add project reference in C# project, that is, VB project.
5. Design forms and write C# formsEventCode
# #
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
##Multi-project mixed development mainly has the following benefits:
Layered design, each Layers can be developed independently to facilitate division of labor;
Just add references between different projects. After compilation, it will be a
Dll file. When publishing, you can decide whether to publish Dll or source code according to your needs;
Modular developmentfacilitates the formation of code assets. In the future, similar projects only need to reference related projects to avoid citing redundant code; There is another point that other language platforms cannot reach now. What is achieved is that the advantages of different languages under the .net platform can be used, and programmers using different languages can jointly develop a project.
The above is the detailed content of Detailed introduction to mixed development and testing of C# and VB.net (pictures and text). For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
