Tuesday, February 12, 2019

Visual studio Code

Remove duplicated lines in Visual Studio Code super!

  1. Control+F
  2. Toggle "Replace mode"
  3. Toggle "Use Regular Expression" (the icon with the .* symbol)
  4. In the search field, type ^(.*)(\n\1)+$
  5. In the "replace with" field, type $1
  6. Click the Replace All button ("Replace All").

https://stackoverflow.com/questions/37992493/how-to-remove-duplicate-lines-in-visual-studio-code/45829605

Thursday, January 17, 2019

EPiServer - Could not load file or assembly 'StructureMap.Web, Version=1.0.0.0

Could not load file or assembly 'StructureMap.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


Solution:
The StructureMap-reference had a path to "..\packages\structuremap.web-signed.3.1.6.191\lib\net40\StructureMap.Web.dll"
I removed reference and added a new one to "..\packages\structuremap.web.4.0.0.315\lib\net40\StructureMap.Web.dll"

The references should look like this:
Structurmap.web is either missing or refering to the old 1.0 so replace this...

Thursday, November 29, 2018

Change Node.js Version Easy

Install nvm.

Commands:
nvm list.

Example: nvm install 8.11.2
nvm use 8.11.2
DONE

Wednesday, October 3, 2018

Nuget - Complete reinstall of packages

First close the solution and remove the /packages folder in root.
When Nuget finds out it doesn't have anything in this folder anymore we will ask it to reinstall everything this often fixes problems with bad references gone missing between projects.

In the nuget console type > Update-Package -Reinstall and wait.