Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Controlling link order of libraries with NuGet packages in VisualStudio

$
0
0

I am building a C++ project with a locally supplied .lib and some NuGet libraries on Visual Studio 2019.

However the Nuget libraries always get linked first, and I need the local .lib to go first so the symbols are resolved correctly. How do I control the link order in Visual Studio?

I have attempted to use a Directory.Build.targets approach but it doesn't seem to know where the NuGet package versions and locations are. The Visual Studio linker seems to be told just fine, just does things in the wrong order.

I can write a batch file that works but it means hard-coding all the NuGet locations


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>