DeploymentType 列舉型別

指定要對檔案執行的部署類型。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
<CLSCompliantAttribute(True)> _
Public Enumeration DeploymentType
[CLSCompliantAttribute(true)]
public enum DeploymentType

成員

成員名稱 說明
NoDeployment 指定不會部署至 SharePoint 的檔案。NoDeployment 的預設路徑是空字串。
ElementManifest 指定將項目資訊清單部署至 SharePoint。功能資訊清單 (feature.xml) 會參考項目資訊清單。ElementManifest 的預設路徑{SharePointRoot}\Template\Features。
ElementFile 指定將項目檔部署至 SharePoint。功能資訊清單 (feature.xml) 會參考項目檔。ElementFile 的預設路徑{SharePointRoot}\Template\Features。
TemplateFile 指定將範本檔案部署至 SharePoint。封裝資訊清單 (manifest.xml) 會參考範本檔案。TemplateFile 的預設路徑{SharePointRoot}\Template。
RootFile 指定將根檔案部署至 SharePoint。封裝資訊清單 (manifest.xml) 會參考根檔案。RootFile 的預設路徑{SharePointRoot}。
ClassResource 指定將檔案當成類別資源部署至 SharePoint.封裝資訊清單 (manifest.xml) 會參考類別資源。ClassResource 的預設路徑{ClassResourcePath}。
ApplicationResource 指定將檔案當成應用程式資源部署至 SharePoint.封裝資訊清單 (manifest.xml) 會參考應用程式資源。ApplicationResource 的預設路徑是: {WebApplicationRoot}\Resources。
AppGlobalResource 指定將檔案當成「應用程式全域資源」部署至 SharePoint。AppGlobalResource 的預設路徑是: {WebApplicationRoot}\App_GlobalResources。

封裝資訊清單 (manifest.xml) 會參考應用程式全域資源。它們會部署至 SharePoint Web 應用程式的 'App_GlobalResources' 資料夾。

PackageOnly 指定標記為「僅限封裝」的檔案,這些檔案包含在 WSP 檔案中且沒有任何部署詳細資訊。PackageOnly 的預設路徑是空字串。
Resource 指定將檔案當成資源檔案部署至 SharePoint。資源的預設路徑{SharePointRoot}\Template\Features。

封裝資訊清單 (manifest.xml) 會參考資源檔案。

DwpFile 指定封裝資訊清單中當成 Dwp 檔案來參考且標記為「資源」的檔案。封裝資訊清單 (manifest.xml) 會參考 Dwp 檔案。DwpFile 的預設路徑{WebApplicationRoot}\wpcatalog。

請參閱

參考

Microsoft.VisualStudio.SharePoint 命名空間