vbc.exe exited with code -2146232797

Mike Murphy picture Mike Murphy · Nov 12, 2015 · Viewed 8k times · Source

I am moving a solution with multiple projects to VS 2015. The base project builds just fine in VS 2013. But when I try to build in VS 2015 I get the error below.

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.VisualBasic.Core.targets(56,5): error MSB6006: "vbc.exe" exited with code -2146232797.

Need help please

Answer

Brien King picture Brien King · Dec 4, 2015

I talked with MS Tech Support. It's a confirmed bug in the VB compiler. They say it will be fixed in the next update.

In the mean time the work around is to install a Nuget package.

Please follow these instructions to install Nuget package.

  1. Open the affected project in Visual Studio

  2. Open the Package Manager Console (Tools -> NuGet Package Manager -> Package Manager Console)

  3. Run:

    Install-package Microsoft.Net.Compilers -version 1.1.1