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 Build from Command Line (Read 5938 times)
Scott S
Newbies
*
Offline


Posts: 1
Joined: Mar 24th, 2016
Build from Command Line
Mar 24th, 2016 at 2:57am
Print Post  
Is there a way to use the Visualmicro build system from the command line? For other Visual Studio Add-ins/Extensions, I run "devenv myproj.vcxproj /build" or "MSBuild myproj.vcxproj". My main use for command line build is continuous integration; I want to make sure the project is built on a Git pull request or a push to particular Git branches. Or just for nightly builds.

Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build from Command Line
Reply #1 - Mar 24th, 2016 at 3:46pm
Print Post  
Hi,

It does not use msbuild at the moment but it is under review.

Thanks
  
Back to top
WWW  
IP Logged
 
Tomasz Grobelny
Newbies
*
Offline


Posts: 2
Joined: Mar 14th, 2017
Re: Build from Command Line
Reply #2 - Mar 14th, 2017 at 11:24am
Print Post  
Any update for command line builds (not necessarily msbuild)? Any other ideas how to automate the build?

Frankly speaking it would be a huge drawback of Visual Micro if it was not possible to build the solution from command line in any way Sad
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build from Command Line
Reply #3 - Mar 14th, 2017 at 5:51pm
Print Post  
Yes I agree.

Since this last post Arduino has been through huge transition and implemented a new builder with new command line. This transition has only recently stabilized.

So it certainly on the list for the new month or two.

Of course if you use standard Arduino project/folder structure for your code then you can use the Arduino CLI.



  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build from Command Line
Reply #4 - Mar 28th, 2017 at 1:09am
Print Post  
There is a pre release for the new build tool linked via the page below if you would like to try it.

http://www.visualmicro.com/page/Visual-Micro-Command-Line-Interface.aspx
  
Back to top
WWW  
IP Logged
 
Tomasz Grobelny
Newbies
*
Offline


Posts: 2
Joined: Mar 14th, 2017
Re: Build from Command Line
Reply #5 - Nov 23rd, 2017 at 10:17am
Print Post  
I tried this tool just now and I get the following output:

The operation failed with exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

Any idea what is wrong?
  
Back to top
 
IP Logged
 
Sylvv
Newbies
*
Offline


Posts: 1
Joined: Dec 14th, 2017
Re: Build from Command Line
Reply #6 - Dec 14th, 2017 at 8:00am
Print Post  
Hi!

I tried and managed to get it working for a project. Yet, it seems there is an issue with projects using sub-folders.

My project folder contains the .vcxproj and .ino files. The .ino refers to cpp files under a sub-folder "src". When we build with command line tool, files are copied to a temporary folder, but cpp files are copied in the root project folder instead of subfolder and that breaks the build.



  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build from Command Line
Reply #7 - Dec 23rd, 2017 at 2:25pm
Print Post  
Hi,

Are the files in or below theĀ  "\src" sub folder "included" in the solution explorer?

The project builds okay in visual studio?

« Last Edit: Dec 23rd, 2017 at 2:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint