When I run Update-Package –reinstall on my solution in VS2013 sometimes it ends with an error and the packages.config files in all projects are gone. Why do all my packages.config files get removed?
PM> Update-Package –reinstall
Reinstalling 'Microsoft.AspNet.WebApi 5.2.2' in project 'Bidrik.WebAPI'.
Removing 'Microsoft.AspNet.WebApi 5.2.2' from Bidrik.WebAPI.
Successfully removed 'Microsoft.AspNet.WebApi 5.2.2' from Bidrik.WebAPI.
Uninstalling 'Microsoft.AspNet.WebApi 5.2.2'.
...
Successfully removed 'mongocsharpdriver 1.9.2' from Tiny.Render.Pdf.
Uninstalling 'mongocsharpdriver 1.9.2'.
Successfully uninstalled 'mongocsharpdriver 1.9.2'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.WebHost (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Core (≥ 5.2.2 && < 5.3.0)'.
Attempting to resolve dependency 'Microsoft.AspNet.WebApi.Client (≥ 5.2.2)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.4)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.2.22)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.9)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.14)'.
Update-Package : Already referencing a newer version of 'mongocsharpdriver'.
At line:1 char:15
+ Update-Package <<<< –reinstall
+ CategoryInfo : NotSpecified: (:) [Update-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.UpdatePackageCommand
Related
Unresolvable build extension: Plugin de.saumya.mojo:gem-maven-plugin:1.1.7 or one of its dependencies could not be resolved: Failed to collect dependencies at de.saumya.mojo:gem-maven-plugin:jar:1.1.7 -> rubygems:compass:gem:0.11.7 -> rubygems:sass:gem:[3.1,3.99999]: No versions available for rubygems:sass:gem:[3.1,3.99999] within specified range
The compile dependencies are added to the de.saumya.mojo:gem-maven-plugin
compass - 0.11.7
fssm
sass - 3.1.21
chunky_png
bundler
Upgrading the plugin to the latest version didn't help.
Required compile dependencies are in place.
I could not update the WindowsAzure.Storage NuGet Package. It seems other package that probably depends on it, each time I update that package, I got the same error:
Install failed. Rolling back... Updating 'Microsoft.Data.OData 5.6.2'
to 'Microsoft.Data.OData 5.6.4' failed. Unable to find versions of
'WindowsAzure.MobileServices.Backend.Tables,
WindowsAzure.MobileServices.Backend.Entity' that are compatible with
'Microsoft.Data.OData 5.6.4'.
Why do I get this and how can I resolve this issue?
Why do I get this and how can I resolve this issue?
According to the nuget package of WindowsAzure.Storage, you will find this package have a dependencies is Microsoft.Data.OData (>= 5.6.2):
when you update the package WindowsAzure.Storage, the dependency package Microsoft.Data.OData (>= 5.6.2) also need to upgrade to 5.6.4.
However, the nuget packages WindowsAzure.MobileServices.Backend.Tables and WindowsAzure.MobileServices.Backend.Entity' are dependent on Microsoft.Data.OData (>= 5.6.2):
In this case, NuGet could not update the nuget package WindowsAzure.Storage.
To resolve this issue, you can use the option IgnoreDependencies when you update that package:
update-package WindowsAzure.Storage -IgnoreDependencies
I am running a recently upgraded AEM 6.3 instance. Upgraded from 6.1
After installing AEM-6.3-Service-Pack-1, the com.adobe.cq.export.json bundle cannot resolve the com.fasterxml.jackson.annotation bundle
com.adobe.cq.export.json is version 0.0.12
com.fasterxml.jackson.annotation is version 2.8.4
The "Imported Packages" statement for com.adobe.cq.export.json has "com.fasterxml.jackson.annotation,version=[2.8,3) from com.fasterxml.jackson.core.jackson-annotations"
Give that com.fasterxml.jackson.annotation is version 2.8.4 the import statement seems valid. What am I not seeing?
Error message below:
ERROR [qtp998235579-61] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start
(org.osgi.framework.BundleException: Unable to resolve
com.adobe.cq.export.json [660](R 660.0): missing requirement
[com.adobe.cq.export.json [660](R 660.0)] osgi.wiring.package;
(&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.8.0)(!(version>=3.0.0
))) Unresolved requirements: [[com.adobe.cq.export.json [660](R
660.0)] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.8.0)(!(version>=3.0.0
)))]) org.osgi.framework.BundleException: Unable to resolve
com.adobe.cq.export.json [660](R 660.0): missing requirement
[com.adobe.cq.export.json [660](R 660.0)] osgi.wiring.package;
(&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.8.0)(!(version>=3.0.0
))) Unresolved requirements: [[com.adobe.cq.export.json [660](R
660.0)] osgi.wiring.package; (&(osgi.wiring.package=com.fasterxml.jackson.annotation)(version>=2.8.0)(!(version>=3.0.0
)))]
You might have to add the maven dependencies related to com.adobe.cq.export.json in your POM file.
I have checked this on AEM 6.3.0
http://localhost:4502/system/console/depfinder
Reference: http://labs.6dglobal.com/blog/2012-05-04/new-cq-55-dependency-finder/
I am trying to update a package through the package manager console with a command like this:
update-package Package.Name -version 9.27
However this does not seem to work because the package has a lot of build information behind it like so:
-version 9.27.5146.3567
I would like to get the latest build version of package version 9.27 without constantly selecting the lastest build.
So far I have tried:
update-package Package.Name -version 9.27.*
update-package Package.Name -version 9.27.*.*
update-package Package.Name -version 9.27 -safe
Note: I can't just update to the latest version of Package.Name It has to be specific 9.27.[latest build]
Not sure if there is an easier way, but this one-liner should work:
Update-Package Package.Name -Version ((Find-Package Package.Name -ExactMatch -AllVersions).Versions | where {$_ -like "9.27.*"} | sort | select -Last 1)
CacheCow.Server 0.5.0-alpha (Pre-release) has dependency on CacheCow.Common (≥ 0.5.0) but yet this version is not available on NuGet.
While I'm installing CacheCow.Server 0.5.0, it's failing due to the dependency on Cache.Common 0.5.0
Does anyone has idea when this will be available on NuGet ??
This issue is resolved.
Please refer following URL for the solution steps -
http://byterot.blogspot.in/2013/12/cachecow-0.5.0-alpha-new-feature-breaking-changes-asp-net-web-api.html