#4214 Add in automated testing for 32/64 bit nuget package #4369
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request overview
This adds a simple csharp project that uses a local nuget package to compile and test using a windows .bat
test_nuget.bat
script. Here is an example of executing the .bat script.This tests both x86 and x64 nuget packages by compiling for each platform and then running each compiled .exe.
Ideally, this would be all rolled up into a CMake project. CMake does support nuget packages by using VS_PACKAGE_REFERENCES but this assumes that packages are available via nuget.org which get installed by msbuild during the configure steps. I couldn't find a way to install local .nupkg packages, like the
test_nuget.bat
script does.The actual test runs will only be enabled for OpenStudio nightly builds. Incremental builds have this option to turned off to help speed up the builds which are already too slow. Here is a nightly build run that runs the
test_nuget.bat
script.https://ci.commercialbuildings.dev/job/openstudio-develop-nightly/1153/execution/node/298/log/
This will get enabled when this PR is merged.