Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Using MSBUILD - Azure DevOps (Read 171 times)
Darren Lock
Newbies
*
Offline



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



Posts: 464
Re: Using MSBUILD - Azure DevOps
Reply #1 - Jul 28th, 2020 at 4: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.

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



Posts: 2
Brecon, Wales, UK
Re: Using MSBUILD - Azure DevOps
Reply #2 - Jul 28th, 2020 at 5:52pm
 
Simon,

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

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