Answers » Categories » Computers & Technology

Why am I getting error: Could not find file 'bin\Microsoft. CodeDom.Providers.DotNetCompilerPlatform.xml?

Why am I getting the following error when Publishing a project in Visual Studio 2017: Error Copying file bin\Microsoft. CodeDom.Providers.DotNetCompilerPlatform.xml to obj\Release\Package\PackageTmp\bin\Microsoft. CodeDom.Providers.DotNetCompilerPlatform.xml failed. Could not find file 'bin\Microsoft. CodeDom.Providers.DotNetCompilerPlatform.xml'.



1 Answer

0 

You may need to update a few things...

In Visual Studio 2017 -> open your project -> then in the Solution Explorer (in your project) right-click on "References" -> then click "Manage Nu-Get Packages -> then in the Nuget window you will want to update "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" and "Microsoft.Net.Compilers" to the latest versions, which are currently versions: v1.0.5 and v2.2.0 respectively.

If you continue getting an error, go into your Projects "bin" folder in the Solution Explorer and look for any errors... you may need to delete "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" from the bin folder.

Answer this question

by Anonymous - Already have an account? Login now!
Your Name:  

Your Answer:  
Source(s): (optional)

Enter the text you see in the image below
What do you see?
Can't read the image? View a new one.
Your answer will appear after being approved.

Ask your own question