How to update assembly to latest version in Teamcity?
Recently, I had to update the version of Nsubstitute to one of the latest versions due to Compatibility argument matchers (eg: replace all instances of Arg. with Arg.Compat.)
Now, I have to update the version of NSubstitute with the latest version in Teamcity as well.
How do I update NSubstitute to latest version in Teamcity?
This is the error I am getting now in Teamcity - 'NSubstitute.Arg' does not contain a definition for 'Compat'.
Thanks
Please sign in to leave a comment.
Hi,
I'm afraid I don't understand what the problem exactly is. TeamCity doesn't provide NSubstitute at all, as far as I am aware, which means that TeamCity is picking your files and using them. How to update the version of NSubstitute on TeamCity builds will depend on how you are passing the version to teamcity, which is up to your configuration.
The error you are getting seems to imply that the build running in TeamCity is still using the old version of the library, which is strange because normally the build steps pick up the libraries dynamically, as defined in your files. I'd recommend double checking that you are passing the appropriate version to TeamCity, or that you aren't using any local cache with outdated versions for running the builds on TeamCity.