SCC integration for repositories.config

Dec 24, 2010 at 2:29 AM
PM> uninstall-package tracer
Uninstall-Package : Access to the path '...repositories.config' is denied.
At line:1 char:18
+ uninstall-package <<<< tracer
+ CategoryInfo : NotSpecified: (:) [Uninstall-Package], UnauthorizedAccessException
+ FullyQualifiedErrorId : NuGet.VisualStudio.Cmdlets.UninstallPackageCmdlet
I have everything checked-in source control, and it seems like nuget is not checking out that config file automatically...

/kzu

--
Daniel Cazzulino | Developer Lead | MS MVP | Clarius Consulting | +1 425.329.3471
Dec 24, 2010 at 4:51 AM

Hmmm, that's not good.  Maybe we're not going through the right layer when dealing with that file?  I think we're normally able to check out files under packages, and this file should be treated the same way.  Hopefully dfowler can comment as he knows this code best.

Developer
Dec 24, 2010 at 2:19 PM

Yes we are going through the wrong layer here. I'll open a bug for this.

Developer
Dec 24, 2010 at 2:19 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Dec 24, 2010 at 7:07 PM

So I take it that the steps to repro this issue are:

  • Use NuGet to install some packages in a project in TFS
  • Manually check in the packages folder and repositoty.config file to TFS
  • Now uninstall all the packages
  • On the last package uninstall, NuGet will try to delete repository.config, and fail because if this issue

Is that correct?

Dec 24, 2010 at 8:45 PM

Yup

from android nexus1

On Dec 24, 2010 4:07 PM, "davidebbo" <notifications@codeplex.com> wrote:
> From: davidebbo
>
> So I take it that the steps to repro this issue are:Use NuGet to install some packages in a project in TFS Manually check in the packages folder and repositoty.config file to TFS Now uninstall all the packages On the last package uninstall, NuGet will try to delete repository.config, and fail because if this issueIs that correct?
>
>
Developer
Dec 28, 2010 at 8:54 PM

@dcazzulino

I checked in a fix for this, could you test it out?

Dec 30, 2010 at 5:12 AM

Sure. Are the bits public or should I use a CI build?

/kzu from galaxy tab

On Dec 28, 2010 5:54 PM, "dfowler" <notifications@codeplex.com> wrote:
> From: dfowler
>
> @dcazzulinoI checked in a fix for this, could you test it out?
>
>
Developer
Dec 30, 2010 at 5:31 AM
Edited Dec 30, 2010 at 7:29 AM

CI Build