-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dependency structuremap >= 4.3.0 could not be resolved #17
Comments
|
Yes! #13 thanks |
This is still an issue. If you download the StructureMap 4.4.2 Package from NuGet and open up the
Which is not what you are saying the ID of the package should be. I have been battling all day to use Or I am going mad (which is possible). Any chance you could check my findings? |
Ugh. What a mess. I'm not really sure what to do here... 😞 @MarkPerryBV Did you try to update the NuGet client to 3.5? The NuGet gallery is telling me that the package title is StructureMap, but the package ID is structuremap: If you download the nupkg, you see that the package ID is structuremap: But, if you pop open the nupkg and check the nuspec, it says that both the title and the package ID is StructureMap: Who can you trust? How could a package ID suddenly change? What a clusterfuck. @harikmenon @yishaigalatzer Anyone got any advice? |
I am using NuGet 3.5 on the build server. I think its the nuget.exe you use to package the project to upload to NuGet. |
Are you saying that @jeremydmiller must update his client to produce a proper NuGet package? 😕 |
@khellang I have no idea how he produces the One thought might be that there are 2 api feeds for NuGet (v2, v3) do you upload different packages? |
@khellang Visual Studio (2015 Update 3) also does NOT autocomplete the lowercase package name. In my project.json file it inserts it as:
I tracked my particular problem down to the generation of the project.lock file (for the asp.net core project) and it had used the "StructureMap" as the name of the package which it could not find. As the package downloads as "structuremap.nupkg". Either way I think my issues will be resolved by "lowercasing" everything in all the places, but that will require you to bump the version numbers in the main repo and in this one. |
The NuGet people has confirmed that this was a bug and that it's been fixed in 3.6RC. How that ties into Visual Studio and dotnet tooling, I have no idea... |
How do I get NuGet 3.6RC? |
I'm not sure. For Visual Studio, you can probably use the beta channel, but it doesn't look like it's listed in the downloads section 😞 |
It's weird, cause I've never encountered this issue, and I've used this package in many many projects. I wonder if it's a very specific version of some tooling? |
@tommed, this error occurs during There is an issue in preview2 versions of .NET CLI ( <dependencies>
<group targetFramework=".NETFramework4.5.1">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="[1.0.0, )" />
<dependency id="structuremap" version="[4.4.0, )" />
</group>
<group targetFramework=".NETStandard1.3">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="[1.0.0, )" />
<dependency id="structuremap" version="[4.4.0, )" />
</group>
</dependencies> Notice that the ID of StructureMap is in there as The fix should be done here: Line 27 in 395240b
A new version of the package StructureMap.Microsoft.DependencyInjection will need to be published. Also, this problem is resolved in the next release of .NET CLI. Package IDs are intended to be case insensitive! |
@joelverhagen The problem is that this was never the intended casing (or maybe it was, but it's been |
"How could a package suddenly change its ID?" - apparently pretty easy. I'd completely forgotten about the old Unix-y "structuremap" name and set up the package.json with the way we normally type it out. |
So is there a fix to be applied? If so what do I need to do? |
|
Any updates on this? Is there a workaround I can apply in the meantime? |
I've worked round this by downloading the |
@joelverhagen Wouldn't you consider this a bug? The fact that the package ID of an already published package can change between versions and break clients, regardless of the package ID in the nuspec, sounds really really bad IMO. |
OK everyone. I've finally pushed a new version, v1.3.0, to NuGet. I've changed the dependency on SM to |
@khellang Thanks for doing this - unfortunately it doesn't work for us as |
I'll see if I can fix this later today 😄 |
Thanks 👍 |
@tjrobinson Pushed a new version, v1.2.1, that only changes the |
@khellang That works for us, thanks. |
Package IDs have been case-insensitive on the nuget.org gallery for quite a while now (years), so we have to take this as a preset to our problem 😄. There are numerous cases in the gallery where users change a package ID casing from one version to the next. In recent NuGet releases, we have done a lot of work to improve the case-insensitivity handling but, as you can see, there are still places that are catching up. The root cause here is a bug in .NET CLI preview 2 build (
Please let me know if you have any other feedback 👍. |
So what you're saying is that once the bug is fixed, I won't have to change the dependency back to the old casing? If that's correct, then I think we're done here. Fingers crossed all the NuGet casing bugs have been resolved. Thanks for your time, @joelverhagen ❤️ |
Correct. And to be clear the bug is actually already fixed in preview3+ .NET CLI builds (which implies .csproj instead of project.json). |
Trying to build asp.net core project whilst referencing
StructureMap.Microsoft.DependencyInjection
and getting back a build failure due to the dependencystructuremap >= 4.3.0
- I can reference and build structuremap nuget package from my project, but this package fails to resolve its dependency. Relevant project.json:Results in error:
project.json(20,59): error NU1001: The dependency structuremap >= 4.3.0 could not be resolved.
The text was updated successfully, but these errors were encountered: