I have a project that uses ServiceStack; we're running the old 3.9.x codebase rather than upgrading to 4.x, since ServiceStack 4 requires a commercial license.
My own API client has a dependency defined in the .nuspec
file as follows:
<dependencies>
<dependency id="DotNetOpenAuth.OAuth2.Client" version="[4.3,5)" />
<dependency id="log4net" version="[2.0,2.1)" />
<dependency id="ServiceStack" version="[3.9.71,4)" />
</dependencies>
Problem is - the ServiceStack package depends on various other bits of the ServiceStack framework, and installing ServiceStack 3.9.71 is installing ServiceStack.Text v4.0.24 into my project. It does pop up the dialog requiring license acceptance, which is what alerted me that something weird was going on - but short of manually defining my own dependencies for the other required ServiceStack components, how can I make sure I'm not going to end up with unlicensed bits of ServiceStack 4.x in my project?