2014-05-13 143 views
1

我試圖按照this tutorial構建一個asp.net應用程序不會產生輸出

我的計劃是

  1. 檢查出本地的git回購
  2. 編譯和部署到我的本地IIS(在C:/的Inetpub/wwwroot文件/)
  3. 稱之爲 「集成測試」。

我創建了以下部署計劃: enter image description here 與MY-PC是我的本地機器。

但是,我錯過了一些東西。構建步驟不會產生輸出。在Visual Studio中,建築也不這樣做,我仍然需要發佈它。 (對吧?)

我是新手buildmaster以及部署asp.net應用程序(我想第一次就做對了......)這讓我想知道我忘了什麼。 Buildmaster日誌如下:

Source and target directory are the same; splitting... 
AgentBasedAction initialization complete: 
    Temp Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\TMP 
    Source Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\SRC 
    Target Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\WRK 
    Server: MY-PC (Id: 1) 
Initializing action... 
Initialization complete. Executing... 
Executing Get Latest... 
Clearing target directory "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK" before getting latest source... 
Getting latest source code from path "C:\Repositories\SecretProject|master:"... 
Get latest from source control complete. 
Execution complete. Finalizing... 
Target directory used. Abandoning source. 
Finalization complete. 
AgentBasedAction initialization complete: 
    Temp Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\TMP 
    Source Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\WRK 
    Target Directory: C:\inetpub\wwwroot\secret-project 
    Server: MY-PC (Id: 1) 
