Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vbc.exe exited with code -2146232797

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

like image 988
Mike Murphy Avatar asked Nov 12 '15 01:11

Mike Murphy


2 Answers

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
    
like image 85
Brien King Avatar answered Sep 26 '22 01:09

Brien King


I had a large solution that was failing to build after updating to VS 2015 Update 1 RTM. In my case, there were a number of warnings of

Namespace or type specified in the Imports '<import name>' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

that occurred right before "vbc.exe" crashed. Once I removed those extra, unnecessary Imports, the solution build correctly.

like image 33
wags1999 Avatar answered Sep 26 '22 01:09

wags1999