Home > Net >  SP.NET program (SiteServer CMS) how to generate the breakpoint debugging other c # class library pro
SP.NET program (SiteServer CMS) how to generate the breakpoint debugging other c # class library pro

Time:09-15

All bosses, the company currently use SiteServer CMS development site (.net Framework), then this project dynamic loading the DLL generated other c # project (DLL project source code), excuse me, how to debug the methods in the DLL, like breakpoint debugging, can follow the step by step

CodePudding user response:

1. In the main engineering solution to load other projects and the main engineering in reference - "add reference -" project to other project references in this main project running can into other projects breakpoint
2. Right-click properties in other projects - choose start debugging - "external program copy the main project generated by the program to the production of other project directory in the main engineering program that can be directly in other projects in the debugging

CodePudding user response:

reference 1st floor OrdinaryCoder response:
1. In the main engineering solution to load other project and the main engineering in reference - "add reference -" project to other project references in this main project running can into other projects breakpoint
2. Right-click properties in other projects - choose start debugging - "external program copy the main project generated by the program to the production of other project directory in the main engineering program that can be directly in other projects in the debugging


There are several don't understand where the trouble to help me with the
1, the first kind of plan, I add other items in the reference to the main engineering, DLL is directly to call DLL in the name of the class. The method name calling, now is the dynamic Load DLLS, using var assembly=assembly. The Load (metadata. Id); In this way,
2, the second scheme, the main project is a web project, the main project under the Bin directory. Exe program, I should how to operate?

CodePudding user response:

1. Yes you should so call can also into the breakpoint but to ensure that the production of other project directory and the main project directory in
2. I didn't deserve,,,

CodePudding user response:

You are quoted a DLL,
Or add a class library project?

CodePudding user response:

refer to 4th floor are nu month god reply:
you are cited a DLL,
Or add a class library project?


Cited a DLL, the DLL project structure is

CodePudding user response:

The main program is a website, this DLL is a plug-in project, the main program startup dynamic loading the plug-in DLL, then in the main program website menu add a menu item, click on the corresponding method is executed after the plugin, I would like to debug method in a DLL
  •  Tags:  
  • C#
  • Related