Why am I seeing an empty artefact for an ASP.Net (PREVIEW) build? - asp.net

I have a legacy web application that I've recently migrated to VSTS (from an old TFS2008 server), and am now trying to set up CI/CD in VSTS.
I've got an on-premise build agent, which claims to successfully built the solution, (i.e. the build passes) but the artefact generated comes out as an empty "drop" folder, which I don't understand.
As this is an on-premise build server, I have the luxury of being able to poke its file system, and I can see that <agent root>\_work\20\a is indeed empty, even though the associated website has built, and has even precompiled (i.e. the thing to be deployed does exist at <agent root>\_work\20\s\PrecompiledWeb) So what am I missing to connect the two proverbial dots, over and above what the "ASP.NET (PREVIEW)" build template gave me to start with?
The solution file is pretty straight forward:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "HorizonDashboard", "Source\Code\HorizonDashboard", "{0D9EC6BB-C1A9-4A12-BAA0-61B7205307E6}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = "SAK"
SccAuxPath = "SAK"
SccLocalPath = "SAK"
SccProvider = "SAK"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5"
ProjectReferences = "{3F6ED2DF-3AAC-40E5-8DFF-101EBD2BCA77}|MscTools.dll;{83226B78-CB43-4BCC-BEFA-B3CCB4E387CB}|MscCommon.dll;{F4A2CB09-7ED0-40AC-810A-489FEB7A3D45}|MscUk.Printing.dll;"
Debug.AspNetCompiler.VirtualPath = "/HorizonDashboard"
Debug.AspNetCompiler.PhysicalPath = "Source\Code\HorizonDashboard\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\HorizonDashboard\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/HorizonDashboard"
Release.AspNetCompiler.PhysicalPath = "Source\Code\HorizonDashboard\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\HorizonDashboard\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "5343"
SlnRelativePath = "Source\Code\HorizonDashboard\"
EndProjectSection
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "MyCompany.Tools", "Utility\Code\MyCompany.Tools\MyCompany.Tools.vbproj", "{3F6ED2DF-3AAC-40E5-8DFF-101EBD2BCA77}"
EndProject
...
The (slightly edited down to fit here) build log looks all fairly sensible, as the web project hasn't really been tinkered with for several years:
2017-11-22T12:37:25.5742010Z ##[section]Starting: Phase 1
2017-11-22T12:37:25.5771997Z Current agent version: '2.124.0'
2017-11-22T12:37:26.7802445Z ##[section]Starting: Initialize Job
2017-11-22T12:37:26.7922437Z Prepare build directory.
2017-11-22T12:37:26.8532483Z Set build variables.
2017-11-22T12:37:26.8592461Z Download all required tasks.
2017-11-22T12:37:26.9112479Z ##[section]Finishing: Initialize Job
2017-11-22T12:37:26.9532524Z ##[section]Starting: Get Sources
2017-11-22T12:37:27.0302567Z Prepending Path environment variable with directory containing 'tf.exe'.
2017-11-22T12:37:27.0312583Z Setting environment variable TFVC_BUILDAGENT_POLICYPATH
2017-11-22T12:37:27.0322584Z Querying workspace information.
2017-11-22T12:37:29.3233381Z ##[command]tf vc get /version:68375 /recursive /overwrite C:\agent\_work\20\s /loginType:OAuth /login:.,******** /noprompt
2017-11-22T12:37:30.3883833Z C:\agent\_work\20\s\MasterReference\Test\MyCompany.CommonTests:
2017-11-22T12:37:30.3904477Z Replacing MyCompany.CommonTests.vbproj
2017-11-22T12:37:30.4043870Z
2017-11-22T12:37:30.4043870Z C:\agent\_work\20\s\Utility\Test\MyCompany.Tools.Test:
2017-11-22T12:37:30.4043870Z Replacing MyCompany.Tools.Test.vbproj
2017-11-22T12:37:30.4053852Z
2017-11-22T12:37:30.4053852Z C:\agent\_work\20\s\Utility\Test\MyCompany.Printing.Test:
2017-11-22T12:37:30.4053852Z Replacing MyCompany.Printing.Test.vbproj
2017-11-22T12:37:31.0074074Z ##[section]Finishing: Get Sources
2017-11-22T12:37:40.3047646Z ##[section]Starting: Build solution
2017-11-22T12:37:40.3057684Z ==============================================================================
2017-11-22T12:37:40.3057684Z Task : Visual Studio Build
2017-11-22T12:37:40.3057684Z Description : Build with MSBuild and set the Visual Studio version property
2017-11-22T12:37:40.3057684Z Version : 1.125.0
2017-11-22T12:37:40.3057684Z Author : Microsoft Corporation
2017-11-22T12:37:40.3057684Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
2017-11-22T12:37:40.3057684Z ==============================================================================
2017-11-22T12:37:42.2128393Z ##[command]"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.125.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
2017-11-22T12:37:42.7308577Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "C:\agent\_work\20\s\Horizon.sln" /nologo /nr:false /dl:CentralLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.125.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=317b7114-2199-4657-88e7-322c162344f7|SolutionDir=C:\agent\_work\20\s"*ForwardingLogger,"C:\agent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.125.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="C:\agent\_work\20\a\\" /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="15.0" /p:_MSDeployUserAgent="VSTS_f214a5e7-a852-44ab-a368-c1d8cf3736ca_build_282_29739"
2017-11-22T12:37:42.8568940Z Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
2017-11-22T12:37:42.8978900Z Build started 22/11/2017 12:37:42.
2017-11-22T12:37:43.0938699Z Project "C:\agent\_work\20\s\Horizon.sln" on node 1 (default targets).
2017-11-22T12:37:43.0958797Z ValidateSolutionConfiguration:
2017-11-22T12:37:43.0958797Z Building solution configuration "release|any cpu".
2017-11-22T12:37:43.4928823Z Project "C:\agent\_work\20\s\Horizon.sln" (1) is building "C:\agent\_work\20\s\HorizonDashboard.metaproj" (2) on node 1 (default targets).
2017-11-22T12:37:43.4928823Z Project "C:\agent\_work\20\s\HorizonDashboard.metaproj" (2) is building "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\MyCompany.Tools.vbproj" (3) on node 1 (default targets).
2017-11-22T12:37:43.5089198Z CoreCompile:
2017-11-22T12:37:43.5089198Z Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
2017-11-22T12:37:43.5149173Z _CopyFilesMarkedCopyLocal:
2017-11-22T12:37:43.5149173Z Touching "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\obj\Release\MyCompany.Tools.vbproj.CopyComplete".
2017-11-22T12:37:43.5178950Z CopyFilesToOutputDirectory:
2017-11-22T12:37:43.5178950Z MyCompany.Tools -> C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\MyCompany.Tools.dll
2017-11-22T12:37:43.5299775Z Done Building Project "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\MyCompany.Tools.vbproj" (default targets).
2017-11-22T12:37:43.6828940Z Project "C:\agent\_work\20\s\HorizonDashboard.metaproj" (2) is building "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\MyCompany.Common.vbproj" (4) on node 1 (default targets).
2017-11-22T12:37:43.6828940Z Project "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\MyCompany.Common.vbproj" (4) is building "C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\MyCompany.Printing.csproj" (5:2) on node 1 (default targets).
2017-11-22T12:37:43.6828940Z CoreCompile:
2017-11-22T12:37:43.6828940Z Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
2017-11-22T12:37:43.6859251Z CopyFilesToOutputDirectory:
2017-11-22T12:37:43.6859251Z MyCompany.Printing -> C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\bin\Release\MyCompany.Printing.dll
2017-11-22T12:37:43.6868979Z Copying file from "obj\Release\MyCompany.Printing.pdb" to "bin\Release\MyCompany.Printing.pdb".
2017-11-22T12:37:43.6928941Z Done Building Project "C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\MyCompany.Printing.csproj" (default targets).
2017-11-22T12:37:44.0679081Z CoreResGen:
2017-11-22T12:37:44.0679081Z No resources are out of date with respect to their source files. Skipping resource generation.
2017-11-22T12:37:44.1679144Z CoreCompile:
2017-11-22T12:37:44.1689119Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\vbc.exe /noconfig /baseaddress:11000000 /imports:Microsoft.VisualBasic,System,System.Collections,System.Data,System.Diagnostics,System.Linq /optioncompare:Binary /optionexplicit+ /optionstrict+ /nowarn:42016,42017,42018,42019,42032,42353,42354,42355 /nostdlib /removeintchecks- /rootnamespace:MyCompany /sdkpath:C:\Windows\Microsoft.NET\Framework\v2.0.50727 /highentropyva- /doc:obj\Release\MyCompany.Common.xml /define:"CONFIG=\"Release\",TRACE=-1,_MyType=\"Windows\",PLATFORM=\"AnyCPU\"" /reference:"C:\agent\_work\20\s\3rdParty\Microsoft Office 2003\Main\Lib\Microsoft.Office.Interop.Excel.dll","C:\agent\_work\20\s\3rdParty\SQL Server\Microsoft.SqlServer.Types.dll",C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\MyCompany.Tools.dll,C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\bin\Release\MyCompany.Printing.dll,C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\Office.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.ComponentModel.DataAnnotations.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Linq.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Web.Extensions.dll",C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /main:"MyCompany.(None)" /debug- /optimize+ /out:obj\Release\MyCompany.Common.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /resource:obj\Release\MyCompany.Locations.CustomerSites.resources /resource:Resources\MyCompany.Logo.emf,MyCompany.MyCompany.Logo.emf /target:library /warnaserror+ /utf8output Accounting\AccountingWeek.vb Accounting\Characteristics.vb Accounting\Currencies.vb Accounting\Currency.vb Accounting\ExchangeRate.vb Accounting\ExchangeRateHelper.vb Testing\PropertyChangeMonitor.vb Testing\XmlValidator.vb UserActionLog.vb ValidationError.vb XmlSqlHelper.vb
2017-11-22T12:37:44.1909458Z Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
2017-11-22T12:37:46.4009983Z
2017-11-22T12:37:46.4189983Z _CopyFilesMarkedCopyLocal:
2017-11-22T12:37:46.4189983Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\bin\Release\MyCompany.Printing.pdb" to "bin\Release\MyCompany.Printing.pdb".
2017-11-22T12:37:46.4209998Z Touching "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\obj\Release\MyCompany.Common.vbproj.CopyComplete".
2017-11-22T12:37:46.4250044Z CopyFilesToOutputDirectory:
2017-11-22T12:37:46.4250044Z Copying file from "obj\Release\MyCompany.Common.dll" to "bin\Release\MyCompany.Common.dll".
2017-11-22T12:37:46.4290072Z MyCompany.Common -> C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Common.dll
2017-11-22T12:37:46.4290072Z Copying file from "obj\Release\MyCompany.Common.xml" to "bin\Release\MyCompany.Common.xml".
2017-11-22T12:37:46.4389949Z Done Building Project "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\MyCompany.Common.vbproj" (default targets).
2017-11-22T12:37:46.5420560Z Build:
2017-11-22T12:37:46.5420560Z No way to resolve conflict between "Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" and "Microsoft.SqlServer.Types, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91". Choosing "Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" arbitrarily.
2017-11-22T12:37:46.5420560Z Consider app.config remapping of assembly "Microsoft.SqlServer.Types, Culture=neutral, PublicKeyToken=89845dcd8080cc91" from Version "11.0.0.0" [C:\Windows\assembly\GAC_MSIL\Microsoft.SqlServer.Types\11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Types.dll] to Version "12.0.0.0" [C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\Microsoft.SqlServer.Types.dll] to solve conflict and get rid of warning.
2017-11-22T12:37:46.5640054Z ##[warning]C:\agent\_work\20\s\HorizonDashboard.metaproj(0,0): Warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
2017-11-22T12:37:46.5640054Z C:\agent\_work\20\s\HorizonDashboard.metaproj : warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
2017-11-22T12:37:46.5650049Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\MyCompany.Tools.dll" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Tools.dll".
2017-11-22T12:37:46.5650049Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\Microsoft.ReportViewer.WinForms.dll" to "Source\Code\HorizonDashboard\\Bin\Microsoft.ReportViewer.WinForms.dll".
2017-11-22T12:37:46.5660117Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\MyCompany.Tools.xml" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Tools.xml".
2017-11-22T12:37:46.5670163Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\de\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\de\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5690107Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\es\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\es\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5700350Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\fr\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\fr\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5721059Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\it\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\it\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5740121Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\ja\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ja\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5751155Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\ko\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ko\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5770606Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\pt\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\pt\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5780522Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\ru\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ru\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5820109Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\zh-CHS\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\zh-CHS\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5840323Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Tools\bin\Release\zh-CHT\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\zh-CHT\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.5850331Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Common.dll" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Common.dll".
2017-11-22T12:37:46.5860191Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\Microsoft.Office.Interop.Excel.dll" to "Source\Code\HorizonDashboard\\Bin\Microsoft.Office.Interop.Excel.dll".
2017-11-22T12:37:46.5960087Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\Microsoft.SqlServer.Types.dll" to "Source\Code\HorizonDashboard\\Bin\Microsoft.SqlServer.Types.dll".
2017-11-22T12:37:46.5990172Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Tools.dll" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Tools.dll".
2017-11-22T12:37:46.6000155Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Printing.dll" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Printing.dll".
2017-11-22T12:37:46.6000155Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\office.dll" to "Source\Code\HorizonDashboard\\Bin\office.dll".
2017-11-22T12:37:46.6020134Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\Microsoft.ReportViewer.WinForms.dll" to "Source\Code\HorizonDashboard\\Bin\Microsoft.ReportViewer.WinForms.dll".
2017-11-22T12:37:46.6060085Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\stdole.dll" to "Source\Code\HorizonDashboard\\Bin\stdole.dll".
2017-11-22T12:37:46.6060085Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Common.xml" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Common.xml".
2017-11-22T12:37:46.6100118Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Tools.xml" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Tools.xml".
2017-11-22T12:37:46.6110157Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\MyCompany.Printing.pdb" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Printing.pdb".
2017-11-22T12:37:46.6120076Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\de\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\de\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6130172Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\es\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\es\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6150139Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\fr\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\fr\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6170152Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\it\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\it\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6180147Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\ja\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ja\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6190140Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\ko\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ko\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6210157Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\pt\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\pt\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6230079Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\ru\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\ru\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6240117Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\zh-CHS\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\zh-CHS\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6260022Z Copying file from "C:\agent\_work\20\s\MasterReference\Code\MyCompany.Common\bin\Release\zh-CHT\Microsoft.ReportViewer.WinForms.resources.dll" to "Source\Code\HorizonDashboard\\Bin\zh-CHT\Microsoft.ReportViewer.WinForms.resources.dll".
2017-11-22T12:37:46.6280124Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\bin\Release\MyCompany.Printing.dll" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Printing.dll".
2017-11-22T12:37:46.6290117Z Copying file from "C:\agent\_work\20\s\Utility\Code\MyCompany.Printing\bin\Release\MyCompany.Printing.pdb" to "Source\Code\HorizonDashboard\\Bin\MyCompany.Printing.pdb".
2017-11-22T12:37:46.6370118Z C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /HorizonDashboard -p Source\Code\HorizonDashboard\ -u -f PrecompiledWeb\HorizonDashboard\
2017-11-22T12:37:51.6752006Z ##[warning]Source\Code\HorizonDashboard\TreeViewReports.aspx.vb(138,0): Warning BC42324: Using the iteration variable in a lambda expression may have unexpected results. Instead, create a local variable within the loop and assign it the value of the iteration variable.
2017-11-22T12:37:51.6752006Z C:\agent\_work\20\s\Source\Code\HorizonDashboard\TreeViewReports.aspx.vb(138): warning BC42324: Using the iteration variable in a lambda expression may have unexpected results. Instead, create a local variable within the loop and assign it the value of the iteration variable. [C:\agent\_work\20\s\HorizonDashboard.metaproj]
2017-11-22T12:37:52.1572182Z Done Building Project "C:\agent\_work\20\s\HorizonDashboard.metaproj" (default targets).
2017-11-22T12:37:52.1602167Z Done Building Project "C:\agent\_work\20\s\Horizon.sln" (default targets).
2017-11-22T12:37:52.1702198Z
2017-11-22T12:37:52.1702198Z Build succeeded.
2017-11-22T12:37:52.1712201Z
2017-11-22T12:37:52.1752157Z "C:\agent\_work\20\s\Horizon.sln" (default target) (1) ->
2017-11-22T12:37:52.1782189Z "C:\agent\_work\20\s\HorizonDashboard.metaproj" (default target) (2) ->
2017-11-22T12:37:52.1792194Z (Build target) ->
2017-11-22T12:37:52.1792194Z C:\agent\_work\20\s\HorizonDashboard.metaproj : warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
2017-11-22T12:37:52.1802191Z
2017-11-22T12:37:52.1802191Z
2017-11-22T12:37:52.1812189Z "C:\agent\_work\20\s\Horizon.sln" (default target) (1) ->
2017-11-22T12:37:52.1812189Z "C:\agent\_work\20\s\HorizonDashboard.metaproj" (default target) (2) ->
2017-11-22T12:37:52.1812189Z C:\agent\_work\20\s\Source\Code\HorizonDashboard\TreeViewReports.aspx.vb(138): warning BC42324: Using the iteration variable in a lambda expression may have unexpected results. Instead, create a local variable within the loop and assign it the value of the iteration variable. [C:\agent\_work\20\s\HorizonDashboard.metaproj]
2017-11-22T12:37:52.1812189Z
2017-11-22T12:37:52.1812189Z 2 Warning(s)
2017-11-22T12:37:52.1812189Z 0 Error(s)
2017-11-22T12:37:52.1812189Z
2017-11-22T12:37:52.1812189Z Time Elapsed 00:00:09.27
2017-11-22T12:37:52.2242207Z ##[section]Finishing: Build solution
2017-11-22T12:38:01.4345754Z ##[section]Starting: Publish Artifact
2017-11-22T12:38:01.4345754Z ==============================================================================
2017-11-22T12:38:01.4345754Z Task : Publish Build Artifacts
2017-11-22T12:38:01.4345754Z Description : Publish build artifacts to Visual Studio Team Services/TFS or a file share
2017-11-22T12:38:01.4345754Z Version : 1.124.1
2017-11-22T12:38:01.4345754Z Author : Microsoft Corporation
2017-11-22T12:38:01.4345754Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
2017-11-22T12:38:01.4345754Z ==============================================================================
2017-11-22T12:38:02.3426112Z ##[command]robocopy.exe /E /COPY:DA /NP /R:3 "C:\agent\_work\20\a" "\\tfs-build\Builds\Live\Horizon Dashboard_20171122.1\drop" *
2017-11-22T12:38:02.3426112Z
2017-11-22T12:38:02.3426112Z -------------------------------------------------------------------------------
2017-11-22T12:38:02.3426112Z ROBOCOPY :: Robust File Copy for Windows
2017-11-22T12:38:02.3436082Z -------------------------------------------------------------------------------
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z Started : 22 November 2017 12:38:02
2017-11-22T12:38:02.3436082Z Source : C:\agent\_work\20\a\
2017-11-22T12:38:02.3436082Z Dest : \\tfs-build\Builds\Live\Horizon Dashboard_20171122.1\drop\
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z Files : *
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z Options : /S /E /DCOPY:DA /COPY:DAT /NP /R:3 /W:30
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z ------------------------------------------------------------------------------
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z 0 C:\agent\_work\20\a\
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z ------------------------------------------------------------------------------
2017-11-22T12:38:02.3436082Z
2017-11-22T12:38:02.3436082Z Total Copied Skipped Mismatch FAILED Extras
2017-11-22T12:38:02.3436082Z Dirs : 1 0 0 0 0 0
2017-11-22T12:38:02.3487067Z Files : 0 0 0 0 0 0
2017-11-22T12:38:02.3496344Z Bytes : 0 0 0 0 0 0
2017-11-22T12:38:02.3496344Z Times : 0:00:00 0:00:00 0:00:00 0:00:00
2017-11-22T12:38:02.3496344Z Ended : 22 November 2017 12:38:02
2017-11-22T12:38:02.3496344Z
2017-11-22T12:38:02.3496344Z ##[debug]robocopy exit code '0'
2017-11-22T12:38:02.3916122Z ##[section]Async Command Start: Associate Artifact
2017-11-22T12:38:02.3916122Z Associated artifact 26828 with build 29739
2017-11-22T12:38:02.3916122Z ##[section]Async Command End: Associate Artifact
2017-11-22T12:38:02.3916122Z ##[section]Finishing: Publish Artifact
2017-11-22T12:38:02.3936125Z ##[section]Starting: Post Job Cleanup
2017-11-22T12:38:02.4046142Z ##[section]Finishing: Post Job Cleanup
2017-11-22T12:38:02.4106128Z ##[section]Finishing: Phase 1

