Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 

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 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
how to change the build folder (Read 3227 times)
visionalex
Newbies
*
Offline



Posts: 9
how to change the build folder
Jul 20th, 2017 at 10:34pm
 
Hy Tim,
how to change the build folder in VisualStudio 2015 professional.
Normaly the path is: file:///C:/Users/alex/AppData/Local/Temp/VMBuilds
But this path should be
./firmware
this is an relative path.
I don't found the path in
Options->Visual Micro->Compiler->Build Folder
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11487
United Kingdom
Re: how to change the build folder
Reply #1 - Jul 20th, 2017 at 11:05pm
 
Hi,

Thanks for posting the question

There is a two step build process.

1) Build in temp folder which can be changed in tools>options as you describe.

2) After build the output is copied to the final build folder which can be specified per project in the standard Visual Studio project property pages. We make use of the intelligence of Visual Studio for the final build folder which can use relative paths and macros.

You can see below the standard Visual Studio C++ project properties with the Output Directory selected. Note that by default visual studio uses the macro "$(SolutionDir)$(Configuration)\" for the output directory. This means your firmware will be in a sub folder below where the Solution (.sln) called "\Release" or "\Debug" etc.

If you click into the Output Directory property the pick list button shows a list of all Visual Studio macros. Notice there is one called $(ProjectDir).

Therefore an Output Directory of "$(ProjectDir)firmware" should produce the result that you are looking for.

I hope that helps.
Back to top
 

Please Register or Login to the Forum to see File Attachments

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print