I can not compile Visual Studio 2017

1

I am working on a project with .NET and MVC and I can not compile my solution for each project I get this error:

  

C: \ Program Files (x86) \ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ 15.0 \ Bin \ Roslyn \ Microsoft.CSharp.Core.targets (84.5): MSB6006 error: "csc.exe" came out with the code -532462766.

I was working on this project in VS 2015 and they changed my machine (PC), installed the VS 2017 Community and started to throw away that error. Try several things like delete bin and obj , run as administrator, etc and nothing worked.

    
asked by Dario Nicolas Orazi 25.09.2017 в 19:24
source

1 answer

2

You need to install the Nuget Microsoft.Net.Compilers package in your project.

Install-Package Microsoft.Net.Compilers -Version 2.3.2

If you do not leave, check the date of creation of your project in reference to the package, for example, if you installed it before 5/17/2016, this version corresponds to you:

Install-Package Microsoft.Net.Compilers -Version 1.2.1 

Package reference: link

    
answered by 25.09.2017 / 19:51
source