Skip to content

API-using application is spawned instead of dotnet when using CodeTaskFactory #9052

@Leon99

Description

@Leon99

I'm trying to open csproj files via Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace.OpenProjectAsync from my console app. One of the projects, a rather big one, hangs the execution and spawns another instance of the app.

Tried both v4.6.0 from nuget.org and built myself from https://github.com/dotnet/roslyn/releases/tag/Visual-Studio-2022-Version-17.6.4, same behavior.

Tried to debug but quickly got lost... My best guess is that MSBuild is trying to create additional processes (for compilation?) to parallelize since it's a large project, but instead instantiates my app.
Any suggestions much appreciated.

Metadata

Metadata

Assignees

Labels

Area: TasksIssues impacting the tasks shipped in Microsoft.Build.Tasks.Core.dll.Priority:2Work that is important, but not critical for the releasebackloginternal-team-onboardingtriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions