Answered by:
Add references through command line

Question
-
Is it possbile to add reference to a c# project through command line ?
Thursday, May 14, 2009 4:34 PM
Answers
-
Looks like you can compile by reference it to external dll, but I guess that won't ADD it to the project .....
What you are trying to do is not possible.If you can give the requirement then we can find solution.The references you added will go to the project file, which is an xml file. So instead of trying for commandline option you can directly open the file and add the reference.Check these linksThanks,
A.m.a.L
.Net GoodiesRemember to click "mark as answered" when you get a correct reply to your question - Marked as answer by GoDaddy Thursday, May 14, 2009 8:29 PM
Thursday, May 14, 2009 6:02 PM
All replies
-
I thinks is possible, read about working with the c# 2.0 command line compiler. http://msdn.microsoft.com/en-us/library/ms379563(VS.80).aspx im sure it will work with 3.0 or 3.5
kaymaf
I hope this helps, if that is what you want, just mark it as answer so that we can move onThursday, May 14, 2009 5:41 PM -
Looks like you can compile by reference it to external dll, but I guess that won't ADD it to the project .....Thursday, May 14, 2009 5:54 PM
-
Looks like you can compile by reference it to external dll, but I guess that won't ADD it to the project .....
What you are trying to do is not possible.If you can give the requirement then we can find solution.The references you added will go to the project file, which is an xml file. So instead of trying for commandline option you can directly open the file and add the reference.Check these linksThanks,
A.m.a.L
.Net GoodiesRemember to click "mark as answered" when you get a correct reply to your question - Marked as answer by GoDaddy Thursday, May 14, 2009 8:29 PM
Thursday, May 14, 2009 6:02 PM -
Yeah I wanted to avoid the xml file ... but looks like it's the only solution.Thursday, May 14, 2009 8:30 PM