Wednesday, July 22, 2015

visual studio replace namespace in solution and project

visual studio replace namespace in solution and project

You need to replace 'Nop' with 'whatever'
      in text based file( .sln  .csproj  .cs ),
      in file name
      in folder name




1) replace 'Nop' with 'eBuild' in all text based file( .sln  .csproj  .cs )
    use Notepad++  , search -> find in file -> specify the directory to root folder of entire solution.
    Do not check match whole word only, only check match case, filter should be *.*


2) replace file name and folder name that has Nop to eBuild
use Far  --> Find

--> Rename



3) Replace folder name with win 7 x folder



You have to do above multiple 4 times for each for library, plugin, presentation, test folder 
  Because it does not replace sub-directory, it only rename the current directory.



  RhinoMocks is not install properly. So use Nuget to uninstall it and re-install it will works.

No comments: