We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aed7d98 commit 72276e6Copy full SHA for 72276e6
VisualStudioSolutionSecrets/Commands/SearchCommand.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.IO;
3
using System.Threading.Tasks;
4
using McMaster.Extensions.CommandLineUtils;
5
using VisualStudioSolutionSecrets.Commands.Abstractions;
@@ -55,7 +56,7 @@ public int OnExecute()
55
56
string projectRelativePath = String.Empty;
57
string projectName = projectFileName;
58
- int separator = projectFileName.LastIndexOf("\\", StringComparison.Ordinal);
59
+ int separator = projectFileName.LastIndexOf(System.IO.Path.DirectorySeparatorChar);
60
if (separator > 0)
61
{
62
projectRelativePath = projectFileName.Substring(0, separator + 1);
0 commit comments