Reputation: 91
I have a useful extension for Xunit which I use through various .NET 3.1 projects. I want to build a NuGet package to easily distribute it. But when I add a Xunit dependency to my Visual Studio project it is immediately marked as Unit Test project and stops generating .nupkg file (I have "Generate NuGet package on build" checked in the project settings). Can anyone help me?
Upvotes: 2
Views: 996
Reputation: 91
I ended up deleting unnecessary dependencies like "Microsoft.NET.Test.Sdk" after that my project stopped being a unit test project. Then I switched Xunit dependency to xunit.extensibility.core which is supposed to be used especially for extensions. Finally, Visual Studion successfully generated .nupkg file on build
Upvotes: 1