Sharpmake
Sharpmake copied to clipboard
NuGet for CPP projects
Hello! Will be there support for NuGet references for C++ projects? Want to reference D3D12 Agility SDK.
Heya! There's an open PR to add support for this #81, I need to find some time to resurrect it... Note that it's only for MSBuild
Hey, Has there been any update on this or is there a rough ETA? I would also need C++ nuget support for the very same reason.
Heya! No progress on that front, sorry :(
@belkiss You can download Agility SDK via bat command alongside with generating project files via Sharpmake. Passing downloaded library through sharpmake config is quite easy. You can refer to my Spectrum project where I did this.
I've updated the integration and there's a new PR up #173
Note: msbuild doesn't auto restore c++ nuget packages. building through devenv does otherwise you need to invoke nuget seperately.
Note: msbuild doesn't auto restore c++ nuget packages. building through devenv does otherwise you need to invoke nuget seperately.
That's not true, msbuild can restore nuget packages, like we do in the batch file here: https://github.com/ubisoft/Sharpmake/blob/a0c127eac3c91151c5decdcb02e6fc80d76a5285/CompileSharpmake.bat#L72
https://github.com/NuGet/Home/issues/7386 This is using the packages.config method which isn't supported by msbuild. I can't really remember if that's the only way to do it for c++ or if newer versions allow references directly in the vcxproj.