question

MohammadAftab-6865 avatar image
0 Votes"
MohammadAftab-6865 asked DavidDowning-2679 answered

[error]Process 'msbuild.exe' exited with code '1'

I am deploying the BizTalk project to Azure DevOps for CI/CD. In Azure DevOps, I created a new Agent called "Test pool".

when I create a Build pipeline, I am getting the below error.

Build solution BizTalkDevOpsDemo.sln

View raw log

Starting: Build solution BizTalkDevOpsDemo.sln

==============================================================================

Task : Visual Studio build

Description : Build with MSBuild and set the Visual Studio version property

Version : 1.199.0

Author : Microsoft Corporation

Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/visual-studio-build

==============================================================================

"C:\agents_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.199.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [17.0,18.0) -latest -format json

"C:\agents_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.199.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [17.0,18.0) -products Microsoft.VisualStudio.Product.BuildTools -latest -format json

"C:\agents_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.199.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [16.0,17.0) -latest -format json

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" "C:\agents_work\3\s\BizTalkDevOpsDemo.sln" /nologo /nr:false /dl:CentralLogger,"C:\agents_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.199.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=b9c461fa-80fe-47b3-b0ff-4060efbee80c|SolutionDir=C:\agents_work\3\s|enableOrphanedProjectsLogs=true"*ForwardingLogger,"C:\agents_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.199.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:OutputPath=C:\agents_work\3\a\BTS\BizTalkDevOpsDemo\ /p:VisualStudioVersion="16.0" /p:_MSDeployUserAgent="VSTS_f82be4ec-4c29-4226-9dfa-8eb0a30e25b0_build_6_0"

MSBUILD : error MSB1009: Project file does not exist.

Switch: C:\agents_work\3\s\BizTalkDevOpsDemo.sln

[error]Process 'msbuild.exe' exited with code '1'.

Finishing: Build solution BizTalkDevOpsDemo.sln


200732-capture1.png



biztalk-server
capture1.png (50.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KamleshKumar avatar image
0 Votes"
KamleshKumar answered KamleshKumar commented

Hi There,

Thank you for asking this question on the Microsoft Q&A Platform.

First of all this is not BizTalk server issue, it's more an Azure DevOps issue. Though I am adding some solution that can be helpful for you,

https://docs.microsoft.com/en-us/answers/questions/574694/msbuild-error-msb1009-project-file-does-not-exist.html

Regards,
Kamlesh Kumar
BizTalk Techie

If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @MohammadAftab-6865

Following up to see if the above information was helpful. And, if you have any further query do let us know.

0 Votes 0 ·
DavidDowning-2679 avatar image
0 Votes"
DavidDowning-2679 answered

When you are building a BizTalk Server Solution on a DevOps agent, you need to make sure all the BizTalk SDK/Nuget components are also on the new agent you created. Refer to the following for BTS MSBuild information: https://docs.microsoft.com/en-us/biztalk/core/standalone-msbuild

One thing you can do is log onto the agent, open a command window and navigate to the folder where the project is located and try to build it yourself. Make sure all the required BizTalk SDK components have been installed on the Agent.

When you run the BizTalk Server Installer on the agent, make sure the development tools/SDK are included. In some cases you may need third party SDKs as well or a specific version of Windows, PowerShell,... the list goes on.

If you can build it on your development computer, make sure the agent is similar in terms of VS Build tools, Windows, and any other dependencies required by your BTS solution.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.