Initializing action... 
Initialization complete. Executing... 
Arguments: "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe" "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\Secret_Project.sln" /t:Rebuild /p:Configuration=Debug;DeployOnBuild=True;BaseIntermediateOutputPath=C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\ 
Working Directory: C:\BuildMaster\_SVCTMP\_A4\_S4\WRK 
Executing C:\BuildMaster\_SVCTMP\ExtTemp\WindowsSdk\BmBuildLogger.exe 
Starting process: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\Secret_Project.sln" "/t:Rebuild" "/p:Configuration=Debug;DeployOnBuild=True;BaseIntermediateOutputPath=C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\\" "/logger:C:\BuildMaster\_SVCTMP\ExtTemp\WindowsSdk\BmBuildLogger.exe;05636b406dfa4d97a32995e3c69b9d14" 
Building Projekt "Secret_Project.sln", Rebuild Ziel(e): 
Message: Die Projektmappenkonfiguration "Debug|Any CPU" wird erstellt. 
Building Projekt "Secret_Project.csproj", Rebuild Ziel(e): 
MakeDir: Das Verzeichnis "C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\Debug\" wird erstellt. 
MakeDir: Das Verzeichnis "bin\" wird erstellt. 
MSBuild: Das Ziel "GenerateTargetFrameworkMonikerAttribute" wird bersprungen, da alle Ausgabedateien hinsichtlich der Eingabedateien aktuell sind. 
Csc: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\Microsoft.CSharp.dll" /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\mscorlib.dll" /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.ComponentModel.DataAnnotations.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Configuration.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Drawing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.EnterpriseServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Net.Http.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Net.Http.WebRequest.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.Abstractions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.ApplicationServices.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.DynamicData.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.Entity.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.Extensions.dll" /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.Routing.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Web.Services.dll" /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.dll /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Xml.Linq.dll" /reference:C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\WebGrease.1.6.0\lib\WebGrease.dll /debug+ /debug:full /optimize- /out:C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\Debug\Secret_Project.dll /subsystemversion:6.00 /target:library /utf8output App_Start\BundleConfig.cs App_Start\FilterConfig.cs App_Start\RouteConfig.cs Controllers\HomeController.cs Global.asax.cs Properties\AssemblyInfo.cs "C:\Windows\TEMP\.NETFramework,Version=v4.5.1.AssemblyAttributes.cs" 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll" in "bin\Antlr3.Runtime.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.dll" in "bin\EntityFramework.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.dll" in "bin\EntityFramework.SqlServer.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll" in "bin\Microsoft.Web.Infrastructure.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.dll" in "bin\Newtonsoft.Json.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.dll" in "bin\System.Web.Helpers.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.dll" in "bin\System.Web.Mvc.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll" in "bin\System.Web.Optimization.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.dll" in "bin\System.Web.Razor.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.dll" in "bin\System.Web.WebPages.Deployment.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.dll" in "bin\System.Web.WebPages.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.dll" in "bin\System.Web.WebPages.Razor.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\WebGrease.1.6.0\lib\WebGrease.dll" in "bin\WebGrease.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.xml" in "bin\EntityFramework.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\EntityFramework.6.1.0\lib\net45\EntityFramework.SqlServer.xml" in "bin\EntityFramework.SqlServer.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Newtonsoft.Json.6.0.3\lib\net45\Newtonsoft.Json.xml" in "bin\Newtonsoft.Json.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.Helpers.xml" in "bin\System.Web.Helpers.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\System.Web.Mvc.xml" in "bin\System.Web.Mvc.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.xml" in "bin\System.Web.Optimization.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\System.Web.Razor.xml" in "bin\System.Web.Razor.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.xml" in "bin\System.Web.WebPages.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Deployment.xml" in "bin\System.Web.WebPages.Deployment.xml" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\System.Web.WebPages.Razor.xml" in "bin\System.Web.WebPages.Razor.xml" kopiert. 
Copy: Das Verzeichnis "bin\de" wird erstellt. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\de\System.Web.Helpers.resources.dll" in "bin\de\System.Web.Helpers.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Mvc.5.1.2\lib\net45\de\System.Web.Mvc.resources.dll" in "bin\de\System.Web.Mvc.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\de\System.Web.Optimization.resources.dll" in "bin\de\System.Web.Optimization.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.Razor.3.1.2\lib\net45\de\System.Web.Razor.resources.dll" in "bin\de\System.Web.Razor.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\de\System.Web.WebPages.resources.dll" in "bin\de\System.Web.WebPages.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\de\System.Web.WebPages.Deployment.resources.dll" in "bin\de\System.Web.WebPages.Deployment.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\packages\Microsoft.AspNet.WebPages.3.1.2\lib\net45\de\System.Web.WebPages.Razor.resources.dll" in "bin\de\System.Web.WebPages.Razor.resources.dll" kopiert. 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\Debug\Secret_Project.dll" in "bin\Secret_Project.dll" kopiert. 
Message: Secret_Project -> C:\BuildMaster\_SVCTMP\_A4\_S4\WRK\Secret_Project\bin\Secret_Project.dll 
Copy: Die Datei wird von "C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\Debug\Secret_Project.pdb" in "bin\Secret_Project.pdb" kopiert. 
Erstellen des Projekts Secret_Project.csproj beendet. 
Erstellen des Projekts Secret_Project.sln beendet. 
An unhandled exception occurred while executing this action: System.InvalidOperationException: There are no files in the expected output directory: C:\BuildMaster\_SVCTMP\_A4\_S4\TMP\Debug\Package\PackageTmp 
    bei Inedo.BuildMaster.Extensibility.Actions.RemoteCommandExecution.RemoteCommandExecuter.ExecuteCommand(RemoteActionBase remoteAction, String commandName, String[] commandArgs) 
    bei Inedo.BuildMaster.Extensibility.Agents.Local.LocalAgent.Inedo.BuildMaster.Extensibility.Agents.IRemoteCommandExecuter.ExecuteCommand(RemoteActionBase action, String commandName, String[] commandArgs) 
    bei Inedo.BuildMaster.Extensibility.Actions.RemoteActionBase.ExecuteRemoteCommand(String name, String[] args) 
    bei Inedo.BuildMaster.Extensibility.Actions.ActionBase.ExecuteInternal(IActionExecutionContext context, ExtensionConfigurerBase extensionConfigurer, Boolean resumeNextOnError, Boolean logErrorsAsWarnings) 

與「Erstellen des Projekts Secret_Project.sln beendet」。該解決方案完全構建。 buildmaster的出現承擔tmp目錄下的一些文件,但只有這些有:

enter image description here

我要補充一點,建設的第一個教程應用程序也失敗了,我不能創建因爲這個錯誤的另一個:

An error occurred while saving: 50000 16 1 Providers_CreateOrUpdateProvider 25`A provider with that name already exists.

回答

1

我不知道確切的原因,但它現在正在工作。一個主要因素可能是以下幾點:上面,我從標準或空應用程序開始。現在,我使用了.net應用程序模板。

構建操作現在是「構建MSBuild項目」,而不是「構建ASP.net或MVC項目」,這是我之前選擇的。

enter image description here

+1

「建ASP.NET/MVC工程」行動處理構建略有不同 - 它試圖做什麼msdeploy具有的MSBuild階段臨時輸出路徑{} BuildConfig文件確實\包\ PackageTMP 。如果由於某種原因,MSBuild不會將輸出文件放在那裏,您會看到您看到的錯誤。不知道MSBuild的內部,很難說什麼會導致MSBuild中的這種行爲,但如果「Build MSBuild Project」操作起作用,則可以使用它。在某一時刻,我們可以添加實際的msdeploy操作,然後您可以切換到這些操作。 –

相關問題