当前位置:网站首页>The project file '' has been renamed or is no longer in the solution, and the source control provider associated with the solution could not be found - two engineering problems
The project file '' has been renamed or is no longer in the solution, and the source control provider associated with the solution could not be found - two engineering problems
2022-04-23 12:59:00 【CS student】
Solutions to two engineering problems
The problem background
IDE:VS 2010 pro ;
Project type :MFC;
Solution : Multi project solutions ;
Version control tools :SVN;
Problem description
The project of the laboratory is to use MFC The engineering of , First of all, I start from SVN Server check out Complete project on , The first question I met was “ The source control provider associated with the solution could not be found ”;
After solving the first problem, try to debug the main project , The second problem —— Project documents “ ” Has been renamed or is no longer in the solution ; Then try other projects , An error window will pop up when it is found : Project documents “ ” Has been renamed or is no longer in the solution . After debugging, it doesn't run (CTRL+F5), The error window still pops up .
Solution process and method
The first question is —— The source control provider associated with the solution could not be found
It's literally , No source control solution found , I found some solutions on the Internet , Finally, I decided to try to set source control to none . The operation method is : Click... In the upper menu bar : Tools –> Options –>Source Control–> The current source code control plug-in selection “ nothing ”. But it doesn't really solve my problem , Because I want to use management tools SVN, Instead of not using , But I came up with this method , Why does my source control plug-in only have “ nothing ” and “visual studio team fundatation server” Two options , I installed it SVN ah .
Later, I searched on the Internet , The original installation was just SVN, This is a SVN The main body of , Mainly used to manage code , But this subject is not related VS, Also install plug-ins AnkhSvn. After installed , The source control plug-in can choose AnkhSVN 了 .
The second question is —— Project documents “ ” Has been renamed or is no longer in the solution
There are many ways to query on the Internet , Many methods say that all projects in the solution are removed , Then re add the project to the solution or remove the reference of the project and re add . But there are two reasons why I haven't dared to try , First, I used it for the first time SVN, Many blogs don't have a picture for a paragraph , Although I can understand , But I'm also afraid that my operation will cause unpredictable problems and trouble the team ( In fact, as long as you don't submit the version , How to operate locally will not affect the code on the server ); Second, most methods are copied from each other , I remember several blog words without change , Nor does it explain the principle , The effectiveness of the method is in doubt .
Finally decided to go bing Search on the International Edition , Sure enough stackoverflow, After reading a few articles, I can understand , I also understand the principle . Simply speaking , In a multi project solution , There may be a reference relationship between various projects ,IDE How to understand references between projects ? Each item has an identity (ID), Similar to this form ,9CF2493A-0C79-88E7-12ED-7DFAEBA8535B, You can put .sln Open and view each item with a text editor ID. The reason for this problem is the reference in the project ID With the actual situation of the project ID Different , My solution is very simple, which is to combine the two methods , First remove all projects from the solution , Remember to remove all , I can't even remove parts , So removing it all must be the safest way . Delete all and add existing projects to the solution again , Adding a project is immediately followed by generating the project . If the project does not have a referenced project , There will be no problem with generation , If there is a referenced project , There will still be “ Project documents “ ” Has been renamed or is no longer in the solution ” This problem , Because of the... Of the referenced project ID Not updated yet , So we have to Delete reference , Be sure to remember which references are there before deleting , Add the reference again . Until all projects are added and built .
Because it's too troublesome to type the secret related screenshots of the project , Let me dictate the removal of items 、 Add the project 、 Methods of deleting and adding references .
- Remove items : Left click the item to be removed , Then right-click and select remove... In the pop-up menu , You can also press delete key
- Add the project : Right click on the solution , Select an existing item from the pop-up menu , Click the project file to be added in the pop-up file dialog box (.vcproj)
- Delete / Add reference : Right click on the item , Select reference... From the pop-up menu , Just do the corresponding operation according to the button
版权声明
本文为[CS student]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230613588985.html
边栏推荐
- After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect
- 有趣的IDEA插件推荐,给你的开发工作增添色彩
- [csnote] ER diagram
- Realize several "Postures" in which a box is horizontally and vertically centered in the parent box
- 拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
- Introduction to servlet listener & filter
- Summary of JVM knowledge points - continuously updated
- Servlet监听器&过滤器介绍
- Jupiter notebook installation
- 1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database
猜你喜欢
Deploying MySQL in cloud native kubesphere
Free and open source agricultural Internet of things cloud platform (version: 3.0.1)
将新增和编辑的数据同步更新到列表
Pytorch: a pit about the implementation of gradreverselayer
[vulnhub range] - DC2
Object. The disorder of key value array after keys
Image attribute of input: type attribute of fashion cloud learning -h5
Idea的src子文件下无法创建servlet
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
Can I take the CPDA data analyst certificate for 0 foundation
随机推荐
Get the punch in record of nailing attendance machine
Servlet监听器&过滤器介绍
Record Alibaba cloud server mining program processing
STM32 control stepper motor (ULN2003 + 28byj)
NPDP | how can product managers not be excluded by programmers?
SSL certificate refund instructions
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
风尚云网学习-h5的input:type属性的image属性
内核错误: No rule to make target ‘debian/canonical-certs.pem‘, needed by ‘certs/x509_certificate_list‘
Read the data in Presto through sparksql and save it to Clickhouse
SSM框架系列——注解开发day2-2
【csnote】ER图
Free and open source intelligent charging pile SaaS cloud platform of Internet of things
SSM framework series - JUnit unit test optimization day2-3
Go language array operation
4.DRF 权限&访问频率&过滤&排序
The El table horizontal scroll bar is fixed at the bottom of the visual window
Luogu p3236 [hnoi2014] picture frame solution
How to click an object to play an animation
Common problems of unity (1)