2014-05-13 66 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操作,然后您可以切换到这些操作。 –

相关问题