Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 30, 2011 6:50 AM
Hi..
i want to statically link C# library to C# project...can any help me
All replies (3)
Wednesday, June 1, 2011 7:29 AM âś…Answered | 1 vote
Do you mean you got multiple .NET library's and want to combine them as one, like the C++ static linking?
ILMerge is a tool that can combine multiple .NET assembly's in to one assembly.
http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx
Maybe this is what youre looking for?
Wednesday, June 1, 2011 6:00 AM
Hi Mvinaymurthy,
Based on your description, what do you mean of statically link C# library to C# project?
Do you mean that you have created a C# dll, then you want to link the dll into C# project?
If so, I think you can perform the following steps:
- Right-click the "References" item in your project in Visual Studio
- Choose the "Add References" option, then it will show a dialog to add references
- Choose the "Browse" tab and select the dll and click OK button. Then the dll will be added into your project.
Vin Jin [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Wednesday, June 1, 2011 9:00 AM | 1 vote
ILMerge works, if you want to go even further, or need mroe advanced linking options, then RemoteSoft Salamander Linker is even better: