Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    MsBuild failes with Error code -1

    Scheduled Pinned Locked Moved Support
    5 Posts 1 Posters 23 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,
      I am evaluating the BuildMaster and I was able to get the latest from TFS and when I execute the MSBuild, it failes with an error code -1. Here is output I see:

      Action 1: Build (Debug; AnyCPU) SPE.WebServices.WebApi.Internal.sln using .NET 3.5 from default directory to the \bin{config} subdirectory of each project in the solutionCustom Variables: (none)Source and Target directory same; splitting.AgentBasedAction Initialization Complete: Temp Directory: C:\BuildMaster_SVCTMP_A2_S3\TMP Source Directory: C:\BuildMaster_SVCTMP_A2_S3\SRC Target Directory: C:\BuildMaster_SVCTMP_A2_S3\WRK Server: IE9WIN7 (Id: 1)Initializing action...Initialization complete. Executing...Building Application Action: Build; Path: C:\BuildMaster_SVCTMP_A2_S3\SRC\SPE.WebServices.WebApi.Internal.slnArguments: "C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe" "C:\BuildMaster_SVCTMP_A2_S3\SRC\SPE.WebServices.WebApi.Internal.sln" "/p:Configuration=Debug;Platform=AnyCPU"Working Directory: C:\BuildMaster_SVCTMP_A2_S3\SRCExecuting C:\BuildMaster_SVCTMP\ExtTemp\WindowsSdk\BmBuildLogger.exeStep failed (msbuild returned code -1)Execution complete. Finalizing...Target directory unused; joining with source.Finalization complete.

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Few troubleshooting questions:

        Is there any indication of an error message logged in that output? What version of BuildMaster are you using, and what version of the WindowsSDK extension?

        Also, you almost never need to supply a .NET version number to the Build MSBuild Project action as the project file will have that information within it.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi, Thanks for the response.
          There is no other error or failure I see in the log. TFS get latest completed just fine before the build.

          Also, I tried the way you mentioned as well (not supplying the .net framework version) It still throws me the same error.

          I am using the latest version of BuildMaster 4.0.9

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            What happens if you run an Execute Command Line action with the following options:

            Exe Path: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe

            Arguments: "SPE.WebServices.WebApi.Internal.sln" "/p:Configuration=Debug;Platform=AnyCPU"

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              Command line works just fine..

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation