Skip to content
| Marketplace
Sign in
Visual Studio>Tools>IFix

IFix

OsirisTerje

|
4,936 installs
| (6) | Free
Command line tool to fix mefcache, vstestcache, diagnostics, disabling old nuget restore, setting up gitignore and CA0053 error

The IFix tool ensures your gitignore file is up to date, creates skeleton solution files, clears your mef cache, clears your vstest cache, checks nuget consolidation across multiple solutions,  enables/disables userdumps and fuslogs, fixes the ill effects of the old nuget restore and fixes potential CA0053 errors.

Version 2.1 Fix for Windows SSL/TSL issue when running the gitignore command

Version 2.0

Added options for clearing the vstest extension cache, enabling and disabling miscellaneous diagnostics options, including userdumps and fuslogviews. See blogpost http://hermit.no/managing-userdumps-using-ifix/

Version 1.8:

Added new option "nugetconsolidate" which checks for consolidation of nuget packages across multiple solutions. 

Version 1.7:

Added new option "createsln" which creates a skeleton solution containing the git files, a readme.me and a runsettings file.  See this blogpost for details.

Also added support for VS 15 preview to the "mefcache" option.

Version 1.6: 

Added new option  "mefcache" which deletes the Visual Studio mef cache.  This fixes issues when Loading Visual Studio components fails. See thisblogpost for details.  

Version 1.5:

Updated for VS 2015 U1, Gitignore:  bower components no longer reported as missing as they were removed from standard gitignore. 

Version 1.4:

Nugetrestore: Added fix for nuget's solutiondir in csproj files. Seehttps://nuget.codeplex.com/workitem/3701

Gitignore: Added -s for strict mode, which makes the packages pattern compatible with 1.9.5 too. Can be added to both -c -f

Version 1.2:  Support for VB.net.  Supports gitignore for VS2015. Improved/smarter fixing of gitignore. Links to info pages added.

Run the installer, and it adds itself to the system path. It is a command line utility.

  • nugetrestore: Fixes the "results" of the enabling nuget restore context menu command, which is not needed any more since version 2.7 and its msbuild based automatic restore. It just gets in the way and messes up your project files. Since no "disable OLD nuget restore" exist, you can use IFix instead.

Syntax: IFix nugetrestore --check

This checks the current folder and all subfolders if you got any issues. It checks for four issues, and you should be green on all of them. If not, run

IFix nugetrestore --fix

This fixes up the issues. (Note: If you use TFS with a server workspace (or similar system), you might need to check out the files first.)

See blogpost here for more information on using IFix nugetrestore:  

  • gitignore: You don't want binaries in your git repository. This command fixes your gitignore file so it excludes the packages folder for nuget, which is one way binaries can creep in. It can also compare against the online version of the visual studio gitignore file, which most probably is different from the one you have installed with Visual Studio.

If there is an gitignore file present without the packages element, it will be added.  If the whole gitignore is missing, it will download the latest visual studio gitignore file.

Syntax:  IFix gitignore --check   and  IFix gitignore --fix

  • you can also use Add, Replace and Merge.  Add will only add in missing gitignores, Replace will replace the current gitignore with the latest visual studio gitignore file,  Merge will merge the latest in with your current gitignore. 

V1.2:  Added -s / --strict option. Ensure you use the best practice patterns.

-l /--latest option: Default false, as Windows Git is 1.9.4 and need a different syntax than the latest which currently is 2.1.3

See blogpost here for more information on using IFix gitignore.

  • CA0053: This fixes an issue coming from VS/TFS 2010 solutions when running static code analysis, which gives out a CA0053 error. The command has been included in the IFix tool, but is otherwise the same as described in http://geekswithblogs.net/terje/archive/2012/08/18/how-to-fix-the-ca0053-error-in-code-analysis-in.aspx and downloadable from the VS Gallery here/vsgallery/471da13b-d415-4a44-a4e9-a8222316b902

Syntax:  IFix CA0053 --check  or --fix

The code is open sourced, and issues can also be reported on the same site.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft