For each newly created C# project, the Visual Studio 2010 has put in some default references, such as System, System.Core, System.Xml, etc. The benefit of those default references is you can directly use them without adding them manually.
I’m wondering if there’s a way to add a 3rd party assembly as the default reference, so that I do not need to add it each time I created a project.
You can accomplish this by creating a custom project template for your needs.
Take a look at the documentation Creating Project and Item Templates.
More specifically the How to: Add References to Templates.
You essentially modify the
.vstemplatefile so that it references your desired assemblies:Having said that, you could modify the OOB templates accordingly, if that is what you desire. They can be found at:
\VisualStudioInstallationDirectory\Common7\IDE\ProjectTemplates\Language\Locale\