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