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 VS 2022 'Connect to Linux' dialog on solution build (Read 1920 times)
jtaylor
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2023
VS 2022 'Connect to Linux' dialog on solution build
Dec 6th, 2023 at 4:27pm
Print Post  
Hi all  Smiley

We have just started using VM in VS 2022, importing an existing Arduino project into an existing VS2022 solution.

No issues when we build the VM/Arduino project only, but when we build the solution we get a dialog box pop up 'Connect to Linux' (see attachment) and also then when we dismiss that dialog we get an error in the Error List pane of VS2022:

"There are no remote machines configured for remote builds. Please configure a machine using Tools | Options | Cross Platform | Connection Manager.      GeneratorController      C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Application Type\Linux\1.0\Linux.targets      160"

Has anyone else had this/any idea how we can stop it?

Build properties attached but they are only output when building only the project; not the solution.

Many thanks!

James
  

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


Posts: 2710
Joined: Feb 13th, 2019
Re: VS 2022 'Connect to Linux' dialog on solution build
Reply #1 - Dec 6th, 2023 at 4:28pm
Print Post  
Thanks for the report.

Did you import your project using the File > Open Arduino Project route?

If the project has been successfully imported it should show "ProjectName (Arduino)" in the Solution Explorer.
  
Back to top
IP Logged
 
jtaylor
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2023
Re: VS 2022 'Connect to Linux' dialog on solution build
Reply #2 - Dec 6th, 2023 at 5:39pm
Print Post  
Hi Simon,

Thanks for your help on this.

Yes thats correct - please see screenshot.

I've done some more experimenting - created a new solution with a new VM project (vMicro->New Arduino Project) and added a new net core Console App project as well.  When I build the solution with the INO file as the active document, it builds fine. When I build the solution with the Console App's Program.cs file as the active document, I get the Connect to Linux dialog appear.

I updated VS today - Version 17.8.3.

Many thanks
  

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


Posts: 2710
Joined: Feb 13th, 2019
Re: VS 2022 'Connect to Linux' dialog on solution build
Reply #3 - Dec 6th, 2023 at 6:06pm
Print Post  
Thanks for the update.

Can you uncheck the Build box for your Arduino Project in the Build > Configuration window and see if this helps?
(If it does then repeat for the other configurations you have)
  
Back to top
IP Logged
 
jtaylor
Newbies
*
Offline


Posts: 3
Joined: Dec 6th, 2023
Re: VS 2022 'Connect to Linux' dialog on solution build
Reply #4 - Dec 6th, 2023 at 8:16pm
Print Post  
Hi Simon,

Yes thats what I've done for now, thanks

James
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint