Skip to content

reference-list: Expand includes #49168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
Reporter.Output.WriteLine(new string('-', CliStrings.ProjectReferenceOneOrMore.Length));
foreach (var p2p in p2ps)
{
Reporter.Output.WriteLine(p2p.Include);
Reporter.Output.WriteLine(p2p.EvaluatedInclude);

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build TestBuild: macOS (x64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build TemplateEngine: macOS (x64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build TestBuild: linux (arm64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build AoT: macOS (x64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build TestBuild: linux (x64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build TemplateEngine: linux (x64))

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build ContainerBased: linux (x64) [fedora39])

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build ContainerBased: linux (x64) [alpine319WithNode])

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build ContainerBased: linux (x64) [ubuntu2204DebPkg])

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build ContainerBased: linux (x64) [centosStream9])

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci (Build ContainerBased: linux (x64) [debian12Amd64])

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 47 in src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs

View check run for this annotation

Azure Pipelines / dotnet-sdk-public-ci

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs#L47

src/Cli/dotnet/Commands/Reference/List/ReferenceListCommand.cs(47,43): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ProjectItemElement' does not contain a definition for 'EvaluatedInclude' and no accessible extension method 'EvaluatedInclude' accepting a first argument of type 'ProjectItemElement' could be found (are you missing a using directive or an assembly reference?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the Project is really evaluated at this point; it looks like it just loaded the XML. You might have to call msbuildProj.GetEvaluatedProject() to get a real Project, from which you can call GetItems("ProjectReference") and iterate through that instead.

}

return 0;
Expand Down
Loading