Visual Studio构建错误"csc.exe";退出,代码为-532462766 [英] Visual Studio Build Error "csc.exe" exited with code -532462766

查看:392
本文介绍了Visual Studio构建错误"csc.exe";退出,代码为-532462766的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从站点获取带有.NET示例的csc.exe错误.在Windows 10 x64环境中运行;项目作为Win 8出现,并且需要将其重新定位为8.1.现在,项目无法构建.打开诊断日志记录以获取详细信息.有没有办法获取在构建过程中被调用的完整命令行?

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?

说明 "csc.exe"退出,代码为-532462766. 项目文件C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ Microsoft.CSharp.CurrentVersion.targets 246行

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

推荐答案

Install-Package Microsoft.Net.Compilers -Version 1.2.1 

为我工作!

这篇关于Visual Studio构建错误"csc.exe";退出,代码为-532462766的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