jonsequitur / dotnet-repl

A polyglot REPL built on .NET Interactive
MIT License
732 stars 36 forks source link

Auto add project reference based on path #7

Open Kethku opened 3 years ago

Kethku commented 3 years ago

This tool seems like its perfect for exploratory testing of projects or doing quick experiments to test out an in development feature.

To smooth over that use case, I think it would be valuable to automatically (or with a magic command) add a project reference to whatever project is in the current path. An initial version of this could be to just do a quick check on startup if there is a csproj file in the current directory and just reference it.

Some possible issues:

jonsequitur commented 3 years ago

This capability is something we're looking at enabling for .NET Interactive generally (including for notebooks): https://github.com/dotnet/interactive/issues/890.

If the scenarios you have in mind aren't captured there, please add your thoughts.