-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Apologies for the issue with no PR - mostly logging till have time to address it...
The Asos.SimpleEventStore.DocumentDb nuget package published by the build process contains a hard reference to a Asos.SimpleEventStore package with version 1.0.0 despite the actual build taking place against a later (non-backwards-compatible) package version (e.g. 2.X.X). This produces the following example warning in consumers using VS2017.3.4 or later:
"Asos.SimpleEventStore.AzureDocumentDb 2.0.31 depends on Asos.SimpleEventStore (>=1.0.0) but Asos.SimpleEventStore 1.0.0 was not found. An approximate best match of Asos.SimpleEventStore 2.0.30 was resolved".
This might stop "warnings as errors" being enabled for builds.
A temporary hack might be to simple change the Version property in the csproj files to match the version of any currently published package, but although that will remove the warning, I worry that this will simply mask the issue and might result in consumers who use "minimum matching package" dependency behaviour rarely picking up new dependent package versions (i.e. those that reference SES.DocDb will not update to latest versions of SES itself).
A better approach might be to use "$" build variables in the csproj files Version elements in order to create correctly-versioned references when msbuild is spidering project references to generate the package manifest.