How to add an assembly reference at compile time for vbproj or csproj files?
Is it possible to do 开发者_StackOverflow社区this?
Not sure I understand the question, but can't you just use the following: http://msdn.microsoft.com/en-us/library/s5bac5fx(VS.80).aspx
Assuming you are building from Visual Studio, you can add these arguments through project properties
If you want to access an assembly that's not specifically referenced in your project, you can use the System.Reflection namespace. This won't actually add a reference to your project file, but it will enable you to use other assemblies.
精彩评论