You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Corvus.Testing.SpecFlow.NUnit includes a reference to the Microsoft.NET.Test.Sdk package, which sets the IsTestProject MSBuild variable to true. This has potentially unexpected side effects.
For example, we recently ran into a problem where a project that build a DLL containing test utilities started using this metapackage. This had the side effect that the build process no longer produced NuGet packages for that DLL. This was not the intention—this project was not a test project, it was a library intended to be used from test projects.
It took a while to diagnose this. It's not entirely obvious that Microsoft.NET.Test.Sdk sets IsTestProject, nor that this in turn changes the default value for IsPackable from true to false.
When we add documentation for this project, we should clarify this side effect.
The text was updated successfully, but these errors were encountered:
The
Corvus.Testing.SpecFlow.NUnit
includes a reference to theMicrosoft.NET.Test.Sdk
package, which sets theIsTestProject
MSBuild variable totrue
. This has potentially unexpected side effects.For example, we recently ran into a problem where a project that build a DLL containing test utilities started using this metapackage. This had the side effect that the build process no longer produced NuGet packages for that DLL. This was not the intention—this project was not a test project, it was a library intended to be used from test projects.
It took a while to diagnose this. It's not entirely obvious that
Microsoft.NET.Test.Sdk
setsIsTestProject
, nor that this in turn changes the default value forIsPackable
fromtrue
tofalse
.When we add documentation for this project, we should clarify this side effect.
The text was updated successfully, but these errors were encountered: