Skip to content

VS: Added support for VS package references for nuget

KonanM requested to merge KonanM/cmake:feature/vs-add-package-reference into master

Microsoft added the possibility to declare nuget package references directly within project files : https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files

I made a minimalistic implementation with which you can use

set_property(TARGET ${TARGET_NAME} PROPERTY VS_PACKAGE_REFERENCES "boost_1.7.0")

to be able to define such packages.

You can either restore the packages via command line or right click on a an openend Visual Studio Solution and use "Restore NuGet Packages". No need to point to the specific dll's - that's taken care by MSBuild.

Topic-rename: vs-add-package-reference

Edited by Brad King

Merge request reports