CMake's VS_PACKAGE_REFERENCES not adding a reference to VS2017 project

前端 未结 1 1404
陌清茗
陌清茗 2021-01-28 13:32

I\'m trying to automatically add (nuget) references to my (C++) visual studio 2017 project using CMake.

In this question, VS_PACKAGE_REFERENCES is suggested

1条回答
  •  醉梦人生
    2021-01-28 13:54

    Hmm, apparantly, C++ projects are not supported by PackageReference according to docs.microsoft.com

    ASP.NET apps targeting the full .NET Framework include only limited support for PackageReference. C++ and JavaScript project types are unsupported.

    This makes the whole VS_PACKAGE_REFERENCES option from CMake inapplicable for C++ projects.

    0 讨论(0)
提交回复
热议问题