VS Arduino
Visual Micro >> Project Guidance >> Using MSBUILD - Azure DevOps
https://www.visualmicro.com/forums/YaBB.pl?num=1595947248

Message started by Darren Lock on Jul 28th, 2020 at 2:40pm

Title: Using MSBUILD - Azure DevOps
Post by Darren Lock on Jul 28th, 2020 at 2:40pm
I'm trying to get the MSBUILD command to work from the command prompt for a VM Arduino (ESP32) project. The project builds fine within Visual Studio. When I run MSBUILD I get hundreds of errors of the following kind:
C:\Users\darre\AppData\Local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-
elf\include\c++\5.2.0\bits\stl_algobase.h(1013,24): error C4308: negative integral constant converted to unsigned type
[C:\agent\_work\1\s\BLE Scanner\BLE Scanner.vcxproj]

I'm guessing there are other parameters to pass to MSBUILD in addition to what is stored in the VS project?

Title: Re: Using MSBUILD - Azure DevOps
Post by Simon Hopkinson on Jul 28th, 2020 at 3:16pm
We don't directly use the MSBuild process, and we have a command line tool to perform the build tasks without running VS as you need:

Visual Micro Arduino Command Line Interface (CLI)

The only required parameters are the VSXPROJ file location shown in the first example on the page, and it is often best to build in the Release Configuration which would need setting in the project before building with the command line tool.

We also have an Instructable article below showing how this can be setup to facilitate a Cloud Build system as well, using this tool:
Arduino Cloud Build

You can use/copy the CLI as required, does not require licensing/activation.


Title: Re: Using MSBUILD - Azure DevOps
Post by Darren Lock on Jul 28th, 2020 at 4:52pm
Simon,

thank you very much, this is exactly what I needed.

Rgds, Darren.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.