VS2017 community鍒涘缓妯℃澘閿欒 The document cannot be opened. It has been renamed, deleted or moved
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS2017 community鍒涘缓妯℃澘閿欒 The document cannot be opened. It has been renamed, deleted or moved相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/mis' title='mis'>mis
files star 閿欒鎻愮ず add doc 鍑虹幇 name Edito褰撴垜浣跨敤鎴戣嚜宸卞垱寤虹殑妯℃澘鐢熸垚宸ョ▼锛屾墦寮€鏂囦欢鏃讹紝浼氬嚭鐜扳€淭he document cannot be opened. It has been renamed, deleted or moved鈥濋敊璇彁绀恒€?/p>
濂藉儚杩欎釜bug鍙湪community鐗堟湰涓€?/p>
杩欐椂鎴戜滑闇€瑕佹墜宸ュ幓淇敼妯℃澘鏂囦欢
Here鈥榮 how I solved this issue:
- Follow your steps 1 to 6
- At step 7 make sure to uncheck "Automatically import the template into Visual Studio"
- Click Finish
- Extract the just created zip file of your template into a folder of your choice
- Now copy all your source (.cpp) and header (.h) files from your original SFML project to the extracted folder
- In this folder look for MyTemplate.vstemplate and open it in a text editor
- You will see a TemplateData and TemplateContent section
- Inside the TemplateData section add the line <CreateInPlace>true</CreateInPlace>
- Inside the TemplateContent section add for each copied file from step 5 the lines
<ProjectItem ReplaceParameters="false" TargetFileName="filename.cpp">filename.cpp</ProjectItem> or
<ProjectItem ReplaceParameters="false" TargetFileName="filename.h">filename.h</ProjectItem>- Now put all files back into a zip file
- Copy your new zip file to Visual Studio 2015TemplatesProjectTemplates folder
- Restart Visual Studio and open a new project from your project template
鍙傝€冭嚜锛歨ttps://social.msdn.microsoft.com/Forums/vstudio/en-US/24b38dbb-c445-47a4-a05b-c9c12cfa6a6b/visual-studio-community-2015-source-file-missing-from-template?forum=vssetup
以上是关于VS2017 community鍒涘缓妯℃澘閿欒 The document cannot be opened. It has been renamed, deleted or moved的主要内容,如果未能解决你的问题,请参考以下文章