4 instantiations of Project
dotnet (2)
FileLevelDirectiveHelpers.cs (2)
497return new Project(context.Info) 505return new Project(Info) { Name = name };
dotnet.Tests (2)
CommandTests\Run\RunTelemetryTests.cs (2)
118new CSharpDirective.Project(default) { Name = "../lib/Library.csproj" }, 119new CSharpDirective.Project(default) { Name = "../common/Common.csproj" }
10 references to Project
dotnet (10)
Commands\Project\Convert\ProjectConvertCommand.cs (2)
175if (directive is CSharpDirective.Project project && 178var modified = project.WithName(Path.GetRelativePath(relativeTo: targetDirectory, path: project.Name));
Commands\Run\RunTelemetry.cs (1)
189return directives.OfType<CSharpDirective.Project>().Count();
Commands\Run\VirtualProjectBuildingCommand.cs (3)
462if (Directives.Any(static d => d is CSharpDirective.Project)) 1158var projectDirectives = directives.OfType<CSharpDirective.Project>(); 1369foreach (var projectReference in projectDirectives)
FileLevelDirectiveHelpers.cs (4)
311"project" => Project.Parse(context), 462public static new Project? Parse(in ParseContext context) 468return context.Diagnostics.AddError<Project?>(context.SourceFile, context.Info.Span, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 503public Project WithName(string name)