1 write to ProjectFile
Microsoft.NET.TestFramework (1)
Commands\MSBuildCommand.cs (1)
31ProjectFile = FindProjectFile(ref _projectRootPath, relativePathToProject);
13 references to ProjectFile
Microsoft.NET.TestFramework (11)
Commands\GetValuesCommand.cs (4)
49_targetFramework = targetFramework ?? OutputPathCalculator.FromProject(ProjectFile, testAsset).TargetFramework ?? string.Empty; 68var project = XDocument.Load(ProjectFile); 72throw new InvalidOperationException($"The project file '{ProjectFile}' does not have a root element."); 102project.Save(ProjectFile);
Commands\MSBuildCommand.cs (4)
21public string FullPathProjectFile => Path.Combine(ProjectRootPath, ProjectFile); 77return new DirectoryInfo(OutputPathCalculator.FromProject(ProjectFile, TestAsset).GetOutputDirectory(targetFramework, configuration, runtimeIdentifier, platform)); 93return new DirectoryInfo(OutputPathCalculator.FromProject(ProjectFile, TestAsset).GetIntermediateDirectory(targetFramework, configuration, runtimeIdentifier)); 108return new DirectoryInfo(OutputPathCalculator.FromProject(ProjectFile, TestAsset).GetPackageDirectory(configuration));
Commands\PackCommand.cs (2)
22packageId = Path.GetFileNameWithoutExtension(ProjectFile); 32packageId = Path.GetFileNameWithoutExtension(ProjectFile);
Commands\PublishCommand.cs (1)
28return new DirectoryInfo(OutputPathCalculator.FromProject(ProjectFile, TestAsset).GetPublishDirectory(targetFramework, configuration, runtimeIdentifier, platformIdentifier));
Microsoft.NET.ToolPack.Tests (2)
GivenThatWeWantToPackAToolProjectWithPackagedShim.cs (2)
42_packageId = Path.GetFileNameWithoutExtension(packCommand.ProjectFile); 331_packageId = Path.GetFileNameWithoutExtension(packCommand.ProjectFile);