3

Closed

vs12 offline workspace detected changes picking up packages content

description

Using the vs12 nuget package extension manager <solution> | "enable nuget package restore" option does what you expect it to do, i.e. adds <solution>\.nuget files that result in nuget packages to not be included in the set of version control managed files. This is goodness as I don’t want to store binaries in my version control repository and it enables project import statements that allow packages to be automatically pulled in a clean workspace environment, e.g. new dev/test wks or build machine. The new vs12 team explorer offline workspace support currently includes nuget packages in the pending changes | excluded changes | detected changes set when the above nuget package restore option is enabled. You ultimately do not want this happening so you see a valid, smaller, list of detected changes from which I can review and promote the appropriate files. in a separate thread I was pointed to http://msdn.microsoft.com/en-us/library/tfs/ms245454(v=vs.110).aspx which contained info on a new .tfignore file that controls detected changes behavior allowing you to address this issue, e.g. see option 2 below. I might be reasonable to expect that the enable nuget package restore processing automatically creates that $(SolutionDir)\.tfignore file and the "packages" entry OR adds the entry in cases where that file already exists. 1. use pending changes | excluded changes | detected changes | <select any file under under $(SolutionDir)\packages path and select “ignore by folder (packages)” to generate a <workspace root>\.tfignore file containing a <relative path to $(SolutionDir)\packages> entry and added the file to my pending changeset. 2. since option 1 involved a mgmt. of a x-workspace .tfignore file I move it instead to $(SolutionDir).tfignore and changed the relative path entry to simply be “packages” at which point I had a solution path specific story for having nuget packages folder content excluded from offline workspace detected changes entries.

file attachments

Closed Dec 18, 2013 at 2:21 AM by JeffHandley
With Automatic Package Restore being the promoted way to do package restore now, we are getting out of the game of understanding what you want included/excluded from source control. We're now leaving it completely up to the developer and we'll automatically restore missing packages.

If the developer chooses to use a .tfignore file to ignore the packages folder, that's cool. But we won't introduce any NuGet gestures for doing so.

comments

dotnetjunky wrote Mar 12, 2013 at 12:25 AM

Is it possible that you break up the description into paragraphs for better readability?

robertob wrote Mar 12, 2013 at 1:39 AM

it is broken up by line breaks when I go into edit mode but for some reason it doesn't display that way.

I've attached notepad version of description with line breaks in place.

dotnetjunky wrote Mar 12, 2013 at 5:09 PM

Thanks. Another bad bug from CodePlex

dotnetjunky wrote Mar 12, 2013 at 6:34 PM

Is it correct to say that this .tfignore file is new in VS 2012 and not available to VS 2010?

robertob wrote Mar 12, 2013 at 8:14 PM

yes, i'm told that support for .tfignore files is new in vs12.

dotnetjunky wrote Mar 16, 2013 at 5:59 PM

Moving it to the next release, because this is more of a feature than bug.