An equivalent project is already persent in the project collection with the path To  load an equival

分手后的思念是犯贱 2022-01-29 01:19 282阅读 0赞

在解决方法中添加一个项目名为productA,但是提示:

The project directory already exists,When a project is created, it must be placed within a new folder of the same name ,
Choose a different name or location for your project.

项目目录已经存在,当创建项目时,必须将其放置在同名的新文件夹中,为项目选择其他名称或位置。

这是因为之前是有一个productA在该目录下,因为某种原因从项目中删除掉了,但是代码还在改目录下

因为项目project是以文件夹的形式存在的,也就是说\src\product 下还存在一个 productA的文件夹

直接删掉 productA的文件夹,再重新尝试项目new project

但是报了这个错误:

An equivalent project (a project with the same global properties and tools version) is already persent in the project collection with the path D:\trunk\src\product\productA.csproj”. To load an equivalent into this project colleciton ,unload this project first.

一个等效的项目(一个具有相同全局属性的项目和工具版本)已经在项目集合中与路径 D:\trunk\src\product\productA.csproj 一起使用。要将等效项加载到此项目集合中,请先卸载此项目。

很奇怪啊,我本地代码也没了,solution中也删除了,为什么还是提示有相同项目
于是查看.sln文件,看了下也没问题

但是还是一直提示该错误,除非添加一个名字不为projectA的项目

后来重启了下VS,就可以了。。。

发表评论

表情:
评论列表 (有 0 条评论,282人围观)

还没有评论,来说两句吧...

相关阅读