use msbuild instead of visual studio code example Example: visual studio msbuild c# netframwork sln <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>