最近因為工作需求,調整了一些工作開發環境
使得以往沒遇過的問題突然跑出來(應該是我較笨吧)
迫使我不得花點時間稍做了一些學習。
VC 相關的檔案,有很多不同的附檔名
但其用途究竟為何、有何重要及有何關聯性
排除一些基本的.. 剩下的我想很少人會去知道..
(謎之聲:可能只有我吧)
我這回遇到的問題是, 把原有的工作目錄做了更換.
如原是在 "PRJ_01" 更換到 "PRJ_02" 下時..
發生了.. resource 無法正確儲存到新工作目錄下
而會覆蓋回原本舊的工作目錄
最後, 發現在 *.opt 中, 會記錄了一些目錄資料
此檔為工作中繼檔, 可以刪除, vc 會自動重建
例如.. 原資料為
當換了新目錄後, 若只更換相關設定之路徑
理當應該改為下圖所示
但若無手動刪除此檔案, 則內容不會改變..
除了資源檔會儲存於不正確的目錄
還會自動產生出原有的目錄結構(若原有目錄己刪除)
底下是我收集自網路及MSDN中
對於相關附檔名的解釋
File extension |
Type |
Contents |
---|
.asmx |
Source |
Deployment file. |
.asp |
Source |
Active Server Page file. |
.atp |
Project |
Application template project file. |
.bmp, .dib, .gif, .jpg, .jpe, .png |
Resource |
General image files. |
.bsc |
Compiling |
The browser code file. |
.cpp; .c |
Source |
Main source code files for your application. |
.cur |
Resource |
Cursor bitmap graphic file. |
.dbp |
Project |
Database project file. |
.disco |
Source |
The dynamic discovery document file. Handles XML Web service discovery. |
.exe, .dll |
Project |
Executable or dynamic-link library files. |
.h |
Source |
The header, or include, file. |
.htm, .html, .xsp, .asp, .htc, .hta, .xml |
Resource |
Common Web files. |
.HxC |
Project |
Help project file. |
.ico |
Resource |
Icon bitmap graphic file. |
.idb |
Compiling |
The state file, containing dependency information between source files and class definitions, which can be used by the compiler during minimal rebuild and incremental compilation. Use the /Fd compiler option to specify the name of the .idb file. See /Gm (Enable Minimal Rebuild) for more information. |
.idl |
Compiling |
The interface definition language file. See Interface Definition (IDL) File in the Platform SDK for more information. |
.ilk |
Linking |
Incremental link file. See /INCREMENTAL for more information. |
.map |
Linking |
A text file containing linker information. Use the /Fm compiler option to name the map file. See /MAP for more information. |
.ncb |
Solution |
The no compile browser file. |
.obj, .o |
|
Object files, compiled but not linked. |
.pch |
Debug |
Precompiled header file. |
.pdb |
Debug |
The program debug database file. See What Are .pdb Files? for more information. |
.rc, .rc2 |
Resource |
Resource script files to generate resources. |
.sbr |
Compiling |
Source browser intermediate file. The input file for BSCMAKE. |
.sln |
Solution |
The solution file. |
.suo |
Solution |
The solution options file. |
.srf |
Project |
The server response file. This file contains the HTML code for an ATL Server application. |
.txt |
Resource |
Text file, usually the "readme" file. |
.vap |
Project |
Visual Studio Analyzer Project file. |
.vbg |
Solution |
Compatible project group file. |
.vbp, .vip, .vbproj |
Project |
The Visual Basic project file. |
.vcproj |
Project |
The Visual C++ project file. See Project Files and Makefiles for more information. |
.vdproj |
Project |
The Visual Studio deployment project file. |
.vmx |
Project |
The macro project file. |
.vup |
Project |
The utility project file. |
File extension |
Source |
Contents |
.pch |
Debug |
Precompiled header file. |
.pdb |
Debug |
The program debug database file. |
Intermediate files generated by the compiler:
File extension |
Source |
Contents |
.bsc |
Compiling |
The browser code file. |
.idb |
Compiling |
The state file, containing dependency information between source files and class definitions. |
.sbr |
Compiling |
Source browser intermediate file. The input file for BSCMAKE. |
Intermediate files generated by the linker:
File extension |
Source |
Contents |
.ilk |
Linking |
Incremental link file. See /INCREMENTAL for more information. |
.map |
Linking |
A text file containing linker information. Use the /Fm compiler option to name the map file. See /MAP for more information. |
Intermediate files generated by Visual Studio:
File extension |
Source |
Contents |
.aps |
Resource |
Binary version of the current resource script file; used for quick loading. |
.ncb |
Solution |
This file is a binary file used by ClassView and is specific to the local machine. |
.o |
|
Object files, compiled but not linked. |
.obj |
|
Object files, compiled but not linked. |
.opt |
|
This is a binary file that is the workspace options file for the local computer. |
.plg |
|
build log file. It is an HTML file which you can view in i.e. or other browsers. |
Output files (most often they are our products):
File extension |
Source |
Contents |
.exe |
Output |
your product. |
.dll |
Output |
your DLL product. |
.lib |
Output |
the library file which stores information about your .dll file. |
.ocx |
Output |
our ActiveX controls. |
Other files:
File extension |
Source |
Contents |
.scc |
Other |
source safe file (contribution from Indivara in this forum.) |
|
|
參考資料: Clean Visual Studio Workspaces MSDN 以上資料屬原著作人所有
|
沒有留言:
張貼留言