CMake/Tests/RunCMake/VsDotnetSdk/VsDotnetSdkNugetRestore.cmake
Calum Robinson 3283ef47d1 VS: Fix DOTNET_SDK builds when no VS_PACKAGE_REFERENCES set
nuget restore always needs to be run for the new DOTNET_SDK style
projects, even when VS_PACKAGE_REFERENCES is empty.

Fixes: #23405
2024-09-16 13:32:19 +01:00

9 lines
161 B
CMake

enable_language(CSharp)
if(NOT CMAKE_CSharp_COMPILER)
return()
endif()
set(CMAKE_DOTNET_SDK "Microsoft.NET.Sdk")
add_executable(foo csharponly.cs lib1.cs)