"Web Site" project is different with "Web App" project. The "Asp.Net (PREVIEW)" template is used for Web Application Project.
For "Web Site" project, you just need to deploy the project source folder to your server directly. So you just need to set the "Path to Publish" to "Build.SourcesDirectory" in "Publish Artifact" step.

Build artifacts are located in $(Build.SourcesDirectory) by default, so you should specify the output directory in MSBuild arguments or add a Copy files tasks to copy the artifacts from $(Build.SourcesDirectory) to $(build.artifactstagingdirectory). Detail options as below:
Option 1: set MSBuild Arguments
You can set the MSbuild Arguments as:
/p:OutDir="$(build.artifactstagingdirectory)\\"
Or as:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=$(build.artifactstagingdirectory)
Option 2: use Copy Files task
Source Folder: $(System.DefaultWorkingDirectory)
Contents: user wildcards to specify which files need to copy
Target Folder: $(build.artifactstagingdirectory)

In the MS Build Arguments on the Visual Studio Build step, I pass these arguments:
/p:SkipInvalidConfigurations=true
/p:DeployOnbuild=True
/p:GenerateProjectSpecificOutputFolder=true
/p:GenerateBuildInfoConfigFile=false
/p:OutDir=$(Build.BinariesDirectory)
/p:UseWPP_CopyWebApplication=true
/p:PipelineDependsOnBuild=false
The build results end up in the $(Build.BinariesDirectory). From there I either do a Copy and Publish Build Artifacts step (deprecated) or a Copy task and a Publish Build Artifacts task. Either way, it ends up copying the results from the $(Build.BinariesDirectory)\ApplicationName\_PublishedWebsites\ApplicationName folder to $(build.artifactstagingdirectory)\ApplicationName folder and publishing that.

Related

ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable

I have an asp.net webform project that build on system1 but not on system2 (they both are windows 10 and visual studio 2022 Version 17.4.3) and when I build visual studio show an error in error list window :
"Severity Code Description Project File Line Suppression State
Error Metadata failure while creating assembly -- The file or directory is corrupted and unreadable. Modabber D:\BehsamanCode\Modabber\Modabber.Web\ALINK"
Also it shows this error in the output window :
"ALINK : error AL1019: Metadata failure while creating assembly -- The file or directory is corrupted and unreadable"
I searched these errors and I enabled long path on windows10 and uncheck Sign the assembly but not work.
What should we do?
I don't know how but it resolved. I think system2 hard drive has a problem and after win10 repair it itself then restart windows the problem gone and project builded.

How to register assembly using custom action in WIX toolset

My Wix toolset installer installs many files, but only one of these I would like to register for COM interop. I have tried the heat automatic registration but can't get it to work, so am falling back to what I used to do in installshield which is run a custom action at the end of installation to register using regasm.
This is failing for reasons I don't understand.
My Product.wxs file registers the action as follows:
<InstallExecuteSequence>
<Custom Action="RegisterAddIn" After="InstallFiles">NOT REMOVE</Custom>
</InstallExecuteSequence>
Then creates the action here:
<Fragment>
<CustomAction Id ="RegisterAddIn" Directory ="INSTALLFOLDER" Execute="immediate" ExeCommand="[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "[INSTALLFOLDER]Aeolus.Excel.Addin.dll"" Return ="check"/>
</Fragment>
On running this installer I get the error
"A program run as part of setup did not finish as expected."
Extract from the msiexec log doesn't shown below.
CustomAction RegisterAddIn returned actual error code 100 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (54:38) [12:40:54:765]: Note: 1: 1722 2: RegisterAddIn 3: C:\Program Files (x86)\Aeolus\ 4: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "C:\Program Files (x86)\Aeolus\Aeolus.Excel.Addin.dll"
MSI (s) (54:38) [12:40:54:765]: Note: 1: 2205 2: 3: Error
MSI (s) (54:38) [12:40:54:765]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1722
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action RegisterAddIn, location: C:\Program Files (x86)\Aeolus\, command: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "C:\Program Files (x86)\Aeolus\Aeolus.Excel.Addin.dll"
MSI (s) (54:38) [12:40:56:746]: Note: 1: 2205 2: 3: Error
MSI (s) (54:38) [12:40:56:746]: Note: 1: 2228 2: 3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709
MSI (s) (54:38) [12:40:56:746]: Product: Aeolus -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action RegisterAddIn, location: C:\Program Files (x86)\Aeolus\, command: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "C:\Program Files (x86)\Aeolus\Aeolus.Excel.Addin.dll"
Editing the .msi file with Orca, I have this entry in the table which looks correct to me:
[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "[INSTALLFOLDER]Aeolus.Excel.Addin.dll"
If I remove these custom actions, run my installer, then run this in a command prompt (run as administrator):
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "C:\Program Files (x86)\Aeolus\Aeolus.Excel.Addin.dll"
It registers fine. if not run as administrator it fails of course. Can I assume any custom actions will be run as administrator?
In case anyone else has similar issues, I managed to fix it. It turned out to be a permission issue. I was assuming that the installer and all custom actions ran as administrator but actually you have to tell it to run at that level of permission.
So I needed to make 3 fixes.
1. Request elevated permission in package definintion:
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" AdminImage="yes"/>
Set "Execute" to "deferred" and "Impersonate" to "no" in custom action definition:
<CustomAction Id ="RegisterAddIn" Directory ="INSTALLFOLDER" Execute="deferred" ExeCommand="[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\regasm /codebase /tlb "[INSTALLFOLDER]Aeolus.Excel.Addin.dll"" Return ="check" Impersonate="no"/>
Then it all runs as expected.

Publishing ASP.NET vNext / DNX combined with CLR class library

I've added my 'traditional' DAL project to an ASP.NET vNext and worked/debugged with it locally without any problems. But when I tried to publish it to Azure it would not. It states '3>Publish failed due to build errors. Check the error list for more details.', but there are 0 in the Error List, also the project runs just fine.
So is it possible to combine 'old' 4.5.1 projects with DNX targetted projects? If so, is Publishing now just an issue at the moment or something else?
As a workaround I tried to create a DNX class library, but that wouldn't allow me (in VS 2015) to add References using the Browse button, so I couldn't port my old class library to the new format as I also require 2 DLL's.
The log of the build
3>------ Publish started: Project: Example.Kitchen, Configuration: Release Any CPU ------
Project "Example.Kitchen.xproj" (MSDeployPublish target(s)):
Building with tools version "14.0".
Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
Configuration=Debug
Platform=AnyCPU
Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('..\artifacts\bin\Example.Kitchen\' != '' and !HasTrailingSlash('..\artifacts\bin\Example.Kitchen\')).
Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('..\artifacts\obj\Example.Kitchen\' != '' and !HasTrailingSlash('..\artifacts\obj\Example.Kitchen\')).
Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('..\artifacts\obj\Example.Kitchen\Debug\' != '' and !HasTrailingSlash('..\artifacts\obj\Example.Kitchen\Debug\')).
Using "GetRuntimeToolingPath" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.Tasks.dll".
Task "Error" skipped, due to false condition; (!Exists('$(RuntimeToolingExe)')) was evaluated as (!Exists('C:\Users\Gabriel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnx.exe')).
Using "DefaultExternalToolsPath" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.Tasks.dll".
Using "GetRuntimeVersion" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.Tasks.dll".
rmdir /S /Q "C:\Users\Gabriel\AppData\Local\Temp\PublishTemp\"
Using "Dnu" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\..\DNX\Microsoft.DNX.Tasks.dll".
Environment variables:
Path=D:\Development\dotnet\Example\Example.Kitchen\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\extensions\microsoft\web tools\external;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\NativeBinaries\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files (x86)\nodejs\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Users\Gabriel\.dnx\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Git\cmd;C:\Program Files\nodejs\;C:\Python27\;C:\Python27\Scripts;C:\Users\Gabriel\AppData\Roaming\npm";C:\Users\Gabriel\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\extensions\microsoft\web tools\external\.git
C:\Users\Gabriel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnu.cmd publish "D:\Development\dotnet\Example\Example.Kitchen" --out "C:\Users\Gabriel\AppData\Local\Temp\PublishTemp" --configuration Debug --runtime dnx-clr-win-x86.1.0.0-beta6 --wwwroot-out "wwwroot" --quiet
Microsoft .NET Development Utility CLR-x86-1.0.0-beta6-12256
Copying to output path C:\Users\Gabriel\AppData\Local\Temp\PublishTemp
Time elapsed 00:00:03.4408766
Done building project "Example.Kitchen.xproj" -- FAILED.
3>Publish failed due to build errors. Check the error list for more details.
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========
Fixing what I already have
If you don't want to upgrade, you could try running the following command from your project directory:
C:\Users\Gabriel\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin\dnu.cmd publish "D:\Development\dotnet\Example\Example.Kitchen" --out "C:\Users\Gabriel\AppData\Local\Temp\PublishTemp" --configuration Debug --runtime dnx-clr-win-x86.1.0.0-beta6 --wwwroot-out "wwwroot" --quiet
However, remove the --quiet flag and make sure to run dnvm list to ensure you have the dnx-clr-win-x86.1.0.0-beta6 runtime.
Recommended step:
I think this has been solved in the latest beta8.
Make sure to update to the latest version (RC1) (including tooling) and ensure that you are not using older packages (no beta6/beta8).
Also, make sure to looking at the breaking changes that has been introduced in the RC1.

flexunit on jenkins server --- ant unable to build without error

I have already installed vncserver, flex sdk 4.6 and xvnc plugin in my jenkins.
Not sure what else i need to do.
This is my last build error message from jenkins
Building in workspace <http://example.com:8080/job/flexproject%20develop/ws/>
Checkout:flexproject develop / <http://example.com:8080/job/flexproject%20develop/ws/> - hudson.remoting.LocalChannel#78da5318
Using strategy: Default
Last Built Revision: Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop)
Fetching changes from 1 remote Git repository
Fetching upstream changes from git#github.com:simkimsia/STORYBOT.git
Commencing build of Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop)
Checking out Revision 6eca1f87e583b1b7a99825ff075f2e4e4f3b87ea (origin/develop)
Starting xvnc
[flexproject develop] $ vncserver :16
New 'web1:16 (jenkins)' desktop is web1:16
Starting applications specified in /var/lib/jenkins/.vnc/xstartup
Log file is /var/lib/jenkins/.vnc/web1:16.log
[flexproject develop] $ ant
Buildfile: <http://example.com:8080/job/flexproject%20develop/ws/build.xml>
[taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found.
clean-all:
[delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit/generated-flexunit-config.xml>
[delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit>
[delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/report/flexunit>
[delete] Deleting <http://example.com:8080/job/flexproject%20develop/ws/build/output/report>
clean:
[echo] Storybot :: clean finished.
test-air:
[copy] Copying 1 file to <http://example.com:8080/job/flexproject%20develop/ws/build/output/unit>
[echo] run-flexunit :: setting FLEX_HOME to ${env.FLEX_HOME}
[mkdir] Created dir: <http://example.com:8080/job/flexproject%20develop/ws/build/output/report/flexunit>
BUILD FAILED
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/target/test-air.xml>:4: The following error occurred while executing this line:
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/base/base-macros.xml>:212: The following error occurred while executing this line:
<http://example.com:8080/job/flexproject%20develop/ws/buildsupport/base/base-macros.xml>:174: Please specify, or verify the location for, the FLEX_HOME property. It is required when testing with 'air' as the player or when using the 'testSource' element. It should point to the installation directory for a Flex SDK.
Total time: 2 seconds
Build step 'Invoke Ant' marked build as failure
Terminating xvnc.
$ vncserver -kill :16
Killing Xvnc4 process ID 28784
Recording test results
inside my workspace project, i ran ant build.xml
i get
jenkins#web1:~/workspace/flexproject$ ant build.xml
Buildfile: /var/lib/jenkins/workspace/flexproject/build.xml
[taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found.
BUILD FAILED
Target "build.xml" does not exist in the project "flexproject".
Total time: 2 seconds
int he same folder when i run ant
i get
Buildfile: /var/lib/jenkins/workspace/flexproject/build.xml
[taskdef] Could not load definitions from resource flexTasks.tasks. It could not be found.
clean-all:
[delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/unit/generated-flexunit-config.xml
[delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/unit
[delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/report/flexunit
[delete] Deleting /var/lib/jenkins/workspace/flexproject/build/output/report
clean:
[echo] Storybot :: clean finished.
test-air:
[copy] Copying 1 file to /var/lib/jenkins/workspace/flexproject/build/output/unit
[echo] run-flexunit :: setting FLEX_HOME to /opt/flex
[mkdir] Created dir: /var/lib/jenkins/workspace/flexproject/build/output/report/flexunit
BUILD FAILED
/var/lib/jenkins/workspace/flexproject/buildsupport/target/test-air.xml:4: The following error occurred while executing this line:
/var/lib/jenkins/workspace/flexproject/buildsupport/base/base-macros.xml:212: The following error occurred while executing this line:
/var/lib/jenkins/workspace/flexproject/buildsupport/base/base-macros.xml:174: Could not create test runner from template.
Please advise.
Thank you.
Could not load definitions from resource flexTasks.task
hints that you missed to set the path to your flex4.6 directory (lib/*.jar inside) correctly.

appharbor gives error on compiling after push

I get this error from appharbor:
Build started 5/31/2012 4:52:13 PM.
Project "D:\temp\woojnpbm.drx\input\wsolver.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
D:\temp\woojnpbm.drx\input\wsolver.sln.metaproj : warning MSB4121: The project configuration for project "wsolver" was not specified in the solution file for the solution configuration "Release|Any CPU". [D:\temp\woojnpbm.drx\input\wsolver.sln]
Project "D:\temp\woojnpbm.drx\input\wsolver.sln" (1) is building "D:\temp\woojnpbm.drx\input\wsolver.metaproj" (2) on node 1 (default targets).
Build:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v /wsolver -p ..\..\WebSites\wsolver\ -u -f D:\temp\woojnpbm.drx\output\_PublishedWebsites\wsolver\
ASPNETCOMPILER : error 1003: The directory 'D:\temp\WebSites\wsolver\' doesn't exist. [D:\temp\woojnpbm.drx\input\wsolver.metaproj]
Done Building Project "D:\temp\woojnpbm.drx\input\wsolver.metaproj" (default targets) -- FAILED.
Done Building Project "D:\temp\woojnpbm.drx\input\wsolver.sln" (default targets) -- FAILED.
Build FAILED.
"D:\temp\woojnpbm.drx\input\wsolver.sln" (default target) (1) ->
(ValidateProjects target) ->
D:\temp\woojnpbm.drx\input\wsolver.sln.metaproj : warning MSB4121: The project configuration for project "wsolver" was not specified in the solution file for the solution configuration "Release|Any CPU". [D:\temp\woojnpbm.drx\input\wsolver.sln]
"D:\temp\woojnpbm.drx\input\wsolver.sln" (default target) (1) ->
"D:\temp\woojnpbm.drx\input\wsolver.metaproj" (default target) (2) ->
(Build target) ->
ASPNETCOMPILER : error 1003: The directory 'D:\temp\WebSites\wsolver\' doesn't exist. [D:\temp\woojnpbm.drx\input\wsolver.metaproj]
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.62
My app is aspx.net 4.0 - anyone seen this before?
You should probably check the paths in your solution and project files. From the error, D:\temp\WebSites\wsolver\ is referenced, but that path is not found when your code is built on AppHarbor.
A good way to debug this would be to checkout or clone your code to a different machine to check whether it builds there.

Resources