mikeobrien / WebApi.StructureMap

Web API StructureMap Integration
MIT License
12 stars 5 forks source link

NuGet warning "WebApi.StructureMap 1.0.22 depends on structuremap (>= 4.1.0) but structuremap 4.1.0 was not found." #6

Closed misha-fm closed 6 years ago

misha-fm commented 6 years ago

Steps to reproduce:

  1. Install WebApi.StructureMap 1.0.22 as NuGet into a project
  2. Build the project.

Then the warning "NU1603: WebApi.StructureMap 1.0.22 depends on structuremap (>= 4.1.0) but structuremap 4.1.0 was not found. An approximate best match of structuremap 4.1.0.361 was resolved." is shown.

As described here https://github.com/NuGet/Home/issues/5764#issuecomment-323613059, it happens because WebApi.StructureMap 1.0.22 depends on minimum version 4.1.0 of StructureMap nuget, which does not exist in StructureMap package source (https://www.nuget.org/packages/StructureMap):

image

mikeobrien commented 6 years ago

Thx for the PR! Sorry for the delay merging it, on holiday. Just pushed, will show up shortly in the gallery after the package has been verified/indexed, v1.0.23.