pmed / v8-nuget

NuGet package for V8 JavaScript Engine
93 stars 27 forks source link

Failed to link with "non-standard" configuration names #10

Closed lucas29252 closed 6 years ago

lucas29252 commented 6 years ago

I have two alternative configurations apart from the typical Debug and Release. They are named "Debug DLL" and "Release DLL" and failed to link throwing a "cannot open input file v8.dll.lib" error.

If I duplicate the folders inside "\packages\v8-$PlatformToolset-$Platform.$Version\lib" and name them "Debug DLL" and "Release DLL" it works like a charm.

pmed commented 6 years ago

Yes, because the package has static structure in the package\lib directory. I don't know whether it possible to have user-defined configurations in this case.

Your solution with duplicating necessary files works fine because of $(Configuration) usage in the package .props file. You could also add any configuration-specific properties into that file (e.g. compiler and linker options).