2012-04-01 66 views

回答

3

有一個Properties/AssemblyInfo.cs文件,在其中您可以設置程序集的版本:

// Version information for an assembly consists of the following four values: 
// 
//  Major Version 
//  Minor Version 
//  Build Number 
//  Revision 
// 
// You can specify all the values or you can default the Revision and Build Numbers 
// by using the '*' as shown below: 
[assembly: AssemblyVersion("1.0.0.0")] 
[assembly: AssemblyFileVersion("1.0.0.0")] 

儘管正常情況下你應該能夠做到的是,在Visual Studio中的項目的屬性。

如果您創建了ASP.NET站點(而不是ASP.NET應用程序),則無法設置程序集版本,因爲沒有程序集。 ASP.NET網站沒有預編譯。 ASP.NET將在運行時動態地發出程序集。

4

查看屬性頁有兩種方法:

  1. Web項目上單擊右鍵,然後在上下文菜單,然後選擇屬性,或
  2. 雙擊該項目下的屬性節點

enter image description here

在「應用程序」選項卡中,找到「Assembly Information ...」按鈕,您將看到一個對話框,用於編輯a ssembly版本。

enter image description here

相關問題