Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Build Error "csc.exe" exited with code -532462766

Getting a csc.exe error with the .NET samples from the site. Running in a Windows 10 x64 environment; projects came in as Win 8 and were required to be retargeted to 8.1. Now the projects don't build. Turned on diagnostics logging to get the detail. Is there a way to get the full command line that is being invoked on build?

Description "csc.exe" exited with code -532462766. Project File C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets Line 246

like image 456
dr3x Avatar asked Dec 02 '15 03:12

dr3x


2 Answers

Install-Package Microsoft.Net.Compilers -Version 1.2.1 

Worked for me!

like image 119
yeulucay Avatar answered Nov 04 '22 02:11

yeulucay


This error can be generated by NuGet packages when some .dll are not available.

Delete packages folder and compile. It should restore all the NuGet packages.

like image 42
Tonatio Avatar answered Nov 04 '22 02:11

Tonatio