El código implementado no puede encontrar una referencia de biblioteca

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.

Cualquier consejo es apreciado.

Saludos.

preguntado el 24 de agosto de 12 a las 20:08

How do you deploy your application? "Copy Local" is a Visual Studio functionality. -

I had a problem some things like yours: stackoverflow.com/questions/11263500/… -

2 Respuestas

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.

Respondido 24 ago 12, 20:08

Thanks. I thought that building the solution bundled all the code into the executable. I have deployed the .dll for the library and all is well. - Kevin

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.'

Respondido 24 ago 12, 20:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.