1. 程式人生 > >C++副檔名的含義

C++副檔名的含義

在VS2015中“生成”(Build)的過程:

Source Code(.cs) —> Compile —> Object File(intermediate files) —> Linker —> Debug Version(.exe) 和 Release Version(.exe)

 

Obj資料夾: 

The obj folder holds object, or intermediate, files, which are compiled binary files that haven't been linked yet. They're essentially fragments that will be combined to produce the final executable. The compiler generates one object file for each source file, and those files are placed into the obj

 folder.

 

Bin資料夾:

The bin folder holds binary files, which are the actual executable code for your application or library.

 

所以,Obj資料夾中放了編譯後的中間語言檔案;而Bin資料夾中放了可執行檔案(.exe),Bin中有兩個版本debug和release,release中是優化後的.exe檔案,debug是除錯中的.exe檔案。

 

.cs 類檔案,原始碼都寫在這裡,主要就看這裡的程式碼。

 

.resx 資原始檔,一些資源存放在這裡,一般不需要看。

 

.csproj C#專案檔案,用VS開啟這個檔案就可以直接開啟這個專案,自動生成,不需要看。


.csproj.user 是一個配置檔案,自動生成的,會記錄專案生成路徑、專案啟動程式等資訊。也不需要看。


.Designer.cs 設計檔案,自動生成,不需要看。


.aspx 是網頁檔案,HTML程式碼寫在這裡面。


sln:在開發環境中使用的解決方案檔案。它將一個或多個專案的所有元素組織到單個的解決方案中。此檔案儲存在父專案目錄中.解決方案檔案,他是一個或多個.proj(專案)的集合