Skip to content

Move VirtualProjectBuilder to FileBasedPrograms source package - #54773

Merged
jjonescz merged 41 commits into
dotnet:mainfrom
jjonescz:78887-sprint-MSBuildWorkspace
Jul 29, 2026
Merged

Move VirtualProjectBuilder to FileBasedPrograms source package#54773
jjonescz merged 41 commits into
dotnet:mainfrom
jjonescz:78887-sprint-MSBuildWorkspace

Conversation

@jjonescz

@jjonescz jjonescz commented Jun 15, 2026

Copy link
Copy Markdown
Member

Allows MSBuildWorkspace in Roslyn to use VirtualProjectBuilder to construct virtual projects for file-based apps: dotnet/roslyn#84139.

@jjonescz
jjonescz requested a review from a team June 29, 2026 11:05
@jjonescz
jjonescz changed the base branch from release/10.0.4xx to main July 22, 2026 14:16
@jjonescz
jjonescz requested a review from a team as a code owner July 22, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 61 out of 61 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/Cli/Microsoft.DotNet.FileBasedPrograms/FileLevelDirectiveHelpers.cs:15

  • The source package should compile without depending on Microsoft.DotNet.ProjectTools. This file still imports that namespace (a few lines below), but nothing in FileLevelDirectiveHelpers.cs uses it, so it can break compilation for external consumers that don't reference Microsoft.DotNet.ProjectTools.
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
using Microsoft.CodeAnalysis;

@RikkiGibson RikkiGibson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM aside from clarifying question.

Namespace="Microsoft.DotNet.FileBasedPrograms" />
</ItemGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);FILE_BASED_PROGRAMS_SOURCE_PACKAGE_GRACEFUL_EXCEPTION</DefineConstants>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why don't we need this any more?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@jjonescz
jjonescz merged commit 9ea4e48 into dotnet:main Jul 29, 2026
35 checks passed
@jjonescz
jjonescz deleted the 78887-sprint-MSBuildWorkspace branch July 29, 2026 14:18
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-run-file Items related to the "dotnet run <file>" effort

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants