无法从项目中删除项目 [英] Cannot remove items from project

查看:75
本文介绍了无法从项目中删除项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否还没有删除功能?

我只能选择删除(从我的驱动器中永久删除项目)或从项目中排除(反过来继续引用该项目)。



我在这个项目中不再需要代码,但在其他项目中需要,但是没有"从项目中删除.cs文件"。功能?

解决方案

朋友,



欢迎来到MSDN论坛。



根据您的描述,我尝试使用"从项目中排除"删除.cs文件,但似乎我无法重现您的问题。你是什​​么意思"哪个继续保留参考
到项目
"?



注意:使用"从项目中排除"可以从项目中删除该项目,该项目可以与项目取消关联。


使用"删除"命令可以从解决方案中删除项目



For例如,我创建了一个项目和一个class.cs文件。我添加了一个使用它的引用,如下所示:





然后我排除该文件并将其添加到其他项目,参考不起作用。






I使用最新的VS 2017企业版,如果它不适合你,也许你可以修复你的VS并再次检查。


如果我误解了你的问题,请分享你的vs版本和详细步骤来repr oduce这个问题,我会在我这边测试一下,谢谢。



最好的问候,


萨拉


Is there not a remove function anymore?
I can only chose delete (deletes item permanently from my drive) or exclude from project (which in turn keeps reference to the item).

I have code I no longer need in this project, but need in other projects, yet there is no "remove .cs file from project" feature?

解决方案

Hi friend,

Welcome to MSDN forum.

According to your description, I have a try to remove a .cs file by using "Exclude From Project", but it seems I can’t reproduce your issue. What do you mean "which in turn keeps reference to the item"?

Note: Using "Exclude From Project" can remove the item from the project and the item can be disassociated from a project.

Using "Remove" command can remove the project from the solution

For example, I create a project and a class.cs file. I add a reference to use it as below:

Then I exclude the file and add it to other project, the reference does not work.

I used the latest VS 2017 Enterprise version, if it not works in your side, maybe you could repair your VS and check it again.

If I misunderstand your question, please share your vs version and the detail steps to reproduce this issue, I will test it in my side, thanks.

Best Regards,

Sara


这篇关于无法从项目中删除项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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