JohnnyHendriks / TestAdapter_Catch2

Visual Studio Test Adapter for Catch2
MIT License
105 stars 28 forks source link

Create a configuration for generating a NuGet package #64

Open OskiKervinen-MF opened 1 year ago

OskiKervinen-MF commented 1 year ago

I am planning to distribute this adapter internally as a nuget package. It doesn't seem you had nuget support configured in this repository, so I set it up. It took quite a lot of head banging to figure out how to convince nuget to install a package consisting of managed assemblies to a native project, so I thought I'd share my configuration in case you want to set up official nuget packages some day.

See https://github.com/microsoft/vstest/blob/main/docs/RFCs/0004-Adapter-Extensibility.md

Command to generate the package: nuget pack Catch2.TestAdapter.nuspec -Version 1.8.0 -p Configuration=Debug

PS. For .vcxprojs VS only finds adapters mentioned in packages.config, not in PackageReferences, unless you apply extra invocations.