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 Convert Solution to latest version Not working. (Read 2553 times)
Hrvoje
Newbies
*
Offline


Posts: 3
Joined: Aug 3rd, 2022
Convert Solution to latest version Not working.
Jun 14th, 2023 at 4:29pm
Print Post  

I'm trying to convert my Solution to the latest version, but nothing happened.
Micro Build output:
Backup To: file:///C:/DS/.vs/VMLinuxConvertBackup/45091,7653256597
1. Scanning DS for Projects...
String cannot be of zero length.
Parameter name: oldValue
Reloading 'C:\DS\DS.sln'

Any suggestion?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Convert Solution to latest version Not working.
Reply #1 - Jun 14th, 2023 at 5:25pm
Print Post  
Thanks for the report, we will investigate this issue and add any further resiliency we can.

I expect it could be due to the Sketch Folder being on the root of the C: drive, so one suggestion would be to move the whole Solution Folder to a folder one folder down (so you end up with e.g. C:\Arduino\DS\DS.sln).

If you could also enable vMicro > Compiler > Verbose, and retry this with the folder amended as above it should give further output which can be attached to the post as a text file.
  
Back to top
IP Logged
 
Hrvoje
Newbies
*
Offline


Posts: 3
Joined: Aug 3rd, 2022
Re: Convert Solution to latest version Not working.
Reply #2 - Jun 15th, 2023 at 9:21am
Print Post  
Thanks for the fast response.
I have found a problem in my Solution (.sln file).
In my Solution, I have “Solution Items” with txt files ReadMe.txt, and that was causing problems. Everything works when I remove “Solution Items” from the Solution.
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{95475F5F-ECA5-45EC-B089-D1B02384DD33}"
     ProjectSection(SolutionItems) = preProject
           ReadMe.txt = ReadMe.txt
     EndProjectSection
EndProject

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


Posts: 2697
Joined: Feb 13th, 2019
Re: Convert Solution to latest version Not working.
Reply #3 - Jun 15th, 2023 at 9:54am
Print Post  
Thanks for the update and the brilliant detail supplied!

We will work on a fix for this and update this thread when it is released.
  
Back to top
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Convert Solution to latest version Not working.
Reply #4 - Sep 23rd, 2023 at 8:45am
Print Post  
Hi Tim,

Is there any update on this?
I have same issue

Code
Select All
1. Scanning aries_monitor for Projects...
String cannot be of zero length.
Parameter name: oldValue
System.ArgumentException: String cannot be of zero length.
Parameter name: oldValue
   at System.String.ReplaceInternal(String oldValue, String newValue)
   at System.String.Replace(String oldValue, String newValue)
   at Visual.Micro.ConvertProjectToLinux.ConvertToLinuxProject._Convert(String PathToSLNFile)
   at Visual.Micro.ConvertProjectToLinux.ConvertToLinuxProject.Convert(String PathToSLNFile)
Reloading 'D:\WorkSpace\repositories\git\AriesMonitor\aries_monitor.sln' 

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Convert Solution to latest version Not working.
Reply #5 - Sep 23rd, 2023 at 1:53pm
Print Post  
Sorry we forgot to update the thread. A new release is published that will hopefully work. If not, it has better diagnostics report of any errors.

  
Back to top
IP Logged
 
Cong Quyen Knight
Junior Member
**
Offline


Posts: 22
Joined: Nov 29th, 2021
Re: Convert Solution to latest version Not working.
Reply #6 - Sep 24th, 2023 at 2:56am
Print Post  
Hi Tim,

Above logs are from latest release.
There is no useful information about what cause error
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Convert Solution to latest version Not working.
Reply #7 - Sep 25th, 2023 at 9:46am
Print Post  
Can you confirm which version of vMicro you have installed? (shown in Extensions > Manage Extensions > Installed > Select Arduino IDE for Visual Studio, and it is shown on the right hand side).

Please also attach or email your SLN and VCXProj Files for us to replicate the issue with.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint