Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Using MSBUILD - Azure DevOps (Read 2168 times)
Darren Lock
Newbies
*
Offline


Posts: 2
Location: Brecon, Wales, UK
Joined: Jul 28th, 2020
Using MSBUILD - Azure DevOps
Jul 28th, 2020 at 2:40pm
Print Post  
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:
\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?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2496
Joined: Feb 13th, 2019
Re: Using MSBUILD - Azure DevOps
Reply #1 - Jul 28th, 2020 at 3:16pm
Print Post  
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.

« Last Edit: Jul 28th, 2020 at 4:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Darren Lock
Newbies
*
Offline


Posts: 2
Location: Brecon, Wales, UK
Joined: Jul 28th, 2020
Re: Using MSBUILD - Azure DevOps
Reply #2 - Jul 28th, 2020 at 4:52pm
Print Post  
Simon,

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

Rgds, Darren.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint