How can I add C# class to my project programmatically in design mode? (like code generator)
-
Please specify your development environment. Is it Visual Studio 2010 Professional? Express? ...etc. The tool you're using to compile the project dictates the easiest approach.Jason D– Jason D2011-05-07 17:00:57 +00:00Commented May 7, 2011 at 17:00
-
1You mean add reference to some external class?user447356– user4473562011-05-07 17:14:29 +00:00Commented May 7, 2011 at 17:14
-
i'm using vs 2008 Professionalalasif– alasif2011-05-07 17:27:22 +00:00Commented May 7, 2011 at 17:27
-
Any news for 2019 or 2022?Ali123– Ali1232021-12-13 11:48:27 +00:00Commented Dec 13, 2021 at 11:48
Add a comment
|
2 Answers
You can create a Add-In for Visual Studio. Look at this sample code from Microsoft which programmatically creates a project item (class).