2016-11-28 199 views
1

我一直在编码没有任何问题,我发现我需要更新一些nuget包,并在这个过程中我的C:空间不足。现在,我已经澄清了,我只是获得两个奇怪的错误,而不是我的代码,但:Visual Studio 2015 CSC错误

The "Csc" task could not be initialized with its input parameters.   

The "ChecksumAlgorithm" parameter is not supported by the "Csc" task. Verify the parameter exists on the task, and it is a settable public instance property.  

我试着重新启动VS和我正在更新3 任何人都知道这是怎么回事?

+1

的MSBuild坏了帮助。很难想象它与空间或清理有什么关系。更可能的是Nuget软件包将东西添加到您的项目文件中。再次删除它们以查看是否清除了错误,如有必要请查看项目文件。 ChecksumAlgorithm参数是一个[非常新的](https://github.com/dotnet/roslyn/issues/10451) –

+0

是的,我认为这一切都有点巧合。我最终完成了该项目,并仔细添加了所有的Owin和WebApi软件包,以创建一个干净的应用程序。似乎可行,但有问题的“编译器”软件包被列为可用于在NuGet软件包管理器中更新。我不敢升级。 –

回答

1

我用packages.config库的更新Microsoft.CodeDom.Providers.DotNetCompilerPlatform,Microsoft.Net.Compilers到更高版本

<?xml version="1.0" encoding="utf-8"?> 
<packages> 
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net451" /> 
<package id="Microsoft.Net.Compilers" version="2.0.1" targetFramework="net451" developmentDependency="true" /> 
</packages>