We build Visual Studio C++ projects using Jenkins. We don’t use the MSBuild plugin but simply call msbuild from a bat step. It is necessary to call the Visual Studio Developer startup script first, from within that step.
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Waite Sent: 26 April 2018 21:17 To: [email protected] Subject: Re: Visual Studio Environment That was my experience as well. It has been a long time since I worked with Visual Studio based build projects, but all the projects I did seemed to require a prior call to the environment setting script. Mark Waite On Thu, Apr 26, 2018 at 8:40 AM <[email protected]<mailto:[email protected]>> wrote: Hey All, Just a sanity check. I am getting familiar with Jenkins and using the msbuild plugin for Visual Studio solutions/projects. With regard to generating a package to a filesystem for deployment; I have found that the msbuild only works if I set up the environment using the Visual Studio Developer startup script. I must be missing something as I've seen numerous examples of msbuild generating a package for Web Deploy without mention of such a step? Is using the script to set the environment for a Visual Studio solution a common practice? Hope that made sense -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1a8c10ba-4f82-470f-b02f-144e85845af6%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/1a8c10ba-4f82-470f-b02f-144e85845af6%40googlegroups.com?utm_medium=email&utm_source=footer>. 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHob7t4QRZPhuwXS9KozwA9oMA0vyOxGbFB%2Bwa4ephbHg%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHob7t4QRZPhuwXS9KozwA9oMA0vyOxGbFB%2Bwa4ephbHg%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Click here<https://www.mailcontrol.com/sr/NOUNdhmWc2vGX2PQPOmvUmGqEHcKtgpyLTCffiyeqI8YwEJnSVW!5cwdon2SYrNfRgn4NA7VM3qZtQUzGWYsdQ==> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bc448bc4e2a64cfa9e62c95c0eae2a8f%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
