251 references to GetCurrentDirectory
ApiExplorerWebSite (1)
Startup.cs (1)
60.UseContentRoot(Directory.GetCurrentDirectory())
Aspire.Dashboard.Tests (1)
tests\Shared\TestCertificateLoader.cs (1)
10private static readonly string s_baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
189WorkingDirectory = Directory.GetCurrentDirectory(),
Aspire.Hosting.Tests (1)
Backchannel\Exec\ProjectResourceExecTests.cs (1)
136.WithAnnotation<IProjectMetadata>(new ProjectMetadata(Directory.GetCurrentDirectory()));
AutobahnTestApp (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
BasicWebSite (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
ConfigurationSchemaGenerator.Tests (2)
GeneratorTests.cs (2)
1592var referenceAssemblies = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.dll", SearchOption.AllDirectories) 1595var outputPath = Path.Combine(Directory.GetCurrentDirectory(), "IntegrationTest.json");
CookiePolicySample (1)
Program.cs (1)
15.UseContentRoot(Directory.GetCurrentDirectory())
CookieSessionSample (1)
Program.cs (1)
15.UseContentRoot(Directory.GetCurrentDirectory())
CorsWebSite (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
113var workingDir = Directory.GetCurrentDirectory();
csi (1)
Csi.cs (1)
28workingDir: Directory.GetCurrentDirectory(),
CustomEncryptorSample (1)
Program.cs (1)
14var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
dotnet-openapi (1)
Program.cs (1)
24Directory.GetCurrentDirectory(),
dotnet-razorpagegenerator (1)
Program.cs (1)
36var targetProjectDirectory = args.Length > 1 ? args[1] : Directory.GetCurrentDirectory();
dotnet-svcutil-lib (19)
AppInsightsTelemetryClient.cs (1)
119var sdkVersion = await ProjectPropertyResolver.GetSdkVersionAsync(System.IO.Directory.GetCurrentDirectory(), null /* logger */, cancellationToken).ConfigureAwait(false);
CommandProcessorOptions.cs (9)
148if (PathHelper.IsFile(cmdOptions.Inputs[0], Directory.GetCurrentDirectory(), out var fileUri) && 336var workingDirectory = Directory.GetCurrentDirectory(); 386var defaultDir = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 390Path.GetDirectoryName(this.OutputFile.FullName) : Path.GetDirectoryName(Path.Combine(Directory.GetCurrentDirectory(), this.OutputFile.OriginalPath())); 409workingDirectory = workingDirectory ?? Directory.GetCurrentDirectory(); 432var defaultDir = workingDirectory ?? this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory(); 474throw new ToolArgumentException(string.Format(CultureInfo.CurrentCulture, SR.ErrInvalidOperationNoProjectFileFoundUnderFolderFormat, Directory.GetCurrentDirectory())); 733if (PathHelper.IsFile(this.Inputs[idx], Directory.GetCurrentDirectory(), out Uri metadataUri)) 1006var workingDirectory = this.Project?.DirectoryPath ?? Directory.GetCurrentDirectory();
Metadata\MetadataDocumentLoader.cs (4)
95if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 137if (!CanLoad(uri, string.Empty, Directory.GetCurrentDirectory(), out Uri metadataUri)) 184await LoadAsync(this.MetadataSourceUrl.AbsoluteUri, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false); 190await LoadAsync(fileUri.LocalPath, string.Empty, Directory.GetCurrentDirectory(), cancellationToken).ConfigureAwait(false);
Metadata\MetadataFileNameManager.cs (3)
38basePath = Directory.GetCurrentDirectory(); 79basePath = Directory.GetCurrentDirectory(); 240dirPath = Directory.GetCurrentDirectory();
OutputPathHelper.cs (1)
51return Directory.GetCurrentDirectory();
Shared\Utilities\ProcessRunner.cs (1)
63currentDir = Directory.GetCurrentDirectory();
dotnet-svcutil-lib.Tests (5)
TestInit.cs (5)
135ProcessRunner.ProcessResult procResult = ProcessRunner.TryRunAsync("dotnet", "--version", Directory.GetCurrentDirectory(), null, new CancellationToken()).ConfigureAwait(false).GetAwaiter().GetResult(); 177var currentDirectory = Directory.GetCurrentDirectory(); 536var vstestDir = Directory.GetCurrentDirectory(); 588var parentDir = Directory.GetCurrentDirectory(); 634this._cashedWorkingDirectory = Directory.GetCurrentDirectory();
dotnet-user-jwts (2)
Commands\CreateCommand.cs (1)
118var finder = new MsBuildProjectFinder(Directory.GetCurrentDirectory());
Helpers\DevJwtCliHelpers.cs (1)
29var finder = new MsBuildProjectFinder(Directory.GetCurrentDirectory());
dotnet-user-secrets (2)
Internal\InitCommand.cs (1)
59public string WorkingDirectory { get; private set; } = Directory.GetCurrentDirectory();
Program.cs (1)
20new Program(PhysicalConsole.Singleton, Directory.GetCurrentDirectory()).TryRun(args, out rc);
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
40.UseContentRoot(Directory.GetCurrentDirectory())
FilesWebSite (1)
Startup.cs (1)
39.UseContentRoot(Directory.GetCurrentDirectory())
FormatterWebSite (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
GenericHostWebSite (1)
Program.cs (1)
14.UseContentRoot(Directory.GetCurrentDirectory())
HealthChecksSample (1)
Program.cs (1)
32.SetBasePath(Directory.GetCurrentDirectory())
Http2SampleApp (1)
Program.cs (1)
69.UseContentRoot(Directory.GetCurrentDirectory())
HttpClientApp (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
HttpsPolicySample (1)
Startup.cs (1)
60.UseContentRoot(Directory.GetCurrentDirectory()) // for the cert file
IdentitySample.Mvc (1)
Program.cs (1)
25.UseContentRoot(Directory.GetCurrentDirectory())
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (1)
37env.SetupGet(e => e.ContentRootPath).Returns(Directory.GetCurrentDirectory());
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Interop.FunctionalTests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
InteropTests (2)
InteropTests.cs (2)
16private readonly string _clientPath = Path.Combine(Directory.GetCurrentDirectory(), "InteropClient", "InteropClient.dll"); 17private readonly string _serverPath = Path.Combine(Directory.GetCurrentDirectory(), "InteropWebsite", "InteropWebsite.dll");
JwtSample (1)
Program.cs (1)
21.UseContentRoot(Directory.GetCurrentDirectory())
Kestrel.SampleApp (1)
Startup.cs (1)
169.UseContentRoot(Directory.GetCurrentDirectory())
KeyManagementSample (1)
Program.cs (1)
15var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
LargeResponseApp (1)
Startup.cs (1)
51.UseContentRoot(Directory.GetCurrentDirectory())
Microsoft.Analyzers.Extra.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Microsoft.Analyzers.Local.Tests (1)
Resources\FileVisibleToAnalyzer.cs (1)
24public override string Path => System.IO.Path.Combine(Directory.GetCurrentDirectory(), _fileName);
Microsoft.AspNetCore (4)
WebHost.cs (4)
125/// set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/>, 144/// set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/>, 165builder.UseContentRoot(Directory.GetCurrentDirectory()); 296/// set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/>,
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticVerifier.cs (2)
194var dll = Path.Combine(Directory.GetCurrentDirectory(), "refs", Path.GetFileName(assembly)); 201dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (7)
UserJwtsTests.cs (7)
714Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.", _console.GetOutput()); 723var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 740Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.", _console.GetOutput()); 748var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 765Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.", _console.GetOutput()); 773var expectedAppsettingsPath = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.DoesNotExist.json"); 790Assert.Contains($"Could not find a MSBuild project file in '{Directory.GetCurrentDirectory()}'. Specify which project to use with the --project option.", _console.GetOutput());
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
76BaseArtifactsFolder = Path.GetFullPath(configuration.GetValue(nameof(BaseArtifactsFolder), Path.Combine(Directory.GetCurrentDirectory(), "playwright")));
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
293public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory();
HotReloadServiceTests.cs (1)
265public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory();
RazorComponentEndpointDataSourceTest.cs (1)
288public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory();
Microsoft.AspNetCore.Diagnostics.Tests (4)
ExceptionDetailsProviderTest.cs (4)
37var rootPath = Directory.GetCurrentDirectory(); 58var rootPath = Directory.GetCurrentDirectory(); 83var rootPath = Directory.GetCurrentDirectory(); 255new PhysicalFileProvider(Directory.GetCurrentDirectory()),
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
422var dll = Path.Combine(Directory.GetCurrentDirectory(), "refs", Path.GetFileName(assembly)); 430dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Utilities\TestEnvironment.cs (1)
15.SetBasePath(Directory.GetCurrentDirectory())
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAspNetTestAssemblyRunner.cs (1)
54.Returns(Path.Combine(Directory.GetCurrentDirectory(), $"{testAssemblyName}.dll"));
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
265public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory();
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactoryContentRootAttribute.cs (1)
34/// <see cref="Directory.GetCurrentDirectory()"/></param>
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
341public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory();
Microsoft.AspNetCore.OpenApi.Tests (1)
Integration\SampleAppFixture.cs (1)
11builder.UseContentRoot(Directory.GetCurrentDirectory());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
ResponseCachingTests.cs (1)
25_absoluteFilePath = Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName());
ResponseSendFileTests.cs (2)
30AbsoluteFilePath = Directory.GetFiles(Directory.GetCurrentDirectory()).First(); 308var emptyFilePath = Path.Combine(Directory.GetCurrentDirectory(), "zz_" + Guid.NewGuid().ToString() + "EmptyTestFile.txt");
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DotNetCommands.cs (1)
27var result = Path.Combine(Directory.GetCurrentDirectory(), _dotnetFolderName);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
CertificatePathWatcherTests.cs (10)
21var dir = Directory.GetCurrentDirectory(); 72var rootDir = Directory.GetCurrentDirectory(); 121var dir = Directory.GetCurrentDirectory(); 171var dir = Directory.GetCurrentDirectory(); 211var dir = Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName()); 238var dir = Directory.GetCurrentDirectory(); 272var dir = Directory.GetCurrentDirectory(); 312var dir = Directory.GetCurrentDirectory(); 343var dir = Directory.GetCurrentDirectory(); 403var dir = Directory.GetCurrentDirectory();
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (1)
26var env = new MockHostingEnvironment { ApplicationName = "TestApplication", ContentRootPath = Directory.GetCurrentDirectory() };
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
111.UseContentRoot(Directory.GetCurrentDirectory());
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
SpaServicesExtensionsTests.cs (2)
105public string ContentRootPath { get; set; } = Directory.GetCurrentDirectory(); 106public string WebRootPath { get; set; } = Directory.GetCurrentDirectory();
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
1234{ HostDefaults.ContentRootKey, Directory.GetCurrentDirectory() }, 1244ContentRootPath = Directory.GetCurrentDirectory(),
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Autobahn\AutobahnTester.cs (2)
64var outputFile = Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", Spec.OutputDirectory, "index.json"); 133var configPath = Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "Http.config");
Microsoft.AspNetCore.WebUtilities.Tests (7)
FileBufferingReadStreamTests.cs (7)
24using var stream = new FileBufferingReadStream(inner, 1024, null, Directory.GetCurrentDirectory()); 44using (var stream = new FileBufferingReadStream(inner, 1024 * 2, null, Directory.GetCurrentDirectory())) 77using (var stream = new FileBufferingReadStream(inner, 1024 * 3, null, Directory.GetCurrentDirectory())) 149using (var stream = new FileBufferingReadStream(inner, 1024, 900, Directory.GetCurrentDirectory())) 206using (var stream = new FileBufferingReadStream(inner, 1024 * 2, null, Directory.GetCurrentDirectory())) 239using (var stream = new FileBufferingReadStream(inner, 1024 * 3, null, Directory.GetCurrentDirectory())) 352using (var stream = new FileBufferingReadStream(inner, 1024, 900, Directory.GetCurrentDirectory()))
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
634workingDirectory = Directory.GetCurrentDirectory();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
634workingDirectory = Directory.GetCurrentDirectory();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
3845char currentDrive = Directory.GetCurrentDirectory()[0]; 4116char currentDrive = Directory.GetCurrentDirectory()[0]; 4220char currentDrive = Directory.GetCurrentDirectory()[0]; 9338char currentDrive = Directory.GetCurrentDirectory()[0];
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
124var workingDirectory = Directory.GetCurrentDirectory(); 424var newWorkingDirectory = Directory.GetCurrentDirectory();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
InlineCompletions\TestSnippetInfoService.cs (1)
28var snippetsFile = Path.Combine(Directory.GetCurrentDirectory(), "InlineCompletions", "TestSnippets.snippet");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
325string newWorkingDirectory = Directory.GetCurrentDirectory();
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.cs (1)
259baseDirectory: Directory.GetCurrentDirectory(),
MSBuild\SolutionFileReader.cs (1)
24Contract.ThrowIfFalse(pathResolver.TryGetAbsoluteSolutionPath(solutionFilePath, baseDirectory: Directory.GetCurrentDirectory(), DiagnosticReportingMode.Throw, out var absoluteSolutionPath));
Microsoft.DotNet.Build.Tasks.Feed (1)
src\ConfigureInputFeed.cs (1)
28RepoRoot = Directory.GetCurrentDirectory();
Microsoft.DotNet.Build.Tasks.Packaging (1)
NuGetUtility.cs (1)
25ISettings settings = Settings.LoadDefaultSettings(Directory.GetCurrentDirectory());
Microsoft.DotNet.Build.Tasks.Packaging.Tests (2)
GenerateNuSpecAndPackTests.cs (1)
49var nuGetPack = CreateNuGetPackTask(nuspecs, Directory.GetCurrentDirectory());
HarvestPackageTests.cs (1)
64for (string candidate = Directory.GetCurrentDirectory();
Microsoft.DotNet.SetupNugetSources.Tests (1)
ScriptRunner.cs (1)
73WorkingDirectory = workingDirectory ?? Directory.GetCurrentDirectory()
Microsoft.DotNet.SignCheckTask (1)
src\SignCheck.cs (1)
219fileSearchPath = Directory.GetCurrentDirectory();
Microsoft.DotNet.XliffTasks.Tests (5)
ResxDocumentTests.cs (2)
54string sourceFolder = Directory.GetCurrentDirectory(); 56Directory.GetCurrentDirectory(),
VsctDocumentTests.cs (3)
76string sourceFolder = Directory.GetCurrentDirectory(); 78Directory.GetCurrentDirectory(), 119Path.Combine(Directory.GetCurrentDirectory(), "Resources.resx"));
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\OSFileSystemTests.cs (1)
22Path.Combine(Directory.GetCurrentDirectory(), "fixtures"), "*.slice");
Microsoft.Extensions.FileSystemGlobbing (2)
MatcherExtensions.cs (2)
77return Match(matcher, Directory.GetCurrentDirectory(), new List<string> { file }); 100return Match(matcher, Directory.GetCurrentDirectory(), files);
Microsoft.Extensions.Hosting (8)
Host.cs (4)
21/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item> 40/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item> 65/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item> 83/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item>
HostApplicationBuilder.cs (2)
41/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item> 64/// <item><description>set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/></description></item>
HostApplicationBuilderSettings.cs (1)
31/// * set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/>
HostingHostBuilderExtensions.cs (1)
181/// * set the <see cref="IHostEnvironment.ContentRootPath"/> to the result of <see cref="Directory.GetCurrentDirectory()"/>
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
49directory = Directory.GetCurrentDirectory();
Microsoft.Extensions.SecretManager.Tools.Tests (1)
SecretManagerTests.cs (1)
36return new Program(_console, Directory.GetCurrentDirectory());
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
GeneratorTests.cs (2)
57? new() { ["build_property.ComplianceReportOutputPath"] = Directory.GetCurrentDirectory() } 192_options.TryAdd("build_property.outputpath", Directory.GetCurrentDirectory());
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
GeneratorTests.cs (3)
74? new() { ["build_property.MetadataReportOutputPath"] = Directory.GetCurrentDirectory() } 83var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 242_options.TryAdd("build_property.outputpath", Directory.GetCurrentDirectory());
Microsoft.Gen.MetricsReports.Unit.Tests (3)
GeneratorTests.cs (3)
39? new() { ["build_property.MetricsReportOutputPath"] = Directory.GetCurrentDirectory() } 48var generatedReportPath = Path.Combine(Directory.GetCurrentDirectory(), ReportFilename); 182_options.TryAdd("build_property.outputpath", Directory.GetCurrentDirectory());
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
45 /// creation time from <see cref="Directory.GetCurrentDirectory"/>. 58 WorkingDirectory = Directory.GetCurrentDirectory();
Microsoft.ML.OnnxTransformerTest (12)
OnnxTransformTests.cs (12)
239var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "squeezenet", "00000001", "model.onnx"); 292var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "squeezenet", "00000001", "model.onnx"); 425var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "twoinput", "twoinput.onnx"); 465var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "twoinput", "twoinput.onnx"); 686var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapInt64.onnx"); 739var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapString.onnx"); 790var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapInt64.onnx"); 809var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapInt64.onnx"); 882var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "unknowndimensions", "test_unknowndimensions_float.onnx"); 960var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "twoinput", "twoinput.onnx"); 1052var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "unknowndimensions", "test_unknowndimensions_float.onnx"); 1122var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "squeezenet", "00000001", "model.onnx");
Microsoft.ML.Samples (2)
Dynamic\TensorFlow\ImageClassification.cs (2)
31Unzip(Path.Join(Directory.GetCurrentDirectory(), modelLocation), 32Directory.GetCurrentDirectory());
Microsoft.ML.Samples.GPU (2)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
31Unzip(Path.Join(Directory.GetCurrentDirectory(), modelLocation), 32Directory.GetCurrentDirectory());
Microsoft.ML.Tests (2)
OnnxSequenceTypeWithAttributesTest.cs (2)
59var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapString.onnx"); 98var modelFile = Path.Combine(Directory.GetCurrentDirectory(), "zipmap", "TestZipMapString.onnx");
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
533_modelLocation = Path.IsPathRooted(modelLocation) ? modelLocation : Path.Combine(Directory.GetCurrentDirectory(), modelLocation);
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
50Return NormalizePath(IO.Directory.GetCurrentDirectory())
Microsoft\VisualBasic\FileSystem.vb (2)
67Path = Directory.GetDirectoryRoot(Directory.GetCurrentDirectory()) 109Return Directory.GetCurrentDirectory()
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (2)
191string CurrentDirectory = Directory.GetCurrentDirectory(); 198string SavedCurrentDirectory = Directory.GetCurrentDirectory();
MvcSandbox (1)
Startup.cs (1)
58.UseContentRoot(Directory.GetCurrentDirectory())
NonDISample (1)
Program.cs (1)
13var keysFolder = Path.Combine(Directory.GetCurrentDirectory(), "temp-keys");
PlaintextApp (1)
Startup.cs (1)
46.UseContentRoot(Directory.GetCurrentDirectory())
PresentationBuildTasks (11)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
63_sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
49_sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
56Directory.GetCurrentDirectory(),
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
124SourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
51_backupPath = Directory.GetCurrentDirectory(); 155string sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
2635Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar, 3340relPath = TaskHelper.GetRootRelativePath(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar, fullFilePath);
MS\Internal\Tasks\CompilerWrapper.cs (1)
38_sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
486string curDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
MS\Internal\Tasks\TaskHelper.cs (1)
94string sourceDir = Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar;
PresentationFramework (1)
System\Windows\Documents\Speller.cs (1)
1535fileUri = new Uri(new Uri($"{Directory.GetCurrentDirectory()}/"), uri);
RazorBuildWebSite (2)
Startup.cs (1)
35.UseContentRoot(Directory.GetCurrentDirectory())
StartupWithHostingStartup.cs (1)
49.UseContentRoot(Directory.GetCurrentDirectory())
ReachFramework (2)
Packaging\XpsDocument.cs (1)
167Uri = new Uri( new Uri(Directory.GetCurrentDirectory()+"/"), this.Uri );
Packaging\XpsManager.cs (1)
118_uri = new Uri( new Uri(Directory.GetCurrentDirectory()+"/"), path );
ResponseCachingSample (1)
Startup.cs (1)
38.UseContentRoot(Directory.GetCurrentDirectory())
ResultsOfTGenerator (1)
Program.cs (1)
16var pwd = Directory.GetCurrentDirectory();
RewriteSample (1)
Startup.cs (1)
56.UseContentRoot(Directory.GetCurrentDirectory());
RunTests (2)
ProcessTestExecutor.cs (1)
202return Directory.GetCurrentDirectory();
Program.cs (1)
422var directory = Directory.GetCurrentDirectory();
SampleStartups (1)
StartupFullControl.cs (1)
30.UseContentRoot(Directory.GetCurrentDirectory()) // Override the content root with the current directory
SecurityWebSite (1)
Program.cs (1)
24.UseContentRoot(Directory.GetCurrentDirectory())
SignalR.Client.FunctionalTestApp (1)
Program.cs (1)
46.UseContentRoot(Directory.GetCurrentDirectory())
SignalRSamples (1)
Program.cs (1)
41.UseContentRoot(Directory.GetCurrentDirectory())
SimpleWebSite (1)
Startup.cs (1)
44.UseContentRoot(Directory.GetCurrentDirectory())
SocialWeather (1)
Program.cs (1)
21.UseContentRoot(Directory.GetCurrentDirectory())
Sockets.BindTests (1)
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
337.UseContentRoot(Directory.GetCurrentDirectory())
src\Shared\TestResources.cs (1)
10private static readonly string _baseDir = Path.Combine(Directory.GetCurrentDirectory(), "shared", "TestCertificates");
StaticFileSample (1)
Startup.cs (1)
35.UseContentRoot(Directory.GetCurrentDirectory())
System.Diagnostics.Process (3)
System\Diagnostics\Process.cs (1)
1745string directoryForException = string.IsNullOrEmpty(workingDirectory) ? Directory.GetCurrentDirectory() : workingDirectory;
System\Diagnostics\Process.Unix.cs (2)
656Directory.GetCurrentDirectory(); 722path = Path.Combine(Directory.GetCurrentDirectory(), filename);
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (6)
130string dragDropDirectory = Path.Join(Directory.GetCurrentDirectory(), DragDrop); 140string dragAcceptRtfSourcePath = Path.Join(Directory.GetCurrentDirectory(), Resources, DragAcceptRtf); 425string dragAcceptRtfPath = Path.Join(Directory.GetCurrentDirectory(), Resources, DragAcceptRtf); 455string dragAcceptRtfPath = Path.Join(Directory.GetCurrentDirectory(), Resources, DragAcceptRtf); 1084string dragAcceptRtf = Path.Join(Directory.GetCurrentDirectory(), Resources, DragAcceptRtf); 1144string dragAcceptRtf = Path.Join(Directory.GetCurrentDirectory(), Resources, DragAcceptRtf);
SystemdTestApp (1)
Startup.cs (1)
73.UseContentRoot(Directory.GetCurrentDirectory())
Templates.Tests (1)
ByteOrderMarkTest.cs (1)
106var currentDirectory = Directory.GetCurrentDirectory();
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
113var workingDir = Directory.GetCurrentDirectory();
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
113var workingDir = Directory.GetCurrentDirectory();
VersioningWebSite (1)
Program.cs (1)
23.UseContentRoot(Directory.GetCurrentDirectory())
WinFormsControlsTest (3)
DragDrop.cs (3)
386Directory.GetCurrentDirectory(), 404Directory.GetCurrentDirectory(), 540Path.Join(Directory.GetCurrentDirectory(),
WsFedSample (1)
Program.cs (1)
27.UseContentRoot(Directory.GetCurrentDirectory())
XmlFormattersWebSite (1)
Startup.cs (1)
124.UseContentRoot(Directory.GetCurrentDirectory())
xunit.console (2)
ConsoleRunner.cs (2)
60var defaultDirectory = Directory.GetCurrentDirectory(); 284var originalWorkingFolder = Directory.GetCurrentDirectory();