msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

David Aldrich-2

I have a msbuild job that runs within a Jenkins declarative script:

 

stage('build_myProj_VisualStudio') {

 

    agent { label "jenkinswin10" }

 

    environment {

        VSMSBUILDCMD_14_0='C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsMSBuildCmd.bat'

        VSMSBUILDCMD_14_1='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsMSBuildCmd.bat'

        _MSPDBSRV_ENDPOINT_ = "${env.BUILD_NUMBER}"

    }

 

    steps {

        bat '''

            SET PATH=""

            call "%VSMSBUILDCMD_14_1%"

            msbuild %WORKSPACE%\\MSVC\\myproj.sln /p:Configuration=Release /p:Platform="Win32" /flp:logfile=ZodiacOutput.log /verbosity:normal

        '''

 

when I run the job I get error:

 

(Link target) ->

  LINK : fatal error LNK1101: incorrect MSPDB140.DLL version; recheck installation of this product

 

However, if I run the commands from the command line or from a Freestyle Jenkins job the job succeeds.

 

The error occurs with Visual Studio Build Tools 2017 v.15.7.1 but the job succeeded with v.15.6.0.

 

Any ideas how to fix this please?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1fe054c2d84a44b6ba14664b6de1220b%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

slide
Are you running it the exact same way in the freestyle job? Meaning, the environment variables are set exactly the same and you are using a bat step with the same exact commands?

On Tue, May 15, 2018 at 7:57 AM David Aldrich <[hidden email]> wrote:

I have a msbuild job that runs within a Jenkins declarative script:

 

stage('build_myProj_VisualStudio') {

 

    agent { label "jenkinswin10" }

 

    environment {

        VSMSBUILDCMD_14_0='C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsMSBuildCmd.bat'

        VSMSBUILDCMD_14_1='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsMSBuildCmd.bat'

        _MSPDBSRV_ENDPOINT_ = "${env.BUILD_NUMBER}"

    }

 

    steps {

        bat '''

            SET PATH=""

            call "%VSMSBUILDCMD_14_1%"

            msbuild %WORKSPACE%\\MSVC\\myproj.sln /p:Configuration=Release /p:Platform="Win32" /flp:logfile=ZodiacOutput.log /verbosity:normal

        '''

 

when I run the job I get error:

 

(Link target) ->

  LINK : fatal error LNK1101: incorrect MSPDB140.DLL version; recheck installation of this product

 

However, if I run the commands from the command line or from a Freestyle Jenkins job the job succeeds.

 

The error occurs with Visual Studio Build Tools 2017 v.15.7.1 but the job succeeded with v.15.6.0.

 

Any ideas how to fix this please?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1fe054c2d84a44b6ba14664b6de1220b%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcP-paRrKejc-TyLpFABJZup0eOCmwEBfPVtQcJ2xPAQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

David Aldrich-2

Thanks Slide, good point.  The freestyle job did not have:

 

_MSPDBSRV_ENDPOINT_ = "${env.BUILD_NUMBER}"

 

without that the declarative script passes.

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Slide
Sent: 15 May 2018 16:34
To: [hidden email]
Subject: Re: msbuild fatal error LNK1101 with Visual Studio Build Tools 2017 v.15.7.1 in declarative script

 

Are you running it the exact same way in the freestyle job? Meaning, the environment variables are set exactly the same and you are using a bat step with the same exact commands?

 

On Tue, May 15, 2018 at 7:57 AM David Aldrich <[hidden email]> wrote:

I have a msbuild job that runs within a Jenkins declarative script:

 

stage('build_myProj_VisualStudio') {

 

    agent { label "jenkinswin10" }

 

    environment {

        VSMSBUILDCMD_14_0='C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsMSBuildCmd.bat'

        VSMSBUILDCMD_14_1='C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsMSBuildCmd.bat'

        _MSPDBSRV_ENDPOINT_ = "${env.BUILD_NUMBER}"

    }

 

    steps {

        bat '''

            SET PATH=""

            call "%VSMSBUILDCMD_14_1%"

            msbuild %WORKSPACE%\\MSVC\\myproj.sln /p:Configuration=Release /p:Platform="Win32" /flp:logfile=ZodiacOutput.log /verbosity:normal

        '''

 

when I run the job I get error:

 

(Link target) ->

  LINK : fatal error LNK1101: incorrect MSPDB140.DLL version; recheck installation of this product

 

However, if I run the commands from the command line or from a Freestyle Jenkins job the job succeeds.

 

The error occurs with Visual Studio Build Tools 2017 v.15.7.1 but the job succeeded with v.15.6.0.

 

Any ideas how to fix this please?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1fe054c2d84a44b6ba14664b6de1220b%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcP-paRrKejc-TyLpFABJZup0eOCmwEBfPVtQcJ2xPAQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Click here to report this email as spam.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/90a1471f143244aea116a5ecc071b7e8%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.