Skip to content

Instantly share code, notes, and snippets.

@Bigjono
Last active April 12, 2016 22:35
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Bigjono/5917578 to your computer and use it in GitHub Desktop.
Save Bigjono/5917578 to your computer and use it in GitHub Desktop.
Fix for Microsoft.BCL.Build target files and nuget package restore and git
Open .gitignore
add the following line
!packages/Microsoft.Bcl.Build*/tools/Microsoft.Bcl.Build.targets
save changes and commit
open up git bash for your repo
git add C:/pathtoyoursolution/packages/Microsoft.Bcl.Build.1.0.7/tools/Microsoft.Bcl.Build.targets -f
** replace the version number 1.0.7 with your current version number of bcl build
commit changes
good to go
@victorwoo
Copy link

The two lines doesn't work together:

packages/
!packages/Microsoft.Bcl.Build*/tools/Microsoft.Bcl.Build.targets

git still ignore Microsoft.Bcl.Build.targets unless manually add by "git add xxx -f"

@Bigjono
Copy link
Author

Bigjono commented Aug 19, 2013

you have to use the -f or you will en up with your packages in the repo, its a pain but works :)

@Bigjono
Copy link
Author

Bigjono commented Sep 11, 2013

This has now been fixed in the latest version of nuget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment