Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MSBuild task failed because of project file does not exist in Bamboo Edited

Build Inora Life Project - Inora Plan - Default Job #52 (ILP-IP-JOB1-52) started building on agent Default Agent

Build working directory is C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1
Executing build Inora Life Project - Inora Plan - Default Job #52 (ILP-IP-JOB1-52)
Starting task 'Check out task' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
Checking out into C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1
Updating source code to revision: 52130d9c6f2c4cdd27ffec70900752eebd51e873
Fetching 'refs/heads/master' from 'ssh://git@localhost:7999/pt/inora.git'.
Warning: Permanently added '[127.0.0.1]:58910' (RSA) to the list of known hosts.
Fetching master
Checking out revision 52130d9c6f2c4cdd27ffec70900752eebd51e873.
Your branch is up to date with 'origin/master'.
Already on 'master'
Updated source code to revision: 52130d9c6f2c4cdd27ffec70900752eebd51e873
Finished task 'Check out task' with result: Success
Running pre-build action: VCS Version Collector
Skipping execution of task 'com.atlassian.bamboo.plugin.dotnet:devenv' as it is disabled
Starting task 'Compile task' of type 'com.atlassian.bamboo.plugin.dotnet:msbuild'
Beginning to execute external process for build 'Inora Life Project - Inora Plan - Default Job #52 (ILP-IP-JOB1-52)'\n ... running command line: \nC:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe @D:\Program Files\Atlassian\Bamboo\temp\ILP-IP-JOB1-52-MsBuildTaskType-8174898094001215050.rsp\n ... in: C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=master\nbamboo_planRepository_1_branchDisplayName=master\nbamboo_repository_revision_number=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_capability_system_builder_nunit_NUnit_2_6_4=C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console.exe\nbamboo_resultsUrl=http://183.159.120.13:8085/browse/ILP-IP-JOB1-52\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__32bit_=C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe\nbamboo_build_working_directory=C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1\nbamboo_planRepository_1_name=InoraRepo\nbamboo_buildKey=ILP-IP-JOB1\nbamboo_shortPlanName=Inora Plan\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__64bit_=C:\WINDOWS\Microsoft.NET\Framework64\v3.5\MSBuild.exe\nbamboo_repository_589825_previous_revision_number=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_repository_589825_git_branch=master\nbamboo_planRepository_name=InoraRepo\nbamboo_capability_system_builder_devenv_devenv_com=D:\Program Files\Visual Studio 2017\Common7\IDE\nbamboo_buildNumber=52\nbamboo_repository_589825_name=InoraRepo\nbamboo_shortJobName=Default Job\nbamboo_buildResultsUrl=http://183.159.120.13:8085/browse/ILP-IP-JOB1-52\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__64bit_=C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\MSBuild.exe\nbamboo_planRepository_repositoryUrl=ssh://git@localhost:7999/pt/inora.git\nbamboo_agentId=196609\nbamboo_planName=Inora Life Project - Inora Plan\nbamboo_shortPlanKey=IP\nbamboo_shortJobKey=JOB1\nbamboo_planRepository_revision=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_buildTimeStamp=2018-12-12T01:40:57.065+08:00\nbamboo_repository_previous_revision_number=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_capability_system_builder_nunit_NUnit_2_6_4__32bit_=C:\Program Files (x86)\NUnit 2.6.4\bin\nunit-console-x86.exe\nbamboo_planRepository_previousRevision=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_repository_git_branch=master\nbamboo_buildResultKey=ILP-IP-JOB1-52\nbamboo_repository_branch_name=master\nbamboo_buildPlanName=Inora Life Project - Inora Plan - Default Job\nbamboo_planRepository_1_revision=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_capability_system_builder_msbuild_MSBuild_v2_0__32bit_=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe\nbamboo_repository_589825_git_repositoryUrl=ssh://git@localhost:7999/pt/inora.git\nbamboo_repository_name=InoraRepo\nbamboo_repository_589825_branch_name=master\nbamboo_capability_system_builder_msbuild_MSBuild_v3_5__32bit_=C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe\nbamboo_dependenciesDisabled=false\nbamboo_buildFailed=false\nbamboo_planRepository_branch=master\nbamboo_agentWorkingDirectory=C:\ProgramData\bamboo-home\xml-data\build-dir\nbamboo_capability_system_git_executable=D:\Program Files\Git\cmd\git.exe\nbamboo_repository_git_username=\nbamboo_planRepository_1_previousRevision=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_planRepository_branchDisplayName=master\nbamboo_planRepository_1_type=bbserver\nbamboo_planRepository_branchName=master\nbamboo_capability_system_jdk_JDK=D:\Program Files\Java\jdk1.8.0_161\nbamboo_repository_589825_git_username=\nbamboo_plan_storageTag=plan-393217\nbamboo_hg_cache_directory=C:\ProgramData\bamboo-home\xml-data\build-dir\_hg-repositories-cache\nbamboo_planRepository_1_username=\nbamboo_planRepository_type=bbserver\nbamboo_git_cache_directory=C:\ProgramData\bamboo-home\xml-data\build-dir\_git-repositories-cache\nbamboo_ManualBuildTriggerReason_userName=yangyong\nbamboo_repository_git_repositoryUrl=ssh://git@localhost:7999/pt/inora.git\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__64bit_=C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe\nbamboo_tmp_directory=C:\ProgramData\bamboo-home\temp\nbamboo_working_directory=C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1\nbamboo_planKey=ILP-IP\nbamboo_planRepository_1_repositoryUrl=ssh://git@localhost:7999/pt/inora.git\nbamboo_planRepository_username=\nbamboo_capability_system_jdk_JDK_1_8=D:\Program Files\Java\jdk1.8.0_161\nbamboo_capability_system_jdk_JDK_1_8_0_161=D:\Program Files\Java\jdk1.8.0_161\nbamboo_repository_589825_revision_number=52130d9c6f2c4cdd27ffec70900752eebd51e873\nbamboo_planRepository_1_branchName=master\n
Microsoft(R) 生成引擎版本 4.7.3056.0
[Microsoft .NET Framework 版本 4.0.30319.42000]
版权所有 (C) Microsoft Corporation。保留所有权利。
MSBUILD : error MSB1009: 项目文件不存在。
开关: **/WinFormDemo.sln
Failing task since return code of [C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe @D:\Program Files\Atlassian\Bamboo\temp\ILP-IP-JOB1-52-MsBuildTaskType-8174898094001215050.rsp] was 1 while expected 0
Finished task 'Compile task' with result: Failed
Running post build plugin 'NCover Results Collector'
Running post build plugin 'Artifact Copier'
Publishing an artifact: IAArtifacts
Unable to publish artifact [IAArtifacts]:
The artifact hasn't been successfully published after 8.411 ms
Running post build plugin 'npm Cache Cleanup'
Running post build plugin 'Clover Results Collector'
Running post build plugin 'Docker Container Cleanup'
Finalising the build...
Stopping timer.
Build ILP-IP-JOB1-52 completed.
Running on server: post build plugin 'NCover Results Collector'
Running on server: post build plugin 'Build Hanging Detection Configuration'
Running on server: post build plugin 'Clover Delta Calculator'
Running on server: post build plugin 'Maven Dependencies Postprocessor'
All post build plugins have finished
Generating build results summary...
Saving build results to disk...
Logging substituted variables...
Indexing build results...
Finished building ILP-IP-JOB1-52

--------------------------------------------------------------

This issue has been pending for quite a long time and I have no idea to fix it out. Please help take a look. Thanks.

Bamboo MSBuild task.PNGFolder.PNG

1 answer

Hi @yztech,

Could you please confirm the MSBuild project is located under Bamboo's Build Working Directory (C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1). Based on the screenshot attached, the WinFormDemo.sln is located under G:\SourceCodes\... in which differs from Build Working Directory Bamboo is expecting.

In Tasks definition, we can see that you have a Source Code Checkout task defined. What are you getting from ssh://git@localhost:7999/pt/inora.git repository?

Starting task 'Check out task' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
Checking out into C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1

As per above, you can notice the content from ssh://git@localhost:7999/pt/inora.git repository is being downloaded into C:\ProgramData\bamboo-home\xml-data\build-dir\ILP-IP-JOB1. Could you review if this is the same content as described in G:\SourceCodes\InoraCodes\WinFormDemo or there is a different location path?

After reviewing the source code and its directory structure downloaded into the Build Working Directory, try to provide the path to WinFormDemo.sln relative Bamboo's Build Working Directory instead of **/WinFormDemo.sln

Kind regards,

Rafael

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

703 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you