I want to add a reference of the dll files programatically in C#.I’m facing a scenario, to convert the list of project from framework 1.1 to framework 3.5. while converting this, the framework 3.5, shows some absolute methods and I need to convert this. Even I converted this absolute methods.
Now I need to add a new reference to this converted project via programmatically.
While converting itself I need to add a new reference to the project. Is there any way to add through C# code?
just edit your project files(
csproject). inside its simple XMLlooks like this:
I would use simple search & replace. but of course you can write C# code for this.