Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: Nuget Package updates & Package.config remove issue [3170]

$
0
0
Hey guys

We are having issues with nuget package updates and TFS source control integration. This is causing allot of hassles with our team and making us hesitate in adopting nuget packages fully.

The issue / bug ; instead of updating certain projects "package.config" files, they are being removed from the file system (and marked as deleted within TFS source control...) I can't work out why... behavior appears to be erratic.....I have not isolated a pattern yet....

The behavior we are seeing is the following :
1. Open in solution (approx. 18 projects) in VS.NET 2012
2. Initiate a solution level package update to the latest version via the Package Management Dialog, as described ([here](http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog)).
2.1. The package.config exists and part of the project(s) within said selected solution.
2.2. Theses packages.configs are NOT checked out of TFS yet.
3. Nuget package update occurs, select package.config are removed from project and marked as deleted within TFS and references remain in project updated to current version....
3.1. Obviously, this means that when I check in the solution and project the packages.config will be removed, making future updates (I believe) painful as above project will fall off nuget's radar....
4. I notice this and Undo Check-Out & get this error :
__TF400024: The change on xxx\packages.config cannot be undone because a file already exists at xxx\packages.config. The file must be deleted from disk for the undo to succeed.__
4.1. Interesting, to TFS the file is marked as deleted yet it still resides on my file system?

The output provided by Package Manager listed below does not indicate any issues for the project in which the pacakage.config was removed...

__the VS.NET Package Manager OUTPUT :__
> Updating 'NugetPackageAssemblyA' from version '1.5.18.0' to '1.5.23.0' in project 'CommonUnitTests'.
Removed reference 'AssemblyAA.dll' from project 'CommonUnitTests'
Removed reference 'AssemblyBB.dll' from project 'CommonUnitTests'
Removed reference 'AssemblyCC.dll' from project 'CommonUnitTests'
Removed reference 'NugetPackageAssemblyA.dll' from project 'CommonUnitTests'
Added file 'packages.config'.
Removed file 'packages.config'
Successfully removed 'NugetPackageAssemblyA 1.5.18.0' from CommonUnitTests.
Added reference 'AssemblyAA' to project 'CommonUnitTests'
Added reference 'AssemblyBB' to project 'CommonUnitTests'
Added reference 'AssemblyCC' to project 'CommonUnitTests'
Added reference 'NugetPackageAssemblyA' to project 'CommonUnitTests'
'packages.config' already exists. Skipping...
Successfully added 'NugetPackageAssemblyA 1.5.23.0' to CommonUnitTests.

__DEV. Environment Stats :__
* Nuget Package manager : version 2.2.40116.9051
* Visual Studio 2012 : version 11.051106.01 Update 1

Is there anything I'm missing ????
Thanks
Comments: I'm getting similar issues, Visual Studio online, server workspace with VS2013. Can this issue be reopened, it's not resolved. Latest released version of nuget Updated a package with -reinstall, TFS deleted the package from source control but left the dlls on the disk so the project still builds locally but fails on the build server. I'm getting lots of TFS errors, a selection of them are (in sequence). I wish there were timestamps on these so I could see if it's a timing issue. __Nuget console:__ PM> update-package xxxx.Backend.Lms -reinstall Removing 'Nito.AsyncEx 2.1.3' from xxx.nnn.OnPremise.ILS. Successfully removed 'Nito.AsyncEx 2.1.3' from xxxx.nnnn..OnPremise.ILS. .. .. Adding 'Nito.AsyncEx 2.1.3' to xxxx.nnnn.OnPremise.ILS. Successfully added 'Nito.AsyncEx 2.1.3' to xxxx.nnnn.OnPremise.ILS. etc. __TFS log:__ packages.config has been automatically checked out for editing. The item $/nnn/server/trunk/src/packages already exists. The item $/nnn/server/trunk/src/Packages/Nito.AsyncEx.2.1.3/lib/wp8/Nito.AsyncEx.xml already exists. The item C:\Development\nnn\app\server\trunk\src\Packages\Nito.AsyncEx.2.1.3\Nito.AsyncEx.2.1.3.nupkg could not be found in your workspace, or you do not have permission to access it. The item $/nnn/server/trunk/src/Packages/Nito.AsyncEx.2.1.3 already has pending changes. .. .. TF14092: The item $/nnn/server/trunk/src/Packages/xxxx.Backend.Lms.1.0.0/lib/xxxx.Backend.Lms.Engine.Composition.dll cannot be changed. A parent of this item has a pending delete which must be checked in first. Changeset 2752 successfully checked in.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>