-
Notifications
You must be signed in to change notification settings - Fork 174
Changing Target Framework #672
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
Comments
I've tried placing the following in
I found myself back here today as I require access to Sorry if it's really obvious and I've just missed it, but is there any way to change the framework so it targets the windows specific version? This would be super helpful so that I can use the |
@DanJBower Did you end up figuring this out? I'm trying to do the same thing in #729, except I'm doing it from the command line (i.e. not vs code) |
@amine-aboufirass Unfortunately not. I ended up having to switch to making an exe from a normal C# project |
Any plans to implement something like this? It would greatly increase the usefulness of dotnet scripting for me. |
Is there any way to change the target framework for a dotnet-script file?
Currently when I run one of the scripts I've written with
dotnet-script MyFile.csx
, I think it runs targeting the frameworknet6.0
but it currently throws an error as the NuGet I'm trying to use requires it to targetnet6.0-windows
. It'd be super helpful to have support for switching to that targetThe text was updated successfully, but these errors were encountered: