I’ve just faced the same problem. When you create a new web project, two nuget packages automatically added to your project. If you remove them, your problem should be solved. Package names are: “Microsoft.CodeDom.Providers.DotNetCompilerPlatform” and “Microsoft.Net.Compilers“.
More Related Contents:
- Running two projects at once in Visual Studio
- Multiple Errors Installing Visual Studio 2015 Community Edition
- How do I diagnose and fix a Visual Studio (for example 2015, 2017) crash?
- Visual Studio 2015 or 2017 shows IntelliSense errors but solution compiles
- Packages not loading after installing Visual Studio 2015 RTM
- NuGet Packages are missing
- Visual Studio 2015 installer hangs during install?
- How do I use Qt in my Visual Studio 2015 projects?
- ESLint support Visual studio 2017
- class name and method name dropdown list is missing (visual studio setting)
- How to fix “Internal Diagnostics Hub Exception” in VS 2015 Update 1?
- Customise “Light Bulb” Quick Action Rules
- Error Installing Visual Studio 2015 Enterprise Update 1 with Team Explorer
- Why does intellisense and code suggestion stop working when Visual Studio is open?
- App.Config Transformation for projects which are not Web Projects in Visual Studio?
- What are the obj and bin folders (created by Visual Studio) used for?
- Slow debugging issue in Visual Studio
- How do you auto format code in Visual Studio?
- How do you tell the Visual Studio project type from an existing Visual Studio project
- HttpContext.Current.User.Identity.Name is Empty
- Project builds but can’t publish
- Visual Studio Git Source Control without Git for Windows or Github extension
- Removing all unused references from a project in Visual Studio projects
- Changing Ctrl + Tab behavior for moving between documents in Visual Studio
- How to fix DNX/DNVM in Visual Studio 2015?
- Is it possible to create a Windows 8 Store App from Visual Studio 2013?
- Visual Studio open files question
- Recommended number of projects in Visual Studio Solution
- 500 Error Running Visual Studio ASP.NET Unit Test
- Structuring projects & dependencies of large winforms applications in C#