We have a project with win32 dll enabled as a content file. This file (native32.dll) is copied to the output directory and imported at runtime. Visual Studio compiles the project without any problems, however TeamCity accepts this. A DLL file (or any DLL file included in the project structure) and treats it as if it were a link:
csc.exe <..> /reference:native32.dll <..>
Build failed with error:
CSC error CS0009: Metadata file 'native32.dll' could not be opened -- PE image doesn't contain managed metadata
How can this native32.dll file be excluded from the link?
source
share