Friday, February 22, 2019
Tuesday, February 12, 2019
Visual studio Code
Remove duplicated lines in Visual Studio Code super!
https://stackoverflow.com/questions/37992493/how-to-remove-duplicate-lines-in-visual-studio-code/45829605
- Control+F
- Toggle "Replace mode"
- Toggle "Use Regular Expression" (the icon with the
.*symbol) - In the search field, type
^(.*)(\n\1)+$ - In the "replace with" field, type
$1
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, December 6, 2018
EPiServer - Model item passed into the dictionary is of "proxy" but requires different model
Solution: Rename the View! It cannot be the same as model somehow.
Or:
From: ~/Views/Shared/Blocks/ConsultantBlock.cshtml
To: ~/Views/ConsultantBlock/index.cshtml
Similar problem:
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
Commands:
nvm list.
Example: nvm install 8.11.2
nvm use 8.11.2
DONE
Thursday, October 11, 2018
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.
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.
Subscribe to:
Posts (Atom)

