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

Add ability to specify toolchain #281

Open
Emik03 opened this issue Jul 8, 2023 · 2 comments
Open

Add ability to specify toolchain #281

Emik03 opened this issue Jul 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Emik03
Copy link

Emik03 commented Jul 8, 2023

Feature Description

Common use of REPLs is to experiment, so naturally it would be a nice addition to be able to choose a locally installed toolchain with a CLI argument "--toolchain", primarily for testing out .NET 8 and a new feature, such as primary constructors (which as of the time of writing is in Preview and experimental).

I'm not sure if the C# eval package even supports the ability to do so without recompiling it altogether. If it is supported though, I'd love to see this be implemented. Thanks!

@Emik03 Emik03 added the enhancement New feature or request label Jul 8, 2023
@waf
Copy link
Owner

waf commented Jul 10, 2023

We don't have a specific, versioned system for this, but we do generally try to roll forward to whatever the latest .NET version is, and enable preview features.

Primary constructors do work for me despite CSharpRepl targeting .net7.0 -- are they working for you in the current version of CSharpRepl?

image

@Emik03
Copy link
Author

Emik03 commented Jul 11, 2023

Huh, I recall distinctly that primary constructors didn't work for me, but upon testing it again they now do. I suspect it's either from updating csharprepl or because I updated the net7.0 toolchain just now. I incorrectly assumed net8.0 was where all of the experimental features were.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants