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:

    1. Follow your steps 1 to 6
    2. At step 7 make sure to uncheck "Automatically import the template into Visual Studio"
    3. Click Finish
    4. Extract the just created zip file of your template into a folder of your choice
    5. Now copy all your source (.cpp) and header (.h) files from your original SFML project to the extracted folder
    6. In this folder look for MyTemplate.vstemplate and open it in a text editor
    7. You will see a TemplateData and TemplateContent section
    8. Inside the TemplateData section add the line <CreateInPlace>true</CreateInPlace>
    9. 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>
    10. Now put all files back into a zip file
    11. Copy your new zip file to Visual Studio 2015TemplatesProjectTemplates folder
    12. 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的主要内容,如果未能解决你的问题,请参考以下文章

MFC 灞炴€ц〃鍗曠殑鍒涘缓

IDEA 鍒涘缓闈瀖aven javaweb

濡備綍鍒涘缓 http2 node App

閫氳繃crc32鍒涘缓8浣峳owkey

鍒涘缓鏂囦欢涓婁紶琛ㄥ崟

绫诲畾涔夊拰瀵硅薄鍒涘缓