VS 2017中设置防止项目默认使用Roslyn
每当我使用 Visual Studio 2017 创建新的 Web 项目时,它都会使用名为 packages.config 的文件创建它,该文件包含以下参考:
Microsoft.CodeDom.Providers.DotNetCompilerPlatform
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.0" targetFramework="net461" />
在我的工作中,我们不允许使用任何 nuget 包。 因此,每次我都必须手动卸载 Microsoft.CodeDom.Providers.DotNetCompilerPlatform,这将删除 packages.config 文件并更新我的 web.config 文件。
当我创建项目本身时,有没有办法阻止 Visual Studio 2017 执行此操作?
谢谢你!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论