From 4fb38651d779a508d2020f4b3f3c52a484aee562 Mon Sep 17 00:00:00 2001 From: Carsten Igel Date: Wed, 20 Nov 2024 12:48:01 +0100 Subject: [PATCH] qa: Add NuGet Restore to run create projects.assets.json Using an empty packages.config file --- examples/cppcli/CppLibrary/packages.config | 2 ++ examples/cppcli/scripts/msbuild-acceptance-test.cmd | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 examples/cppcli/CppLibrary/packages.config diff --git a/examples/cppcli/CppLibrary/packages.config b/examples/cppcli/CppLibrary/packages.config new file mode 100644 index 0000000..e2887c7 --- /dev/null +++ b/examples/cppcli/CppLibrary/packages.config @@ -0,0 +1,2 @@ + + diff --git a/examples/cppcli/scripts/msbuild-acceptance-test.cmd b/examples/cppcli/scripts/msbuild-acceptance-test.cmd index b44f2be..a92383e 100644 --- a/examples/cppcli/scripts/msbuild-acceptance-test.cmd +++ b/examples/cppcli/scripts/msbuild-acceptance-test.cmd @@ -33,7 +33,12 @@ dotnet add CsLibrary.csproj package --prerelease -s %root%\_packages dSPACE.Runt dotnet build-server shutdown -msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 ..\CppLibrary\CppLibrary.vcxproj +PUSHD %~dp0\..\CppLibrary + +nuget restore -SolutionDirectory .. + +POPD + msbuild -nodeReuse:False -t:Restore -p:Configuration=Release -p:Platform=x86 -p:TargetPlatform=net8.0-windows -p:PerformAcceptanceTest=Runtime dotnet build-server shutdown