无法在Visual Studio Enterprise 2015和2017中删除roslyn文件 [英] Unable to delete roslyn files in Visual Studio Enterprise 2015 and 2017

查看:218
本文介绍了无法在Visual Studio Enterprise 2015和2017中删除roslyn文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#开发一个Web项目,



  • 运行程序后。
  • 有些文件仍然存在在Roslyn目录中。 

目录中保留的这些文件在下次运行项目时会出错。



  • 如何确保删除这些文件以便我可以毫无问题地运行项目?

Reinaldo

解决方案

嗨Reinaldo,


欢迎来到MSDN论坛。


请参阅您的描述,您的问题是关于ASP.NET Web应用程序开发。由于我们的论坛是讨论VS IDE,请将
重定向到这个适当的论坛: https://forums.asp.net/寻求更专业的支持,谢谢你的理解。


同时,我试图搜索这个问题并在我身边测试它,创建一个新的Web应用程序并右键单击项目名称并选择'Manage Nuget
套餐......'。手动卸载两个nuget包:
" Microsoft.CodeDom.Providers.DotNetCompilerPlatform "
和" Microsoft.Net.Compilers ",然后发布它,它将不要创建'roslyn'文件夹,请检查以下类似问题:
< a href ="https://stackoverflow.com/questions/32282880/publish-website-without-roslyn">发布没有roslyn的网站


< p style ="background:white; margin-bottom:12pt"> 如果不是您想要的预期结果,请重定向到我提到的上述合适的论坛,你会得到更好的支持,
有一个美好的一天
J




祝你好运,


Sara


I am developing a web project in C#,

  • After running the program.
  • There are files that remains in the Roslyn directory. 

These files that remains in the directory gives me error on the next time I run the project.

  • How can I make sure that this files are deleted so I can run the project without any problems?

Reinaldo

解决方案

Hi Reinaldo,

Welcome to the MSDN forum.

Refer to your description, your issue is about the ASP.NET Web application development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.asp.net/ to seek for a more professional support, thank you for your understanding.

Meanwhile, I tried to search this issue and test it on my side, create a new web application and right click the project name and choose ‘Manage Nuget Packages…’. Manually uninstall the two nuget packages: "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" and "Microsoft.Net.Compilers", then publish it, it will not create the folder ‘roslyn’, please check this similar issue: Publish website without roslyn

If it is not the expected result that you want, please redirect to the above suitable forum that I mentioned, you will get a better support from there, have a nice day J

Best regards,

Sara


这篇关于无法在Visual Studio Enterprise 2015和2017中删除roslyn文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