更改visual studio 2015项目中的默认文件扩展名 [英] Changing the default file extension in a visual studio 2015 project

查看:201
本文介绍了更改visual studio 2015项目中的默认文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2015创建当前项目时,我错误地指定了要使用的默认文件扩展名(Document / View项目)。 (即,这是使用保存文档自动附加到文件名的扩展名或在文件打开操作中自动应用的文件过滤器类型。)除了从头开始重新创建项目之外,我该如何更改此项目默认分机?



我尝试过:



我搜索过项目的属性,但我找不到对正在应用的(不正确的)文件扩展名的任何引用。

When creating my current project using Visual Studio 2015 I incorrectly specified the default file extension to be used (a Document/View project). (i.e. this is the extension that is automatically appended to a file name using the "Save Document" or the type of file filter automatically applied in a "File Open" action.) Other than recreating the project from scratch, how can I change this default extension?

What I have tried:

I have searched the "Properties" for the project, but I cannot find any reference to the (incorrect) file extension that is being applied.

推荐答案

它作为资源存储在字符串表。查找传递给文档模板构造函数的ID(通常为 IDR_MAINFRAME )。



字符串包含最多七个新行分隔的子串。子字符串的含义在 CDocTemplate :: GetDocString [ ^ ]。
It is stored as resource in the String Table. Look for the ID that is passed to the document template constructor (usually IDR_MAINFRAME).

The string consists of up to seven new line separated substrings. The meaning of the substrings is explained at CDocTemplate:: GetDocString[^].


这篇关于更改visual studio 2015项目中的默认文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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