Kevin
Kevin

Reputation: 1240

Deployed Code Cannot Find A Library Reference

I have written an application in Visual Studio Express 2010 that has a reference to a Class library that I coded. For this reference I have set the "Copy Local" property to true but when I deploy this code outside of the development directory it throws an error because it cannot find the library. I thought Copy Local = True took care of this.

Any advice is appreciated.

Regards.

Upvotes: 0

Views: 110

Answers (2)

BAF
BAF

Reputation: 445

As others have said, copy local only applies when you compile in Visual Studio. If you're using Visual Studio deployment, you may need to right click the deployment project and hit 'Refresh Dependencies.'

Upvotes: 0

David Anderson
David Anderson

Reputation: 13670

Copy Local = true ensures that the referenced assembly is copied to the output directory on build. You still need to ensure that the referenced library gets deployed, whatever deployment method that may be.

Upvotes: 3

Related Questions