public
Created

Fix for Microsoft.BCL.Build target files and nuget package restore and git

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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

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"

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

This has now been fixed in the latest version of nuget

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.