Skip to main content

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

In our previous post we have seen ‘How to Reset Environment Settings in Visual Studio 2017?‘, in this post we will see how to resolve an error for .NET Core compilation error.

Today I have created a new .NET Core web project using Visual Studio 2017 and faced an issue with below two errors

– MSB4063: the “Csc” task could not be initialized with its input parameters.

– MSB4064: The “SharedCompilationId” parameter is not supported by the “Csc” task. Verify the parameter exists on the task, and it is the settable public instance property



Above both errors were showing from file Microsoft.NET.Sdk.Razor.targets which is auto generated

After investigating it deeply I found that it was the existing of the razor code that causes the compilation issue. So I have searched for a issue and found that other people are also found the same issue in the release of new .NET core SDK.

I updated .NET core native SDK but it didn’t work.

After that one of my office colleague suggest me to install compiler library as NuGet package and I have installed “Microsoft.Net.Compilers” into the web project and finally error gone.


So if you are facing any issue like above error related to MSB4063 or MSB4064 just add the NuGet package for it.

Hope it may help someone.

433 total views, no views today