Dec 11

Tell both NuGet and TFS to ignore the packages folder

Here’s the deal: We have to tell both NuGet and TFS to ignore the packages, because NuGet is trying to do source-control related stuff that it absolutely shouldn’t be doing (bad form, Microsoft!). So you have to do two things.

First, add a file named .tfignore to the solution folder (note the lack of s after the tf). It’s contents should be as follows:

The first three lines tell TFS to ignore your packages folder, the other lines are to exclude other special folders. You need to explicitly include repositories.config as it’s part of the NuGet stuff I outline below. (Double negative in exclude list above.)

OK, so now thanks to our .tfignore file, TFS is ignoring your packages and other special folders. Everything is fine, right? WRONG, because NuGet is mucking around with your source control and adding the packages to your pending changes. So now let’s tell NuGet to stop doing this.

  1. Create a physical folder called “.nuget” {tip in Windows Explorer type “.nuget.” as folder name to create it}.
  2. Add a virtual folder called “.nuget” in the root of your solution folder.
  3. Now, create a file called “NuGet.config”, in the physical folder then add it to the virtual folder.
    It’s contents should look like this:

And now your packages should stay out of source control. Just remember to add the “nuget.config”, “nuget.targets” and “.tfingore” files to source control so they never get lost.

1. Add the folder using Source Control Explorer; right-click the solution->Add folder->.nuget
2. The nuget.config file MUST go in the .nuget folder. Even if you already have a nuget.config file in the root of your solution folder (because, say, your company has an internal nuget feed). Yes, that means you’ll have two nuget.config files, one in the .nuget folder and one in the solution root. My testing indicates that’s the way it has to be. Additionally, if you do have a custom feed, ensure that you have both the custom feed and as keys in the Nuget.config file, or sometimes TFS will randomly decide it can’t restore the packages.

Here’s some documentation for you:

 4,265 total views,  1 views today

Mar 09

Completely clear All event logs

Open an elevated PowerShell console

wevtutil el | Foreach-Object {Write-Host “Clearing $_”; wevtutil cl “$_”}

 2,595 total views,  2 views today

Mar 09

Recursively delete all .svn folders

Direct in CMD Prompt
FOR /F “tokens=*” %G IN (‘DIR /B /AD /S *.svn*’) DO RMDIR /S /Q “%G”

In Batch file
FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S *.svn*’) DO RMDIR /S /Q “%%G”

 1,786 total views,  4 views today

Sep 16

Browser Info

Chose a browser Browse Happy

HTML5 Test here

Acid Test here

 2,912 total views,  4 views today

Sep 15

Enable Hidden Administrator


net user administrator /active:yes


net user administrator /active:no

 1,478 total views,  2 views today

Sep 01

How to enable the F8 key to start Safe Mode in Windows 8

To enable the F8 key in Windows 8; Open an elevated command prompt and enter the following command:

bcdedit /set {default} bootmenupolicy legacy


If you would like to disable the F8 key and go back to the original Windows 8 setting; Open an elevated command prompt and enter the following command:

bcdedit /set {default} bootmenupolicy standard

 1,603 total views,  2 views today

Aug 05

Office 2010 Direct Download Links




 1,693 total views,  2 views today

Aug 05

Take Ownership of Folder and Files

Take Ownership

takeown /f {folder} /r /d y
icacls {folder} /grant administrators:f /t

Prevent S.V.I. from being used on External HDD

rmdir "System Volume information" /S /Q
echo placeholder > "System Volume Information"


 2,088 total views,  6 views today

Apr 09

BIOS Recovery Keys

Starting a recovery via the BIOS recovery partition usually means that you have to press one of the “F” keys (such as F1-F12) the moment after you hit the power button. These should be:

  • Acer – Alt + F10
  • Asus – F9
  • Dell/Alienware – F8
  • HP – F11
  • Lenovo – F11
  • MSI – F3
  • Samsung – F4
  • Sony – F10
  • Toshiba – 0 (not numpad) while turning on, release key when Toshiba logo appears

 1,506 total views,  2 views today

Jan 31

SharePoint 2010 – Note Field – Rich Text Warning

In one of our SharePoint 2010 sites we have a note field with Rich Text enabled and Rich Text Mode set to Full Html.

We found out today that SharePoint 2010 automatically converts links (a tags) in the above case by “helpfully” removing the site name


<a href=’http://server/site/library/document.docx’>link</a>


<a href=’/site/library/document.docx’>link</a>

in our case we were using this in the body of an email to 3rd parties and the removal of the server gave us grief.

 1,662 total views,  1 views today

Older posts «