System.IO.FileLoadException: Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference.

Solution:-  If you use .NET Core tools preview 2 (e.g., VS2015 Update 3), then everything works fine on both .NET Framework 4.5.1 and 4.6.1. If you use .NET Core tools preview 3 (e.g., VS2017RC), then it works fine on .NET Framework 4.5.1, but fails with… Read More

RuntimeIdentifier must be set for .NETFramework executables. Consider RuntimeIdentifier=win7-x86 or RuntimeIdentifier=win7-x64

Solution:- Edit .csproj file add <RuntimeIdentifier>win7-x86</RuntimeIdentifier>   <PropertyGroup> <TargetFramework>net451</TargetFramework> <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked> <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>     <RuntimeIdentifier>win7-x86</RuntimeIdentifier> </PropertyGroup>