-
Notifications
You must be signed in to change notification settings - Fork 258
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
System.Xml.XmlException: Unrecognized root element in Core Properties part. Line 2, position 2. #2718
Comments
as an addendum to this.
|
Accidentally closed in error! |
This sounds like it might be the same issue as #2651 that is fixed in 3.4.4. Would you verify that our upcoming release fixes the problem?
|
No luck with the new version same error reported However: I managed to work out a way to reproduce this error consistently after messing around with my project, finally pinning it down to a single a single library: structureMap.automocking. As soon as following line is added the error occurs So:
It's worth noting that this is with any version on the library, not just the most recent and is independent of the libraries dependencies. I can't see anything wrong with the downloaded packages, nor can I find another library to replicate this issue. Hope this helps; my problem is that this issue is a blocker to me: This library is added as an imported dependency. I'll play around and add to this if I can find anything else..... |
Thanks. It's always nice to get an exact way to reproduce the problem. I created a project, added structuremap.automocking, and then pack shows the error. I'll start debugging it to see if I can fix it. |
Have actually tried to debug ... but realised it's DNX now which I'm not conversant with. Bit of an intuitive leap! |
It appears to be the .NET packaging that throws the XML exception when reading the properties of the zip file. Still trying to work out the root cause, though. The packages might be bad but I don't know for sure yet. |
The structuremap.automocking package was created by using paket.exe instead of NuGet.exe. The standard .NET zip package code is throwing the XML exception trying to read the package properties. There doesn't seem to be a NuGet bug here. It seems to be that the packages are bad. |
Thanks for your investigation. I'll raise it with author. I'll also raise it with the creators of paket.exe You are receiving this because you modified the open/close state. |
@toddm can you please explain what exactly is wrong? The package looks right in Nuget package explorer and also installs fine. |
This is the coreProp.psmdcp file:
looking into other packages I see "coreProperties" instead of "Relationships" nodes. That looks indeed strange. I assume it's built with older paket.exe |
I'm not sure what is causing the error, but here is a way to test it. I created a blank console app and tried this:
It throws the exception when reading the PackageProperties. Some of the earlier versions of the nupkg don't throw. |
One of my projects is failing to pack with the following errors which seems related to:
This has happened after a merge from a different source branch (which still seems to compile and pack properly) However, only a small amount of code has changed with some packages changes in packages.config.
I was running nuget.exe v.3.3 but after reading ##1921 and updating to a new version (NuGet Version: 3.4.3.855:) I am still getting the following error
I cant see any issues with the nuspec file, or the packages.config
NuGet Pack ./Ucas.UnitTests.Common/Ucas.UnitTests.Common.csproj -IncludeReferencedProjects -Verbosity detailed -MSBuildVersion 14 -Build
The build works but the zipping of the files is failing with the following stack trace:
The text was updated successfully, but these errors were encountered: