MSBuild integration with Jenkins - msbuild

Done Building Project "C:\ProgramData\Jenkins.jenkins\workspace\TimetrackerAPI\TimeTracker.sln" (default targets).
Build succeeded.
"C:\ProgramData\Jenkins.jenkins\workspace\TimetrackerAPI\TimeTracker.sln" (default target) (1) ->
"C:\ProgramData\Jenkins.jenkins\workspace\TimetrackerAPI\src\TimeTracker.API\TimeTracker.API.csproj.metaproj" (default target) (2) ->
(Build target) ->
C:\ProgramData\Jenkins.jenkins\workspace\TimetrackerAPI\src\TimeTracker.API\TimeTracker.API.csproj.metaproj : warning MSB4078: The project file "src\TimeTracker.API\TimeTracker.API.csproj" is not supported by MSBuild and cannot be built.
How to fix this ?

Related

Error MSB4057: The target "Build" does not exist in the project working with Continuous integration with MSbuild for U-SQL

I am working with integrating continous integration with vsts using MSBuild for U-SQL reffering the link : https://blogs.msdn.microsoft.com/azuredatalake/2017/10/24/continuous-integration-made-easy-with-msbuild-support-for-u-sql-preview/
But i am facing below issue while working with VSTS Build server
Source\TrainingUsql\TrainingUsql\TrainingUsql\TrainingUsql.usqlproj (0, 0)
Source\TrainingUsql\TrainingUsql\TrainingUsql\TrainingUsql.usqlproj(0,0): Error MSB4057: The target "Build" does not exist in the project.
Process 'msbuild.exe' exited with code '1'.
I have followed all the steps given in link and added the below MSBuild argument :
/p:USQLSDKPath=$(Build.SourcesDirectory)/USQLMSBuild/packages/Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview/build/runtime /p:USQLTargetType=SyntaxCheck /p:DataRoot=$(Build.SourcesDirectory)
Any help would be appreciated.
I can build successful. Below is my settings and build logs for your reference:
******************************************************************************
Finishing: NuGet restore
******************************************************************************
Evaluating condition for step: 'Build solution USQLDemoProject/USQLDemoProject.sln'
Evaluating: succeeded()
Evaluating succeeded:
=> (Boolean) True
Expanded: True
Result: True
******************************************************************************
Starting: Build solution USQLDemoProject/USQLDemoProject.sln
******************************************************************************
==============================================================================
Task : Visual Studio Build
Description : Build with MSBuild and set the Visual Studio version property
Version : 1.120.0
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613727)
==============================================================================
VstsTaskSdk 0.8.2 commit
Entering D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\VSBuild.ps1.
Loading resource strings from: D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\Task.json
Loaded 8 strings.
SYSTEM_CULTURE: 'en-US'
Loading resource strings from: D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\Strings\resources.resjson\en-US\resources.resjson
Loaded 8 strings.
INPUT_VSVERSION: '14.0'
INPUT_MSBUILDARCHITECTURE: 'x86'
INPUT_MSBUILDARGS: '/p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject'
INPUT_SOLUTION: 'D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln'
INPUT_PLATFORM: 'any cpu'
INPUT_CONFIGURATION: 'release'
INPUT_CLEAN: 'false'
Converted to bool: False
INPUT_MAXIMUMCPUCOUNT: 'false'
Converted to bool: False
INPUT_RESTORENUGETPACKAGES: 'false'
Converted to bool: False
INPUT_LOGPROJECTEVENTS: 'false'
Converted to bool: False
INPUT_CREATELOGFILE: 'false'
Converted to bool: False
INPUT_VSLOCATION (empty)
INPUT_MSBUILDLOCATION (empty)
INPUT_MSBUILDVERSION (empty)
Loading module from path 'D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\MSBuildHelpers.psm1'.
Loading resource strings from: D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\module.json
Loaded 9 strings.
SYSTEM_CULTURE: 'en-US'
Loading resource strings from: D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Strings\resources.resjson\en-US\resources.resjson
Loaded 9 strings.
Exporting function 'Format-MSBuildArguments'.
Exporting function 'Invoke-BuildTools'.
Exporting function 'Get-MSBuildPath'.
Exporting function 'Get-SolutionFiles'.
Exporting function 'Get-VisualStudio_15_0'.
Exporting function 'Select-MSBuildPath'.
Importing function 'Format-MSBuildArguments'.
Importing function 'Get-MSBuildPath'.
Importing function 'Get-SolutionFiles'.
Importing function 'Get-VisualStudio_15_0'.
Importing function 'Invoke-BuildTools'.
Importing function 'Select-MSBuildPath'.
Entering Get-SolutionFiles.
Solution: 'D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln'
Leaving Get-SolutionFiles.
Entering Select-VSVersion.
PreferredVersion: '14.0'
Entering Get-VSPath.
Version: '14.0'
Leaving Get-VSPath.
Leaving Select-VSVersion.
Entering Select-MSBuildPath.
PreferredVersion: '14.0'
Architecture: 'x86'
Defaulted MSBuild location method to: version
Entering Get-MSBuildPath.
Version: '14.0'
Architecture: 'x86'
Loading Microsoft.Build.Utilities.Core, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Not found.
Loading Microsoft.Build.Utilities.Core, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
MSBuild: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
Leaving Get-MSBuildPath.
Leaving Select-MSBuildPath.
Entering Format-MSBuildArguments.
MSBuildArguments: '/p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject'
Platform: 'any cpu'
Configuration: 'release'
VSVersion: '14.0'
MaximumCpuCount: 'False'
AZURE_HTTP_USER_AGENT: 'VSTS_fc52d179-f3fd-460b-adb1-5ac84bd0e765_build_40_1819'
Leaving Format-MSBuildArguments.
Entering Invoke-BuildTools.
NuGetRestore: 'False'
SolutionFiles: 'D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln'
MSBuildLocation: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
MSBuildArguments: '/p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_fc52d179-f3fd-460b-adb1-5ac84bd0e765_build_40_1819"'
Clean: 'False'
NoTimelineLogger: 'True'
CreateLogFile: 'False'
Entering Invoke-MSBuild.
ProjectFile: 'D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln'
MSBuildPath: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
AdditionalArguments: '/p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_fc52d179-f3fd-460b-adb1-5ac84bd0e765_build_40_1819"'
NoTimelineLogger: 'True'
Asserting leaf path exists: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
Asserting leaf path exists: 'D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll'
Entering Invoke-VstsTool.
FileName: 'C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe'
Arguments: '"D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" /nologo /nr:false /dl:CentralLogger,"D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=|SolutionDir=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject"*ForwardingLogger,"D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_fc52d179-f3fd-460b-adb1-5ac84bd0e765_build_40_1819"'
RequireExitCodeZero: 'True'
"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" /nologo /nr:false /dl:CentralLogger,"D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=|SolutionDir=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject"*ForwardingLogger,"D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:USQLSDKPath=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime;USQLTargetType=SyntaxCheck;DataRoot=D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0" /p:_MSDeployUserAgent="VSTS_fc52d179-f3fd-460b-adb1-5ac84bd0e765_build_40_1819"
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 10/30/2017 3:33:02 PM.
Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "release|any cpu".
Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" (1) is building "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\USQLDemoProject.usqlproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Release\".
Creating directory "obj\Release\".
USqlCompilerTarget:
Building Script:
Build All Scripts in 'USQLDemoProject.usqlproj' ...
Building 'Script.usql' ...
D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\build\runtime\LocalRunHelper.exe compile -Shallow -FlatDir -Script "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Script\Script.usql" -WorkDir "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Script" -DataRoot "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject" -Temp "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Script\_TMP" -DumpCommonResult "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Script\Script.usql.comresult" -DumpResult "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Script\Script.usql.xml" -SkipInputCheck
Build suceeded
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
CopyFilesToOutputDirectory:
Copying file from "obj\Release\Algebra.xml" to "bin\Release\Algebra.xml".
USQLDemoProject -> D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\bin\Release\Algebra.xml
Done Building Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject\USQLDemoProject.usqlproj" (default targets).
Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" (1) is building "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\ConsoleApp1\ConsoleApp1.csproj" (3) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Release\".
Creating directory "obj\Release\".
GenerateBindingRedirects:
No suggested binding redirects from ResolveAssemblyReferences.
CoreCompile:
C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:anycpu32bitpreferred /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Diagnostics.dll /reference:D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Interfaces.dll /reference:D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Interfaces.Streaming.dll /reference:D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Types.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\M...
Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\bin
_CopyFilesMarkedCopyLocal:
Copying file from "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Diagnostics.dll" to "bin\Release\Microsoft.Analytics.Diagnostics.dll".
Copying file from "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Interfaces.dll" to "bin\Release\Microsoft.Analytics.Interfaces.dll".
Copying file from "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Interfaces.Streaming.dll" to "bin\Release\Microsoft.Analytics.Interfaces.Streaming.dll".
Copying file from "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\packages\Microsoft.Azure.DataLake.USQL.SDK.1.3.1019-preview\lib\net45\Microsoft.Analytics.Types.dll" to "bin\Release\Microsoft.Analytics.Types.dll".
_CopyAppConfigFile:
Copying file from "App.config" to "bin\Release\ConsoleApp1.exe.config".
CopyFilesToOutputDirectory:
Copying file from "obj\Release\ConsoleApp1.exe" to "bin\Release\ConsoleApp1.exe".
ConsoleApp1 -> D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\ConsoleApp1\bin\Release\ConsoleApp1.exe
Copying file from "obj\Release\ConsoleApp1.pdb" to "bin\Release\ConsoleApp1.pdb".
Done Building Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\ConsoleApp1\ConsoleApp1.csproj" (default targets).
Done Building Project "D:\marina\newTFSPCagent\_work\8\s\USQLDemoProject\USQLDemoProject.sln" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:07.24
Exit code: 0
Leaving Invoke-VstsTool.
Leaving Invoke-MSBuild.
Leaving Invoke-BuildTools.
Leaving D:\marina\newTFSPCagent\_work\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.120.0\VSBuild.ps1.
******************************************************************************
Finishing: Build solution USQLDemoProject/USQLDemoProject.sln

Continuous Integration with .Net Core App and Database Project (VS2017)

I have a .net Core app in VS2017 that also has a Database Project in the solution as well.
I want to set up continuous integration within Visual Studio Team Services to Build and Publish both the app and the database project. I have been able to get either the database project or app in the Publish Artifacts, but can't get them both at the same time. I am assuming I have set up my paths up wrong, but I have not had an luck with any of the combinations I have tried and there is very little documentation that I can find on having both an .net core app and a database project build and deploy together. How do I build and publish both the .net core app and the database project together in VSTS?
Below is the current set up I have in VSTS for the Build. I currently was trying to put the database project in one folder ($(build.artifactstagingdirectory)) and the app in another folder since resulted in
List of current steps
Below is the output from the current setup as seen in the image above
Starting: Build
******************************************************************************
Task : .NET Core
Description : Build, test and publish using dotnet core command-line.
Version : 1.0.2
Author : Microsoft Corporation
"C:\Program Files\dotnet\dotnet.exe" build d:\a\1\s\DatabaseDeploymentTest.web\DatabaseDeploymentTest.web.csproj --configuration release
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
DatabaseDeploymentTest.web -> d:\a\1\s\DatabaseDeploymentTest.web\bin\release\netcoreapp1.1\DatabaseDeploymentTest.web.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:07.50
Finishing: Build
Starting: Build solution **/*.sln
******************************************************************************
Task : MSBuild
Description : Build with MSBuild
Version : 1.120.0
Author : Microsoft Corporation
"D:\a_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [15.0,16.0) -latest -format json
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe" "d:\a\1\s\DatabaseDeploymentTest.sln" /nologo /nr:false /dl:CentralLogger,"D:\a_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=|SolutionDir=d:\a\1\s"*ForwardingLogger,"D:\a_tasks\MSBuild_c6c4c611-aa2e-4a33-b606-5eaba2196824\1.120.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /t:build /p:CmdLineInMemoryStorage=True /p:_MSDeployUserAgent="VSTS_8786b412-4ab0-4ae3-aa96-af0394363b64_build_32_835"
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 8/7/2017 6:40:49 PM.
Project "d:\a\1\s\DatabaseDeploymentTest.sln" on node 1 (build target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Project "d:\a\1\s\DatabaseDeploymentTest.sln" (1) is building "d:\a\1\s\DatabaseDeploymentTest\DatabaseDeploymentTest.sqlproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Debug\".
Creating directory "obj\Debug\".
CoreCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\DatabaseDeploymentTest.dll /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /target:library /warnaserror- /utf8output "d:\a_temp.NETFramework,Version=v4.5.2.SqlClrAttributes.cs"
Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
SqlBuild:
Creating a model to represent the project...
Loading project references...
Loading project files...
Building the project model and resolving object interdependencies...
Validating the project model...
Writing model to d:\a\1\s\DatabaseDeploymentTest\obj\Debug\Model.xml...
DatabaseDeploymentTest\dbo\Stored Procedures\LoadEmployees.sql(1,1): Warning SQL71558: The object reference [dbo].[Employees].[HKSEmployeeId] differs only by case from the object definition [dbo].[Employees].[HKSEmployeeID].
d:\a\1\s\DatabaseDeploymentTest\dbo\Stored Procedures\LoadEmployees.sql(1,1,1,1): Build warning SQL71558: The object reference [dbo].[Employees].[HKSEmployeeId] differs only by case from the object definition [dbo].[Employees].[HKSEmployeeID]. [d:\a\1\s\DatabaseDeploymentTest\DatabaseDeploymentTest.sqlproj]
CopyFilesToOutputDirectory:
Copying file from "obj\Debug\DatabaseDeploymentTest.dll" to "bin\Debug\DatabaseDeploymentTest.dll".
DatabaseDeploymentTest -> d:\a\1\s\DatabaseDeploymentTest\bin\Debug\DatabaseDeploymentTest.dll
Copying file from "obj\Debug\DatabaseDeploymentTest.pdb" to "bin\Debug\DatabaseDeploymentTest.pdb".
SqlPrepareForRun:
DatabaseDeploymentTest -> d:\a\1\s\DatabaseDeploymentTest\bin\Debug\DatabaseDeploymentTest.dacpac
Done Building Project "d:\a\1\s\DatabaseDeploymentTest\DatabaseDeploymentTest.sqlproj" (default targets).
Project "d:\a\1\s\DatabaseDeploymentTest.sln" (1) is building "d:\a\1\s\DatabaseDeploymentTest.web\DatabaseDeploymentTest.web.csproj" (3) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Debug\netcoreapp1.1\".
Creating directory "obj\Debug\netcoreapp1.1\".
PreComputeCompileTypeScript:
C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.2\tsc.exe --noEmitOnError --listEmittedFiles
CompileTypeScript:
C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.2\tsc.exe --noEmitOnError --listEmittedFiles
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;DEBUG;NETCOREAPP1_1 /reference:C:\Users\buildguest.nuget\packages\microsoft.applicationinsights.aspnetcore\2.0.0\lib\netstandard1.6\Microsoft.ApplicationInsights.AspNetCore.dll /reference:C:\Users\buildguest.nuget\packages\microsoft.applicationinsights\2.2.0\lib\netstandard1.5\Microsoft.ApplicationInsights.dll /reference:C:\Users\buildguest.nuget\packages\microsoft.aspnetcore.antiforgery\1.1.1\lib\netstandard1.3\Microsoft.AspNetCore.Antiforgery.dll /reference:C:\Users\buildguest.nuget\packages\microsoft.aspnetcore.authorization\1.1.1\lib\netstandard1.3\Microsoft.AspNetCore.Authorization.dll /reference:C:\Users\buildguest.nuget\packages\microsoft.aspnetcore.cors\1.1.1\lib\netstandard1.3\Microsoft.AspNetCore.Cors.dll /reference:C:\Users\buildguest.nuget\packages\microsoft.aspnetcore.cryptography.internal\1....
Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
GetTypeScriptCopyToOutputDirectoryItems:
Adding items with BuildAction=TypeScriptCompile to the same collections that will be populated (with items of other BuildActions) by the GetCopyToOutputDirectoryItems target
CopyFilesToOutputDirectory:
Copying file from "obj\Debug\netcoreapp1.1\DatabaseDeploymentTest.web.dll" to "bin\Debug\netcoreapp1.1\DatabaseDeploymentTest.web.dll".
DatabaseDeploymentTest.web -> d:\a\1\s\DatabaseDeploymentTest.web\bin\Debug\netcoreapp1.1\DatabaseDeploymentTest.web.dll
Copying file from "obj\Debug\netcoreapp1.1\DatabaseDeploymentTest.web.pdb" to "bin\Debug\netcoreapp1.1\DatabaseDeploymentTest.web.pdb".
Done Building Project "d:\a\1\s\DatabaseDeploymentTest.web\DatabaseDeploymentTest.web.csproj" (default targets).
Done Building Project "d:\a\1\s\DatabaseDeploymentTest.sln" (build target(s)).
Build succeeded.
"d:\a\1\s\DatabaseDeploymentTest.sln" (build target) (1) ->
"d:\a\1\s\DatabaseDeploymentTest\DatabaseDeploymentTest.sqlproj" (default target) (2) ->
(SqlBuild target) ->
d:\a\1\s\DatabaseDeploymentTest\dbo\Stored Procedures\LoadEmployees.sql(1,1,1,1): Build warning SQL71558: The object reference [dbo].[Employees].[HKSEmployeeId] differs only by case from the object definition [dbo].[Employees].[HKSEmployeeID]. [d:\a\1\s\DatabaseDeploymentTest\DatabaseDeploymentTest.sqlproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:12.94
Finishing: Build solution **/*.sln
Starting: Copy Files to: $(build.artifactstagingdirectory)
******************************************************************************
Task : Copy Files
Description : Copy files from source folder to target folder using match patterns (The match patterns will only match file paths, not folder paths)
Version : 2.117.0
Author : Microsoft Corporation
found 0 files
Finishing: Copy Files to: $(build.artifactstagingdirectory)
Starting: Publish
******************************************************************************
Task : .NET Core
Description : Build, test and publish using dotnet core command-line.
Version : 1.0.2
Author : Microsoft Corporation
"C:\Program Files\dotnet\dotnet.exe" publish d:\a\1\s\DatabaseDeploymentTest.web\DatabaseDeploymentTest.web.csproj --configuration release --output d:\a\1\a\DatabaseDeploymentTest.web
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
DatabaseDeploymentTest.web -> d:\a\1\s\DatabaseDeploymentTest.web\bin\release\netcoreapp1.1\DatabaseDeploymentTest.web.dll
Finishing: Publish
Starting: Publish Artifact
******************************************************************************
Task : Publish Build Artifacts
Description : Publish Build artifacts to the server or a file share
Version : 1.120.1
Author : Microsoft Corporation
Async Command Start: Upload Artifact
Uploading 1 files
File upload succeed.
Upload 'd:\a\1\a' to file container: '#/677588/DatabaseDeploymentTest'
Associated artifact 724 with build 835
Async Command End: Upload Artifact
Finishing: Publish Artifact
Specify $(build.sourcesdirectory) in Source Folder and **\*.dacpac in Contents of Copy files task.

