dotnet / dotnet/msbuild

Graph build of a solution does not embed .sln file in binlog

Open
#8,170 0 comments 0 reactions 1 assignee Claimed by @VolPlita View on GitHub
Area: Logging Area: Static Graph triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Build a solution with `-graph -bl`. The resultant binlog has the projects that were built but not the solution itself.

```sh-session
❯ dotnet new sln
The template "Solution File" was created successfully.

❯ dotnet new classlib -o Lib1
The template "Class Library" was created successfully.

Processing post-creation actions...
Restoring S:\work\tiny-graph\Lib1\Lib1.csproj:
Determining projects to restore...
Restored S:\work\tiny-graph\Lib1\Lib1.csproj (in 65 ms).
Restore succeeded.

❯ dotnet new classlib -o Lib2
The template "Class Library" was created successfully.

Processing post-creation actions...
Restoring S:\work\tiny-graph\Lib2\Lib2.csproj:
Determining projects to restore...
Restored S:\work\tiny-graph\Lib2\Lib2.csproj (in 69 ms).
Restore succeeded.

❯ dotnet sln add .\Lib1\ .\Lib2\
Project `Lib1\Lib1.csproj` added to the solution.
Project `Lib2\Lib2.csproj` added to the solution.

S:\work\tiny-graph
❯ msbuild -graph -bl .\tiny-graph.sln
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.