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 Change Solution Configuration cause project setting changed too (Read 1947 times)
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Change Solution Configuration cause project setting changed too
Dec 23rd, 2021 at 10:37am
Print Post  
Hi,

First of all, I know this is a feature, when user choose configuration profile Debug/Release, project setting will be changed too: add define _VMDEBUG, ...

But in solution configuration setting, I actually choose build profile for arduino project as Release (the only one I have). When I trigger build, arduino project setting also be changed too. I think the condition for this feature is Solution Configuration has "Debug" in name, not Project configuration.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Change Solution Configuration cause project setting changed too
Reply #1 - Dec 23rd, 2021 at 5:01pm
Print Post  
Hi, thanks for the info. We will look to see which config is applied. 

Does the following info help at all? 

Normally I would expect switching the solution to "Release" selects the "Release" configuration for all projects and switching the solution to "Debug" would select same name configuration name for all priojects.  You should be able to see if change this via the "Build>Configuration Manager" menu.
  
Back to top
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Change Solution Configuration cause project setting changed too
Reply #2 - Dec 23rd, 2021 at 9:25pm
Print Post  
Tim@Visual Micro wrote on Dec 23rd, 2021 at 5:01pm:
Hi, thanks for the info. We will look to see which config is applied. 

Does the following info help at all? 

Normally I would expect switching the solution to "Release" selects the "Release" configuration for all projects and switching the solution to "Debug" would select same name configuration name for all priojects.  You should be able to see if change this via the "Build>Configuration Manager" menu.


Hi Tim,

For Solution Configuration, I actually have
Debug_2010
Debug_2013
Debug_2019
Release_2010
Release_2013
Release_2019
Almost win32 projects has same configuration name

But for arduino projects, I have only 1 Release profile. Because I'm working on Mega2560 Board, and as far as I know, It's not support Debug on vMicro. Only logging debug, but that logging I'd already implemented before know about VM (use trial and buy license).

Then when I debug Win32 projects (the server one), I also build & upload arduino project (the client one) but its setting changed. I had to stop debugging win32 projects to changed back to Release_2019 to upload sketch.

Now I found a workaround for that, I choose Debug_2019 for win32 project in Release_2019 Solution Configuration, so I can debug win32 project and also build upload sketch without setting changed.

Hopefully you can check this for future vMicro Release Smiley
  
Back to top
 
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Change Solution Configuration cause project setting changed too
Reply #3 - Mar 24th, 2023 at 5:12am
Print Post  
Tim@Visual Micro wrote on Dec 23rd, 2021 at 5:01pm:
Hi, thanks for the info. We will look to see which config is applied. 

Does the following info help at all? 

Normally I would expect switching the solution to "Release" selects the "Release" configuration for all projects and switching the solution to "Debug" would select same name configuration name for all priojects.  You should be able to see if change this via the "Build>Configuration Manager" menu.


Hi Tim,

I'm using Vs2019, VM version is: 2023.220.1903
I created separated build configuration profiles: Debug/Release
Configuration keep changing when I switch Solution Configuration and perform Build

For example I have config as below:
<AdditionalIncludeDirectories>
$(ProjectDir)..\esp32c3_firmware;
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>

When I switch Solution Configuration, config is changed as below (Removed "$(ProjectDir)..\esp32c3_firmware;"):
<AdditionalIncludeDirectories>
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>

Then I perform build, the config also changes as below (Added "$(ProjectDir)..\esp32c3_firmware;"):
<AdditionalIncludeDirectories>
$(ProjectDir)..\esp32c3_firmware;
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>
  
Back to top
 
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Change Solution Configuration cause project setting changed too
Reply #4 - Apr 1st, 2023 at 1:58am
Print Post  
Cong Quyen Knight wrote on Mar 24th, 2023 at 5:12am:
Tim@Visual Micro wrote on Dec 23rd, 2021 at 5:01pm:
Hi, thanks for the info. We will look to see which config is applied. 

Does the following info help at all? 

Normally I would expect switching the solution to "Release" selects the "Release" configuration for all projects and switching the solution to "Debug" would select same name configuration name for all priojects.  You should be able to see if change this via the "Build>Configuration Manager" menu.


Hi Tim,

I'm using Vs2019, VM version is: 2023.220.1903
I created separated build configuration profiles: Debug/Release
Configuration keep changing when I switch Solution Configuration and perform Build

For example I have config as below:
<AdditionalIncludeDirectories>
$(ProjectDir)..\esp32c3_firmware;
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>

When I switch Solution Configuration, config is changed as below (Removed "$(ProjectDir)..\esp32c3_firmware;"):
<AdditionalIncludeDirectories>
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>

Then I perform build, the config also changes as below (Added "$(ProjectDir)..\esp32c3_firmware;"):
<AdditionalIncludeDirectories>
$(ProjectDir)..\esp32c3_firmware;
$(ProjectDir)..\..\..\arduino_lib\include;
</AdditionalIncludeDirectories>


Hi @Tim, this should be a bug, please check
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Change Solution Configuration cause project setting changed too
Reply #5 - Apr 1st, 2023 at 11:55am
Print Post  
When opening a new project or selecting a different project configuration the intellisense makes best attempt to be correct.

When clicking build the intellisense is updated with more accurate results. 

The build process can be slow therefore there are two levels to balance the responsiveness of the IDE.

1) What problem does this cause? The project settings you mention relate only to intellisense. 

2) Please provide the information requested in yellow above so that we can understand why ..\esp32c3_firmware is used.
  
Back to top
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Change Solution Configuration cause project setting changed too
Reply #6 - Apr 1st, 2023 at 1:55pm
Print Post  
Tim@Visual Micro wrote on Apr 1st, 2023 at 11:55am:
esp32c3_firmware


Hi Tim,

1) this cause .vcxproj file is always marked as modified in git.
2) esp32c3_firmware is the project that I'm trying to build.

Also, when change Solution Configuration, both Debug and Release setting are modified too. Could it be only the selected one?
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Change Solution Configuration cause project setting changed too
Reply #7 - Apr 1st, 2023 at 2:37pm
Print Post  
Thanks, the problem might be the "also" in your last message. We will look into that.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint