Author Archives: WUDI

Change Default Path for cmd.exe

Step 1 search on star menu, type ‘command’ click on ‘Open file location’. Step 2 right click on command in opened folder Now in ‘Start in’ field, put path you want.

Posted in Uncategorized | Comments Off on Change Default Path for cmd.exe

How to turn ‘Not Run Tests’ into normal test in Visual Studio

all unit tests in newly added Unit Test Project are not appeared in ‘Test Explorer’ or those unit tests are marked as “Not Run Tests” and never run it no matter how hard you pressure visual studio to run. do … Continue reading

Posted in Uncategorized | Comments Off on How to turn ‘Not Run Tests’ into normal test in Visual Studio

TypeScript Define

process.env type define add following code before `process.env.NODE_ENV` 1 2 3 4 5 6 7 declare var process : { env: { NODE_ENV: string } }   process.env.NODE_ENVdeclare var process : { env: { NODE_ENV: string } } process.env.NODE_ENV define … Continue reading

Posted in Javascript | Comments Off on TypeScript Define

C# @keyword as escape of keyword

it is very common to see that C# code use @keyword such as @this to escape ‘this’ as keyword to use it like a local variable. 1 2 3 4 5 6 7 8 9 class @class { public static … Continue reading

Posted in C# | Comments Off on C# @keyword as escape of keyword

“corecrt.h”: No such file or directory

if %include% is lost, VS could not find header. add sdk C:\Program Files (x86)\Windows Kits\10\Include into %include% path to fix issue.

Posted in vc++ | Comments Off on “corecrt.h”: No such file or directory

Operation Failed An exception was thrown while initializing part “NuGet.PackageManagement.VisualStudio.VSSolutionManager”. GetFullVsVersionString must be called on the UI thread.

Visual Studio 2015 update 3 could throw this exception. the way to fix it 1. open vs2015 and don’t open any project. 2. go to menu ‘Tools’ -> Nuget Package Manager -> Package Manager Setting 3. once you see dialog … Continue reading

Posted in C# | Comments Off on Operation Failed An exception was thrown while initializing part “NuGet.PackageManagement.VisualStudio.VSSolutionManager”. GetFullVsVersionString must be called on the UI thread.

PriorityQueue in C#

PriorityQueue is a binary heap. Heap is commonly used algorithm. in some area such Graph shortest path and minimum spanning tree, it is very helpful. both Java and C++ has PriorityQueue, but C# don’t have. Here is a version of … Continue reading

Posted in Algorithm | Comments Off on PriorityQueue in C#

WCF – How to publish WCF into IIS

1. copy web.config 2. copy service.svc 3. copy dll and pdb file into bin folder 4. in iis, setup a new web instance, and point physical folder address into published folder setup .net support version correctly for web instance. 5. … Continue reading

Posted in Uncategorized | Comments Off on WCF – How to publish WCF into IIS

Interface out T vs T

The out keyword in generics is used to denote that the type T in the interface is covariant. check following code. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 … Continue reading

Posted in Uncategorized | Comments Off on Interface out T vs T

How to set Visual Studio support C# 7 features.

open visual studio and click on project and choose ‘Properties’ in ‘Build’ tab, choose ‘Advanced…’, check screen dump in language version, in dropdown list showing in screen dump, there is not ‘C#7’ and ‘C# 7.2’ for visual studio 2015 in … Continue reading

Posted in Uncategorized | Comments Off on How to set Visual Studio support C# 7 features.