Skip to content

Commit 734c901

Browse files
committed
Perform check in relative path
1 parent 1afa5c3 commit 734c901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cli/dotnet/commands/dotnet-sln/add/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private async Task AddProjectsToSolutionAsync(string solutionFileFullPath, IEnum
104104
string relativePath = Path.GetRelativePath(Path.GetDirectoryName(solutionFileFullPath), projectPath);
105105

106106
// Add fallback solution folder if relative path does not contain invalid characters
107-
string relativeSolutionFolder = DoesSolutionFolderPathContainInvalidChars(projectPath) ? string.Empty : Path.GetDirectoryName(relativePath);
107+
string relativeSolutionFolder = DoesSolutionFolderPathContainInvalidChars(relativePath) ? string.Empty : Path.GetDirectoryName(relativePath);
108108

109109
if (!_inRoot && solutionFolder is null && !string.IsNullOrEmpty(relativeSolutionFolder))
110110
{

0 commit comments

Comments
 (0)