Reputation: 1487
I have some legacy dlls installed as part of a asp.net MSI setup package. All dlls are installed into the GAC. On asp.net I was able to reference dlls in GAC by placing such entries into the web.config file
<add assembly="MY.DEPENDENCY.MODULE, Version=1.2.3, Culture=neutral, PublicKeyToken=qwertyuiop"/>
I did the same thing as above in MVC3 but my source complains it can't find the expected references. have anyone else know or done this before?
Thanks
Upvotes: 0
Views: 592
Reputation: 2998
When you reference a dll via the Add Reference, you can have it push when you publish by clicking on the referenced dll and change the "Copy Local" option in properties to true. Then when you deploy use the publish function of the project. This doesn't hard code a path when you publish, it just uses that path to do the compilation. The published app will then look at the bin folder for that dll.
Upvotes: 0
Reputation: 2120
Did you try adding a reference from inside VS? Right click on References>Add Reference
Upvotes: 1