Skip to content

Commit

Permalink
fix: VS Remotre control .NET version lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Nov 28, 2021
1 parent 8965b2f commit 80ad551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.RemoteControl.VS/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private int GetDotnetMajorVersion()

if (result.output.Contains("."))
{
if(int.TryParse(result.output.Substring(result.output.IndexOf('.')), out int majorVersion))
if(int.TryParse(result.output.Substring(0, result.output.IndexOf('.')), out int majorVersion))
{
return majorVersion;
}
Expand Down

0 comments on commit 80ad551

Please sign in to comment.