'Setting in VS 2017 to prevent projects from using Roslyn by default

Whenever I create a new web project using my visual studio 2017, it creates it with a file named packages.config which contains reference for:

Microsoft.CodeDom.Providers.DotNetCompilerPlatform

<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.0" targetFramework="net461" />

At my work we are not allowed to use any nuget packages. So everytime I have to manually go and uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform, which will remove the packages.config file and updates my web.config file.

Is there a way I can prevent visual studio 2017 from doing this when I create a project itself?

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source