15 references to EnsureTrailingSlash
dotnet (3)
Commands\Project\Convert\ProjectConvertCommand.cs (1)
114
string entryPointFileDirectory = PathUtility.
EnsureTrailingSlash
(Path.GetDirectoryName(file)!);
CommonOptions.cs (1)
238
public static Lazy<string> NormalizedCurrentDirectory = new(() => PathUtility.
EnsureTrailingSlash
(Directory.GetCurrentDirectory()));
MsbuildProject.cs (1)
35
ProjectDirectory = PathUtility.
EnsureTrailingSlash
(ProjectRootElement.DirectoryPath);
dotnet.Tests (10)
CommandTests\Package\Remove\GivenDotnetRemovePackage.cs (2)
18
<PROJECT | FILE> The project file or C# file-based app to operate on. If a file is not specified, the command will search the current directory for a project file. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
32
<PROJECT | FILE> The project file or C# file-based app to operate on. If a file is not specified, the command will search the current directory for a project file. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
CommandTests\Reference\Add\AddReferenceParserTests.cs (1)
29
PathUtility.
EnsureTrailingSlash
(Directory.GetCurrentDirectory()));
CommandTests\Reference\List\GivenDotnetListReference.cs (2)
19
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
31
<PROJECT | SOLUTION> The project or solution file to operate on. If a file is not specified, the command will search the current directory for one. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
CommandTests\Reference\Remove\GivenDotnetRemoveP2P.cs (2)
20
<PROJECT | FILE> The project file or C# file-based app to operate on. If a file is not specified, the command will search the current directory for a project file. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
34
<PROJECT | FILE> The project file or C# file-based app to operate on. If a file is not specified, the command will search the current directory for a project file. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
CommandTests\Solution\Add\GivenDotnetSlnAdd.cs (1)
34
<SLN_FILE> The solution file to operate on. If not specified, the command will search the current directory for one. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
CommandTests\Solution\List\GivenDotnetSlnList.cs (1)
18
<SLN_FILE> The solution file to operate on. If not specified, the command will search the current directory for one. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
CommandTests\Solution\Remove\GivenDotnetSlnRemove.cs (1)
20
<SLN_FILE> The solution file to operate on. If not specified, the command will search the current directory for one. [default: {PathUtility.
EnsureTrailingSlash
(defaultVal)}]
Microsoft.DotNet.Cli.Utils (2)
PathUtility.cs (2)
33
dir =
EnsureTrailingSlash
(dir);
138
var path1 =
EnsureTrailingSlash
(directory.FullName);