2015-11-03 65 views
0

下面是鼠標右鍵單擊該網站併發佈網站後構建如何MSBUILD指定項目和模仿在VS2008什麼發佈網站是做

 

    ------ Build started: Project: Company.CIO.BIA.GTE.DomainModel.Interface, Configuration: Debug Any CPU ------ 
    Company.CIO.BIA.GTE.DomainModel.Interface -> C:\CIO-BIA\GTE\Development\Codes\Business Layer\Company.CIO.BIA.GTE.DomainModel.Interface\bin\Debug\DomainModel.Interface.dll 
    ------ Build started: Project: Company.CIO.BIA.GTE.DataAccess, Configuration: Debug Any CPU ------ 
    Company.CIO.BIA.GTE.DataAccess -> C:\CIO-BIA\GTE\Development\Codes\Data Access Layer\Company.CIO.BIA.GTE.DataAccess\bin\Debug\DataAccess.dll 
    ------ Build started: Project: Company.CIO.BIA.GTE.DomainModel, Configuration: Debug Any CPU ------ 
    Company.CIO.BIA.GTE.DomainModel -> C:\CIO-BIA\GTE\Development\Codes\Business Layer\Company.CIO.BIA.GTE.DomainModel\bin\Debug\DomainModel.dll 
    ------ Build started: Project: Main.Interface, Configuration: Debug Any CPU ------ 
    Main.Interface -> C:\CIO-BIA\GTE\Development\Codes\Main.Interface\bin\Debug\Main.Interface.dll 
    ------ Skipped Build: Project: Main, Configuration: Debug Any CPU ------ 
    Project not selected to build for this solution configuration 
    ------ Build started: Project: C:\...\Company.CIO.BIA.GTE\, Configuration: Debug Any CPU ------ 
    Pre-compiling Web Site 

    Building directory '/Company.CIO.BIA.GTE/App_Code/'. 
    Building directory '/Company.CIO.BIA.GTE/Errors/'. 
    Building directory '/Company.CIO.BIA.GTE/Shared/'. 
    Building directory '/Company.CIO.BIA.GTE/Main/'. 
    Building directory '/Company.CIO.BIA.GTE/UserControl/'. 
    Building directory '/Company.CIO.BIA.GTE/Scripts/JQuery/CLEditor/'. 
    Building directory '/Company.CIO.BIA.GTE/Scripts/JQuery/'. 
    Building directory '/Company.CIO.BIA.GTE/Scripts/'. 
    Pre-compilation Complete 
    ------ Publish started: Project: C:\...\Company.CIO.BIA.GTE\, Configuration: Debug Any CPU ------ 
    Connecting to site C:\CIO-BIA\GTE\Development\Codes\PrecompiledWeb\Company.CIO.BIA.GTE... 
    Deleting existing files... 
    Publishing directory /... 
    Publishing directory App_Themes... 
    Publishing directory App_Themes/Default... 
    Publishing directory bin... 
    Publishing directory Errors... 
    Publishing directory Images... 
    Publishing directory Main... 
    Publishing directory Scripts... 
    Publishing directory Scripts/JQuery... 
    Publishing directory Scripts/JQuery/CLEditor... 
    Publishing directory Scripts/JQuery/CLEditor/images... 
    Publishing directory Shared... 
    Publishing directory SiteMap... 
    Publishing directory Styles... 
    Publishing directory UserControl... 
    Publishing directory WebService... 
    Publishing directory WebService/Batch... 
    ========== Build: 5 succeeded or up-to-date, 0 failed, 1 skipped ========== 
    ========== Publish: 1 succeeded, 0 failed, 0 skipped ========== 

我不想生成整個解決方案只是那些在Visual Studio中的發佈網站方法中構建的項目。

什麼是它的等效MSBUILD命令?除了分配構建配置。

謝謝!

回答

0

您可以在命令行中使用項目名稱而不是解決方案名稱。但爲了達到這個目的,項目必須定義配置,不能僅僅依賴解決方案級別的配置。如果需要,使用配置管理器創建項目級配置。其餘的參數都有很好的記錄。

相關問題