VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> how to change the build folder
https://www.visualmicro.com/forums/YaBB.pl?num=1500586484

Message started by visionalex on Jul 20th, 2017 at 9:34pm

Title: how to change the build folder
Post by visionalex on Jul 20th, 2017 at 9: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

Title: Re: how to change the build folder
Post by Visual Micro on Jul 20th, 2017 at 10: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.
project_properties.png ( 50 KB | 3 Downloads )

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