also my YAML file for build soulation task
#Your build pipeline references an undefined variable named ‘NugetsPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘ToolsPackage’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘MetadataPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘NuGetsPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘ToolsPackage’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘NuGetsPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘PlatPackage’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘NuGetsPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘AppPackage’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘NuGetsPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘AppSuitePackage’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ #Your build pipeline references an undefined variable named ‘MetadataPath’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See go.microsoft.com/.../ steps: - task: VSBuild@1 displayName: 'Build solution **\\*.sln' inputs: solution: ' **\\*.sln' vsVersion: 16.0 msbuildArgs: '/p:BuildTasksDirectory="$(NugetsPath)\$(ToolsPackage)\DevAlm" /p:MetadataDirectory="$(MetadataPath)" /p:FrameworkDirectory="$(NuGetsPath)\$(ToolsPackage)" /p:ReferenceFolder="$(NuGetsPath)\$(PlatPackage)\ref\net40;$(NuGetsPath)\$(AppPackage)\ref\net40;$(NuGetsPath)\$(AppSuitePackage)\ref\net40;$(MetadataPath);$(Build.BinariesDirectory)" ' restoreNugetPackages: true
how?
I don't get why it's trying to build a specific project called BatchJobs. It should build on model level. Check your build configuration using the documentation online.
this is the error message
this is tje raw log file of ms build task
2023-05-27T18:42:06.6508275Z ##[debug]Evaluating condition for step: 'Build solution $/Nuget Feed/DEV/PROJECTS/BatchJobs/BatchJobs.sln'
2023-05-27T18:42:06.6509116Z ##[debug]Evaluating: succeeded()
2023-05-27T18:42:06.6509314Z ##[debug]Evaluating succeeded:
2023-05-27T18:42:06.6509689Z ##[debug]=> True
2023-05-27T18:42:06.6509906Z ##[debug]Result: True
2023-05-27T18:42:06.6510151Z ##[section]Starting: Build solution $/Nuget Feed/DEV/PROJECTS/BatchJobs/BatchJobs.sln
2023-05-27T18:42:06.6664797Z ==============================================================================
2023-05-27T18:42:06.6664976Z Task : Visual Studio build
2023-05-27T18:42:06.6665034Z Description : Build with MSBuild and set the Visual Studio version property
2023-05-27T18:42:06.6665128Z Version : 1.214.0
2023-05-27T18:42:06.6665177Z Author : Microsoft Corporation
2023-05-27T18:42:06.6665238Z Help : docs.microsoft.com/.../visual-studio-build
2023-05-27T18:42:06.6665520Z ==============================================================================
2023-05-27T18:42:06.7091152Z ##[debug]tf
2023-05-27T18:42:07.7422956Z ##[debug]
2023-05-27T18:42:07.7424889Z ##[debug]D:\a\8\s> vc resolvePath $\Nuget Feed\DEV\PROJECTS\BatchJobs\BatchJobs.sln /loginType:OAuth /login:.,*** /noprompt
2023-05-27T18:42:08.9245867Z ##[debug]D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln
2023-05-27T18:42:09.8043796Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2023-05-27T18:42:09.9531008Z ##[debug]Entering D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\VSBuild.ps1.
2023-05-27T18:42:09.9811248Z ##[debug]Loading module from path 'D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\MSBuildHelpers.psm1'.
2023-05-27T18:42:09.9882161Z ##[debug]Loading resource strings from: D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\module.json
2023-05-27T18:42:10.0116200Z ##[debug]Loaded 9 strings.
2023-05-27T18:42:10.0166432Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-05-27T18:42:10.0272510Z ##[debug]Loading resource strings from: D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\Strings\resources.resjson\en-US\resources.resjson
2023-05-27T18:42:10.0492273Z ##[debug]Loaded 9 strings.
2023-05-27T18:42:10.0740760Z ##[debug]Exporting function 'Format-MSBuildArguments'.
2023-05-27T18:42:10.0765409Z ##[debug]Exporting function 'Invoke-BuildTools'.
2023-05-27T18:42:10.0790295Z ##[debug]Exporting function 'Get-MSBuildPath'.
2023-05-27T18:42:10.0814041Z ##[debug]Exporting function 'Get-SolutionFiles'.
2023-05-27T18:42:10.0837907Z ##[debug]Exporting function 'Get-VisualStudio'.
2023-05-27T18:42:10.0860036Z ##[debug]Exporting function 'Select-MSBuildPath'.
2023-05-27T18:42:10.0884670Z ##[debug]Exporting function 'EmitTelemetry'.
2023-05-27T18:42:10.0980335Z ##[debug]Importing function 'EmitTelemetry'.
2023-05-27T18:42:10.1074733Z ##[debug]Importing function 'Format-MSBuildArguments'.
2023-05-27T18:42:10.1078685Z ##[debug]Importing function 'Get-MSBuildPath'.
2023-05-27T18:42:10.1174613Z ##[debug]Importing function 'Get-SolutionFiles'.
2023-05-27T18:42:10.1309086Z ##[debug]Importing function 'Get-VisualStudio'.
2023-05-27T18:42:10.1349878Z ##[debug]Importing function 'Invoke-BuildTools'.
2023-05-27T18:42:10.1374262Z ##[debug]Importing function 'Select-MSBuildPath'.
2023-05-27T18:42:10.1407536Z ##[debug]Loading resource strings from: D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\Task.json
2023-05-27T18:42:10.1692333Z ##[debug]Loaded 8 strings.
2023-05-27T18:42:10.1731278Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-05-27T18:42:10.1769095Z ##[debug]Loading resource strings from: D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\Strings\resources.resjson\en-US\resources.resjson
2023-05-27T18:42:10.1980823Z ##[debug]Loaded 8 strings.
2023-05-27T18:42:10.2046182Z ##[debug]SYSTEM_DEBUG: 'True'
2023-05-27T18:42:10.2091945Z ##[debug] Converted to bool: True
2023-05-27T18:42:10.2324323Z ##[debug]INPUT_VSVERSION: '16.0'
2023-05-27T18:42:10.2357704Z ##[debug]INPUT_MSBUILDARCHITECTURE: 'x86'
2023-05-27T18:42:10.2389549Z ##[debug]INPUT_MSBUILDARGS: '/p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b"'
2023-05-27T18:42:10.3193548Z ##[debug]INPUT_SOLUTION: 'D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln'
2023-05-27T18:42:10.3235070Z ##[debug]INPUT_PLATFORM (empty)
2023-05-27T18:42:10.3308622Z ##[debug]INPUT_CONFIGURATION (empty)
2023-05-27T18:42:10.3338339Z ##[debug]INPUT_CLEAN: 'false'
2023-05-27T18:42:10.3368454Z ##[debug] Converted to bool: False
2023-05-27T18:42:10.3397587Z ##[debug]INPUT_MAXIMUMCPUCOUNT: 'false'
2023-05-27T18:42:10.3419193Z ##[debug] Converted to bool: False
2023-05-27T18:42:10.3448001Z ##[debug]INPUT_RESTORENUGETPACKAGES: 'false'
2023-05-27T18:42:10.3471329Z ##[debug] Converted to bool: False
2023-05-27T18:42:10.3499416Z ##[debug]INPUT_LOGPROJECTEVENTS: 'true'
2023-05-27T18:42:10.3526189Z ##[debug] Converted to bool: True
2023-05-27T18:42:10.3559549Z ##[debug]INPUT_CREATELOGFILE: 'false'
2023-05-27T18:42:10.3580247Z ##[debug] Converted to bool: False
2023-05-27T18:42:10.3607885Z ##[debug]INPUT_ENABLEDEFAULTLOGGER: 'true'
2023-05-27T18:42:10.3628794Z ##[debug] Converted to bool: True
2023-05-27T18:42:10.3655125Z ##[debug]INPUT_CUSTOMVERSION (empty)
2023-05-27T18:42:10.3681002Z ##[debug]INPUT_VSLOCATION (empty)
2023-05-27T18:42:10.3706711Z ##[debug]INPUT_MSBUILDLOCATION (empty)
2023-05-27T18:42:10.3733163Z ##[debug]INPUT_MSBUILDVERSION (empty)
2023-05-27T18:42:10.3880783Z ##[debug]Entering Get-SolutionFiles.
2023-05-27T18:42:10.4025511Z ##[debug] Solution: 'D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln'
2023-05-27T18:42:10.4856796Z ##[debug]Leaving Get-SolutionFiles.
2023-05-27T18:42:10.4915713Z ##[debug]Entering Select-VSVersion.
2023-05-27T18:42:10.4938845Z ##[debug] PreferredVersion: '16.0'
2023-05-27T18:42:10.5061501Z ##[debug]Entering Get-VSPath.
2023-05-27T18:42:10.5089679Z ##[debug] Version: '16.0'
2023-05-27T18:42:10.5208074Z ##[debug]Entering Get-VisualStudio.
2023-05-27T18:42:10.5299743Z ##[debug] MajorVersion: '16'
2023-05-27T18:42:10.5300134Z ##[debug]Getting latest Visual Studio 16 setup instance.
2023-05-27T18:42:10.5362985Z ##[debug]Entering Invoke-VstsTool.
2023-05-27T18:42:10.5407101Z ##[debug] FileName: 'D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe'
2023-05-27T18:42:10.5501610Z ##[debug] Arguments: '-version [16.0,17.0) -latest -format json'
2023-05-27T18:42:10.5547369Z ##[debug] RequireExitCodeZero: 'True'
2023-05-27T18:42:10.5626892Z ##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\vswhere.exe" -version [16.0,17.0) -latest -format json
2023-05-27T18:42:10.6766275Z ##[debug][
2023-05-27T18:42:10.6929997Z ##[debug] {
2023-05-27T18:42:10.6930615Z ##[debug] "instanceId": "fe59f9b3",
2023-05-27T18:42:10.6931112Z ##[debug] "installDate": "2023-05-08T22:02:17Z",
2023-05-27T18:42:10.6931447Z ##[debug] "installationName": "VisualStudio/16.11.26+33529.622",
2023-05-27T18:42:10.6947177Z ##[debug] "installationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise",
2023-05-27T18:42:10.6983391Z ##[debug] "installationVersion": "16.11.33529.622",
2023-05-27T18:42:10.7004828Z ##[debug] "displayName": "Visual Studio Enterprise 2019",
2023-05-27T18:42:10.7027550Z ##[debug] "description": "Scalable, end-to-end solution for teams of any size",
2023-05-27T18:42:10.7048970Z ##[debug] "updateDate": "2023-05-08T22:02:17.6525533Z",
2023-05-27T18:42:10.7072236Z ##[debug] "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
2023-05-27T18:42:10.7093606Z ##[debug] "channelId": "VisualStudio.16.Release",
2023-05-27T18:42:10.7116346Z ##[debug] "installedChannelId": "VisualStudio.16.Release",
2023-05-27T18:42:10.7228970Z ##[debug] "channelUri": "aka.ms/.../channel",
2023-05-27T18:42:10.7251731Z ##[debug] "installedChannelUri": "aka.ms/.../channel",
2023-05-27T18:42:10.7274538Z ##[debug] "releaseNotes": "docs.microsoft.com/.../release-notes-v16.11
2023-05-27T18:42:10.7296107Z ##[debug] "thirdPartyNotices": "go.microsoft.com/.../
2023-05-27T18:42:10.7395256Z ##[debug] }
2023-05-27T18:42:10.7421543Z ##[debug]]
2023-05-27T18:42:10.7507177Z ##[debug]Exit code: 0
2023-05-27T18:42:10.7557292Z ##[debug]Leaving Invoke-VstsTool.
2023-05-27T18:42:10.7853274Z ##[debug]Leaving Get-VisualStudio.
2023-05-27T18:42:10.7854026Z ##[debug]Leaving Get-VSPath.
2023-05-27T18:42:10.7854544Z ##[debug]Leaving Select-VSVersion.
2023-05-27T18:42:10.7990238Z ##[debug]Entering Select-MSBuildPath.
2023-05-27T18:42:10.8017691Z ##[debug] PreferredVersion: '16.0'
2023-05-27T18:42:10.8041825Z ##[debug] Architecture: 'x86'
2023-05-27T18:42:10.8065831Z ##[debug]Defaulted MSBuild location method to: version
2023-05-27T18:42:10.8314243Z ##[debug]Entering Get-MSBuildPath.
2023-05-27T18:42:10.8339241Z ##[debug] Version: '16.0'
2023-05-27T18:42:10.8363190Z ##[debug] Architecture: 'x86'
2023-05-27T18:42:10.8405613Z ##[debug]Entering Get-VisualStudio.
2023-05-27T18:42:10.8464435Z ##[debug] MajorVersion: '16'
2023-05-27T18:42:10.8495683Z ##[debug]Leaving Get-VisualStudio.
2023-05-27T18:42:10.8725654Z ##[debug]Loading C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Build.Utilities.Core.dll
2023-05-27T18:42:11.1341642Z ##[debug]MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe
2023-05-27T18:42:11.1483986Z ##[debug]Leaving Get-MSBuildPath.
2023-05-27T18:42:11.1508793Z ##[debug]Leaving Select-MSBuildPath.
2023-05-27T18:42:11.1619515Z ##[debug]Entering Format-MSBuildArguments.
2023-05-27T18:42:11.1672186Z ##[debug] MSBuildArguments: '/p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b"'
2023-05-27T18:42:11.1694244Z ##[debug] Platform: ''
2023-05-27T18:42:11.1718720Z ##[debug] Configuration: ''
2023-05-27T18:42:11.1741914Z ##[debug] VSVersion: '16.0'
2023-05-27T18:42:11.1762817Z ##[debug] MaximumCpuCount: 'False'
2023-05-27T18:42:11.1825133Z ##[debug]AZURE_HTTP_USER_AGENT: 'VSTS_31145676-af6d-4895-bd4c-cafae951c485_build_3_0'
2023-05-27T18:42:11.1851291Z ##[debug]Leaving Format-MSBuildArguments.
2023-05-27T18:42:11.1982481Z ##[debug]Entering Invoke-BuildTools.
2023-05-27T18:42:11.2005105Z ##[debug] NuGetRestore: 'False'
2023-05-27T18:42:11.2047397Z ##[debug] SolutionFiles: 'D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln'
2023-05-27T18:42:11.2070393Z ##[debug] MSBuildLocation: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
2023-05-27T18:42:11.2092460Z ##[debug] MSBuildArguments: '/p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b" /p:VisualStudioVersion="16.0" /p:_MSDeployUserAgent="VSTS_31145676-af6d-4895-bd4c-cafae951c485_build_3_0"'
2023-05-27T18:42:11.2113035Z ##[debug] Clean: 'False'
2023-05-27T18:42:11.2136699Z ##[debug] NoTimelineLogger: 'False'
2023-05-27T18:42:11.2158052Z ##[debug] CreateLogFile: 'False'
2023-05-27T18:42:11.2179894Z ##[debug] LogFileVerbosity: 'diagnostic'
2023-05-27T18:42:11.2201199Z ##[debug] IsDefaultLoggerEnabled: 'True'
2023-05-27T18:42:11.2420875Z ##[debug]Entering Invoke-MSBuild.
2023-05-27T18:42:11.2518834Z ##[debug] ProjectFile: 'D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln'
2023-05-27T18:42:11.2542554Z ##[debug] MSBuildPath: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
2023-05-27T18:42:11.2565740Z ##[debug] AdditionalArguments: '/p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b" /p:VisualStudioVersion="16.0" /p:_MSDeployUserAgent="VSTS_31145676-af6d-4895-bd4c-cafae951c485_build_3_0"'
2023-05-27T18:42:11.2587004Z ##[debug] NoTimelineLogger: 'False'
2023-05-27T18:42:11.2610856Z ##[debug] IsDefaultLoggerEnabled: 'True'
2023-05-27T18:42:11.2633176Z ##[debug] LogFileVerbosity: 'diagnostic'
2023-05-27T18:42:11.2783442Z ##[debug]Asserting leaf path exists: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
2023-05-27T18:42:11.3248921Z ##[debug]Processed: ##vso[task.logdetail id=810f6220-3b67-47df-ac14-4687d0f9bb68;type=Process;progress=0;state=Initialized;name=Build BatchJobs.sln;starttime=2023-05-27T18:42:11.2748093Z]
2023-05-27T18:42:11.3249944Z ##[debug]Asserting leaf path exists: 'D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll'
2023-05-27T18:42:11.3250409Z ##[debug]Entering Invoke-VstsTool.
2023-05-27T18:42:11.3250771Z ##[debug] FileName: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe'
2023-05-27T18:42:11.3252443Z ##[debug] Arguments: '"D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=810f6220-3b67-47df-ac14-4687d0f9bb68|SolutionDir=D:\a\8\s\PROJECTS\BatchJobs|enableOrphanedProjectsLogs=true"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b" /p:VisualStudioVersion="16.0" /p:_MSDeployUserAgent="VSTS_31145676-af6d-4895-bd4c-cafae951c485_build_3_0"'
2023-05-27T18:42:11.3255813Z ##[debug] RequireExitCodeZero: 'True'
2023-05-27T18:42:11.3269889Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=810f6220-3b67-47df-ac14-4687d0f9bb68|SolutionDir=D:\a\8\s\PROJECTS\BatchJobs|enableOrphanedProjectsLogs=true"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\tools\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:BuildTasksDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm" /p:MetadataDirectory="D:\a\8\s\METADATA" /p:FrameworkDirectory="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage" /p:ReferenceFolder="D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.Application.DevALM.BuildXpp\ref\net40;D:\a\8\NuGets\Microsoft.Dynamics.AX.ApplicationSuite.DevALM.BuildXpp\ref\net40;D:\a\8\s\METADATA;D:\a\8\b" /p:VisualStudioVersion="16.0" /p:_MSDeployUserAgent="VSTS_31145676-af6d-4895-bd4c-cafae951c485_build_3_0"
2023-05-27T18:42:11.9961860Z Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
2023-05-27T18:42:12.2802354Z Build started 5/27/2023 6:42:12 PM.
2023-05-27T18:42:12.7493645Z ##[debug]Processed: ##vso[task.logdetail id=b8be7732-96fd-4523-a841-e6566c37d9ad;parentid=810f6220-3b67-47df-ac14-4687d0f9bb68;name=BatchJobs.sln;type=Build;starttime=2023-05-27T18:42:12.7464852Z;state=InProgress;]
2023-05-27T18:42:12.8977947Z Project "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" on node 1 (default targets).
2023-05-27T18:42:12.8989945Z ValidateSolutionConfiguration:
2023-05-27T18:42:12.8990511Z Building solution configuration "Debug|Any CPU".
2023-05-27T18:42:13.7560180Z ##[debug]Processed: ##vso[task.logdetail id=7142eb84-de48-4e6a-ae89-248bd127d5a6;parentid=b8be7732-96fd-4523-a841-e6566c37d9ad;name=BatchJobs.rnrproj;type=Build;starttime=2023-05-27T18:42:13.7526057Z;state=InProgress;]
2023-05-27T18:42:13.7888197Z ##[error]PROJECTS\BatchJobs\BatchJobs.rnrproj(120,3): Error MSB4019: The imported project "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found. Confirm that the expression in the Import declaration "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" is correct, and that the file exists on disk.
2023-05-27T18:42:13.7889513Z ##[debug]Processed: ##vso[task.logissue type=Error;sourcepath=D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj;linenumber=120;columnnumber=3;code=MSB4019;]The imported project "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found. Confirm that the expression in the Import declaration "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" is correct, and that the file exists on disk.
2023-05-27T18:42:13.7890452Z Project "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" (1) is building "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj" (2) on node 1 (default targets).
2023-05-27T18:42:13.7891005Z D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj(120,3): error MSB4019: The imported project "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found. Confirm that the expression in the Import declaration "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" is correct, and that the file exists on disk.
2023-05-27T18:42:13.7893802Z ##[debug]Processed: ##vso[task.logdetail id=7142eb84-de48-4e6a-ae89-248bd127d5a6;parentid=b8be7732-96fd-4523-a841-e6566c37d9ad;type=Build;result=Failed;finishtime=2023-05-27T18:42:13.7682327Z;progress=100;state=Completed;parentid=b8be7732-96fd-4523-a841-e6566c37d9ad;name=;]
2023-05-27T18:42:13.7895093Z Done Building Project "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj" (default targets) -- FAILED.
2023-05-27T18:42:13.7944273Z ##[debug]Processed: ##vso[task.logdetail id=b8be7732-96fd-4523-a841-e6566c37d9ad;parentid=810f6220-3b67-47df-ac14-4687d0f9bb68;type=Build;result=Failed;finishtime=2023-05-27T18:42:13.7838699Z;progress=100;state=Completed;parentid=810f6220-3b67-47df-ac14-4687d0f9bb68;name=;]
2023-05-27T18:42:13.7945221Z Done Building Project "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" (default targets) -- FAILED.
2023-05-27T18:42:13.7982109Z
2023-05-27T18:42:13.7982860Z Build FAILED.
2023-05-27T18:42:13.8050397Z
2023-05-27T18:42:13.8061160Z "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.sln" (default target) (1) ->
2023-05-27T18:42:13.8061816Z "D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj" (default target) (2) ->
2023-05-27T18:42:13.8062647Z D:\a\8\s\PROJECTS\BatchJobs\BatchJobs.rnrproj(120,3): error MSB4019: The imported project "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found. Confirm that the expression in the Import declaration "D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" is correct, and that the file exists on disk.
2023-05-27T18:42:13.8063149Z
2023-05-27T18:42:13.8063303Z 0 Warning(s)
2023-05-27T18:42:13.8063443Z 1 Error(s)
2023-05-27T18:42:13.8065192Z
2023-05-27T18:42:13.8066532Z Time Elapsed 00:00:01.52
2023-05-27T18:42:13.8203995Z ##[debug]Exit code: 1
2023-05-27T18:42:13.8299728Z ##[debug]Error record:
2023-05-27T18:42:13.8897348Z ##[debug]Invoke-VstsTool : Process 'msbuild.exe' exited with code '1'.
2023-05-27T18:42:13.8915478Z ##[debug]At D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1:122 char:13
2023-05-27T18:42:13.8934295Z ##[debug]+ Invoke-VstsTool -FileName $MSBuildPath -Arguments $argume ...
2023-05-27T18:42:13.8952747Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-05-27T18:42:13.8971515Z ##[debug] + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
2023-05-27T18:42:13.9029523Z ##[debug] + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-VstsTool
2023-05-27T18:42:13.9048501Z ##[debug]
2023-05-27T18:42:13.9076538Z ##[debug]Script stack trace:
2023-05-27T18:42:13.9117278Z ##[debug]at Invoke-Tool, D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\ps_modules\VstsTaskSdk\ToolFunctions.ps1: line 110
2023-05-27T18:42:13.9134048Z ##[debug]at Invoke-MSBuild, D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1: line 122
2023-05-27T18:42:13.9149701Z ##[debug]at Invoke-BuildTools, D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\node_modules\azure-pipelines-tasks-msbuildhelpers\InvokeFunctions.ps1: line 42
2023-05-27T18:42:13.9166045Z ##[debug]at <ScriptBlock>, D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\VSBuild.ps1: line 103
2023-05-27T18:42:13.9183403Z ##[debug]at <ScriptBlock>, <No file>: line 1
2023-05-27T18:42:13.9266507Z ##[debug]at <ScriptBlock>, <No file>: line 22
2023-05-27T18:42:13.9285892Z ##[debug]at <ScriptBlock>, <No file>: line 18
2023-05-27T18:42:13.9303235Z ##[debug]at <ScriptBlock>, <No file>: line 1
2023-05-27T18:42:13.9602421Z ##[debug]Exception:
2023-05-27T18:42:13.9649906Z ##[debug]Microsoft.PowerShell.Commands.WriteErrorException: Process 'msbuild.exe' exited with code '1'.
2023-05-27T18:42:13.9822282Z ##[error]Process 'msbuild.exe' exited with code '1'.
2023-05-27T18:42:13.9822899Z ##[debug]Processed: ##vso[task.logissue type=error]Process 'msbuild.exe' exited with code '1'.
2023-05-27T18:42:13.9931680Z ##[debug]Leaving Invoke-VstsTool.
2023-05-27T18:42:14.0036164Z ##[debug]Processed: ##vso[task.complete result=Failed]
2023-05-27T18:42:14.0061456Z ##[debug]Processed: ##vso[task.logdetail finishtime=2023-05-27T18:42:14.0028791Z;id=810f6220-3b67-47df-ac14-4687d0f9bb68;progress=100;state=Completed;result=Failed]
2023-05-27T18:42:14.0085524Z ##[debug]Leaving Invoke-MSBuild.
2023-05-27T18:42:14.0111957Z ##[debug]Leaving Invoke-BuildTools.
2023-05-27T18:42:14.0298785Z ##[debug]AGENT_VERSION: '3.220.2'
2023-05-27T18:42:14.1281393Z ##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=VSBuildV1]{"VsVersion":"16.0","CustomVersion":"","Platform":"","Configuration":"","MSBuildExecutionTimeSeconds":2.825}
2023-05-27T18:42:14.1282513Z ##[debug]Leaving D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.214.0\VSBuild.ps1.
2023-05-27T18:42:14.1284153Z ##[section]Finishing: Build solution $/Nuget Feed/DEV/PROJECTS/BatchJobs/BatchJobs.sln
Do you have any more information about the error message? Also, this is a duplicate so perhaps delete the other one?
community.dynamics.com/.../devops-build-pipeline-to-create-deployable-package
[error]D:\a\8\NuGets\Microsoft.Dynamics.AX.Platform.CompilerPackage\DevAlm\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets(52,5): Error : Exception in the file SolutionFileParser with Message - Could not find a part of the path 'D:\a\8\s\METADATA'.
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156