Deploy to azure error

I've tried to deploy virtocommerce to azure following the steps available at http://docs.virtocommerce.com/display/vc1devguide/Source+Code+Azure+Deployment , but I'm getting some errors during the build...
MSBUILD 4.0 Path = C:\Windows\Microsoft.NET\Framework\v4.0.30319\
03/03/2015 17:21:12 - Solution Build: In progress
Version: 1.0.62.1721
Microsoft (R) Build Engine version 4.0.30319.33440
[Microsoft .NET Framework, version 4.0.30319.34014]
Build started 03/03/2015 17:21:12.
1>Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" on node 1 (clean target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
ValidateProjects:
The project "Performance.FunctionalTests" is not selected for building in solution configuration "Release|Any CPU".
The target "MSDeployPublish" listed in a BeforeTargets attribute at "C:\code\github\VirtoCommerceCommunity\vc-community-master\packages\Microsoft.Web.WebJobs.Publish.1.0.2\tools\webjobs.wap.targets (89,11)" does not exist in the project, and will be ignored.
The target "MSDeployPublish" listed in an AfterTargets attribute at "C:\code\github\VirtoCommerceCommunity\vc-community-master\packages\Microsoft.Web.WebJobs.Publish.1.0.2\tools\webjobs.wap.targets (156,11)" does not exist in the project, and will be ignored.
1>Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (1) is building "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Scheduler\AzureScheduler\AzureScheduler.ccproj" (61) on node 7 (Clean target(s)).
C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Scheduler\AzureScheduler\AzureScheduler.ccproj(68,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\2.4\Microsoft.WindowsAzure.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
61>Done Building Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Scheduler\AzureScheduler\AzureScheduler.ccproj" (Clean target(s)) -- FAILED.
1>Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (1) is building "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WebRoles\Frontend\CommerceSite\CommerceSite.ccproj" (62) on node 2 (Clean target(s)).
62>C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WebRoles\Frontend\CommerceSite\CommerceSite.ccproj(71,3): error MSB4019: The imported project "**C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\2.4\Microsoft.WindowsAzure.targets**" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
62>Done Building Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WebRoles\Frontend\CommerceSite\CommerceSite.ccproj" (Clean target(s)) -- FAILED.
1>Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (1) is building "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Search\ElasticSearch\ElasticSearch.ccproj" (66) on node 6 (Clean target(s)).
66>C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Search\ElasticSearch\ElasticSearch.ccproj(70,3): error MSB4019: The imported project "**C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\2.4\Microsoft.WindowsAzure.targets**" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
66>Done Building Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Search\ElasticSearch\ElasticSearch.ccproj" (Clean target(s)) -- FAILED.
1>Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (1) is building "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Extensions\Jobs\SchedulerConsole\SchedulerConsole.csproj" (69) on node 1 (Clean target(s)).
69>C:\code\github\VirtoCommerceCommunity\vc-community-master\packages\Microsoft.Web.WebJobs.Publish.1.0.2\tools\webjobs.console.targets(25,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. [C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Extensions\Jobs\SchedulerConsole\SchedulerConsole.csproj]
69>Done Building Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Extensions\Jobs\SchedulerConsole\SchedulerConsole.csproj" (Clean target(s)) -- FAILED.
1>Done Building Project "C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (clean target(s)) -- FAILED.
Build FAILED.
"C:\code\github\VirtoCommerceCommunity\vc-community-master\VirtoCommerce.sln" (clean target) (1) ->
"C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Scheduler\AzureScheduler\AzureScheduler.ccproj" (Clean target) (61) ->
C:\code\github\VirtoCommerceCommunity\vc-community-master\src\Azure\WorkerRoles\Scheduler\AzureScheduler\AzureScheduler.ccproj(68,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\2.4\Microsoft.WindowsAzure.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
...
Build Failed
At C:\code\github\VirtoCommerceCommunity\vc-community-master\src\extensions\Setup\VirtoCommerce.PowerShell\azure-deploy.ps1:445 char:11
+ throw "Build Failed"
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Build Failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Build Failed
I've tried from different machines (Windows 8.1 and Windows Server 2012), both with Visual Studio 2013, and found the same error...
Interesting that on both machines the directory C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools does not exists...
The Azure Tools only exists at the \VisualStuion\v12.0 directory...
How could we solve this?
Thanks in advance!
The issue seems to be related how msbuild is packaged with VS.NET 2013 (http://blog.maskalik.com/msbuild/2014/03/04/changes-in-msbuild-with-visual-studio-2013/). In order for powershell deploy to work out of the box, VS.NET 2012 needs to be installed. The workaround is to modify azure-deploy.ps1 to point to the MSBuild from VS.NET 2013 instead of .NET SDK.
So change line 426 from
$global:buildexe_path = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" -Name MSBuildToolsPath).MSBuildToolsPath
to (simply changed 4.0 to 12.0)
$global:buildexe_path = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0" -Name MSBuildToolsPath).MSBuildToolsPath
It will be included in the next patch once it passes our CI.

How can I use Mono's xbuild to build a TypeScript project on Linux?

I'm developing this project with Visual Studio on Windows, but I've had no problems compiling it with xbuild on Linux until I added some files that need to be built with TypeScript. Specifically, a set of .ts files are compiled to produce app.js, which is then included as an embedded resource. The build works in VS, but with xbuild I get this:
$ xbuild Guncho.sln
XBuild Engine Version 12.0
Mono, Version 3.10.0.0
Copyright (C) 2005-2013 Various Mono authors
Build started 12/23/2014 13:00:53.
__________________________________________________
Project "/home/guncho/test-guncho/Guncho.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
Target Build:
Project "/home/guncho/test-guncho/Guncho.Site/Guncho.Site.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Target CopyNonResxEmbeddedResources:
/usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets: error : Cannot copy /home/guncho/test-guncho/Guncho.Site/app/app.js to /home/guncho/test-guncho/Guncho.Site/obj/Debug/Guncho.Site.app.app.js, as the source file doesn't exist.
/usr/lib/mono/xbuild/12.0/bin/Microsoft.Common.targets: error : Cannot copy /home/guncho/test-guncho/Guncho.Site/app/app.js.map to /home/guncho/test-guncho/Guncho.Site/obj/Debug/Guncho.Site.app.app.js.map, as the source file doesn't exist.
Task "Copy" execution -- FAILED
Done building target "CopyNonResxEmbeddedResources" in project "/home/guncho/test-guncho/Guncho.Site/Guncho.Site.csproj".-- FAILED
Done building project "/home/guncho/test-guncho/Guncho.Site/Guncho.Site.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "Build" in project "/home/guncho/test-guncho/Guncho.sln".-- FAILED
Done building project "/home/guncho/test-guncho/Guncho.sln".-- FAILED
Build FAILED.
It's not even attempting the TypescriptCompile step. The build works if I manually run tsc to generate app.js, but what do I need to do to get it working automatically?

Why is my packaging step failing in teambuild?

I'm just the build guy, I didn't write the web app and don't know much about web apps (as will become abundantly clear, I'm sure).
So dude tells me we need to run "msbuild /T:Package /P:Configuration=Release" to package his app. Okay. There's multiple solutions in his build definition and only one of them which needs the Package target so I wrote a stupid little msbuild proj file to add to his TFS build definition with a default target that looks like this:
<Target Name="Package" Condition=" '$(Configuration)' == 'Release' ">
<MSBuild Projects="HisApp.csproj"
Properties="Configuration=$(Configuration)"
Targets="Package" />
</Target>
Added that to the build definition and it fails with this:
Build started 8/7/2012 7:17:48 PM.
Project "C:\path\to\MyDumbScript.proj" on node 1 (default targets).
Package:
Project "C:\Path\to\MyDumbScript.proj" (1) is building "C:\Path\to\HisApp.csproj" (2) on node 1 (Package target(s)).
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Value cannot be null. [C:\Path\to\HisApp.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Parameter name: type [C:\Path\to\HisApp.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Unknown error (0x80005000) [C:\Path\to\HisApp.csproj]
Done Building Project "C:\Path\to\HisApp.csproj" (Package target(s)) -- FAILED.
Done Building Project "C:\Path\to\MyDumbScript.proj" (default targets) -- FAILED.
Build FAILED.
"C:\Path\to\MyDumbScript.proj" (default target) (1) ->
"C:\Path\to\HisApp.csproj" (Package target) (2) ->
(GetProjectWebProperties target) ->
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Value cannot be null. [C:\Path\to\HisApp.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Parameter name: type [C:\Path\to\HisApp.csproj]
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1737,5): error : Unknown error (0x80005000) [C:\Path\to\HisApp.csproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.82
So that's as clear as mud.
Questions:
Is there some more straightforward way to call the package target from Team Build when the build definition calls multiple solutions?
Why's this failing?
Thanks.
It looks like the errors were due to IIS not being enabled on the build machine.
When I enabled the “Web Management Tools” and “World Wide Web Services” features on the build machine the build failed in new and more interesting (and less opaque) ways.
As for the question of how better to call the package target from Team Build, I'd be happy to hear answers, but this works now.