TeamCity includes dll as a reference when creating a project

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?

+4
source share
1 answer

Class Library DLL wrapper/interop. , .

0

Source: https://habr.com/ru/post/1612557/


All Articles