我试图关注this tutorial。
我的计划是
我创建了以下部署计划: 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目录中有一些文件,但只有以下内容:
我应该补充一点,构建第一个教程应用程序也失败了,因为这个错误我无法创建另一个:
保存时出错:50000
16
1Providers_CreateOrUpdateProvider
25`具有该名称的提供商已存在。
答案 0 :(得分:1)
我不知道具体原因,但它现在正在运作。一个主要因素可能如下:上面,我从标准或空应用程序开始。现在,我使用了.net应用程序模板。
现在构建操作"构建MSBuild项目"而不是"构建ASP.net或MVC项目"我以前选过的。