ProfK
ProfK

Reputation: 51084

Build won't copy System.Drawing to output folder

I have an assembly that is deployed to SQL server that references System.Drawing. Don't ask why, it's a third-party library. This requires System.Drawing to be in the same directory as the library when I call CREATE ASSEMBLY. I have added System.Drawing as a 'Content' file to my project, with 'Copy always' to output directory, yet it is never copied. How can I force VS 2008 to copy this file for me, before I resort to using a build event, which seems unnecessary for such a simple task.

Upvotes: 0

Views: 139

Answers (2)

Dead account
Dead account

Reputation: 19960

Surely System.Drawing is part of the .NET framework so doesn't need be deployed? Do you have .NET framework installed on the server?

Upvotes: 1

Preet Sangha
Preet Sangha

Reputation: 65516

Don't know the precise answer, but I wonder if a symbolic link to the assembly in the target directory will suffice? Or possibly the third party could be coerced to look elsewhere with assembly probepaths?

Upvotes: 0

Related Questions