Skip to content
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

Restoring in-memory projects #14148

Open
jjonescz opened this issue Feb 27, 2025 · 0 comments
Open

Restoring in-memory projects #14148

jjonescz opened this issue Feb 27, 2025 · 0 comments

Comments

@jjonescz
Copy link

jjonescz commented Feb 27, 2025

NuGet Product Used

dotnet.exe

Product Version

.net 9

Worked before?

don't think so

Impact

It's more difficult to complete my work

Repro Steps & Context

MSBuild allows building projects in-memory. We want to use that for dotnet run file.cs effort, see dotnet/sdk#46915. However, some restore targets fail when they don't find the project file on disk.

We currently resort to hacks to avoid these targets failing. See https://github.com/dotnet/sdk/blob/fcd9a9224c91132226206ebd15922e42fb3ed483/src/Cli/dotnet/commands/VirtualProjectBuildingCommand.cs#L157-L179

It would be nice if NuGet targets handled in-memory builds gracefully.

Minimal example of in-memory build setup:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants