Skip to content

Absolute minimum requirement for running? #681

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

Closed
MostHated opened this issue Aug 26, 2022 · 1 comment
Closed

Absolute minimum requirement for running? #681

MostHated opened this issue Aug 26, 2022 · 1 comment

Comments

@MostHated
Copy link

Hey there,
I know that the .Net SDK is listed as a prereq, but I was wondering if the full fat sdk is necessary for running dotnet-script? I would definitely like utilize some scripts in my work environment. I was lucky to get Pwsh 7.x, but getting approval from my security team for the full .Net SDK for only script functionality is going to be tough. If I can whittle it down to only minimum necessary components to run the scripts, I might actually have a chance.

I was going to begin looking into it / experimenting, but figured it was worth posing the question, just in case there was any insight that could help point me in the right direction.

Thanks,
-MH

@filipw
Copy link
Member

filipw commented Aug 28, 2022

Yes the full SDK is needed because dotnet-script effectively runs the normal dotnet restore to assemble a manifest of compile-time and runtime dependencies.

If you want an SDK-free experience, you can precompile a script to an executable on a machine with an SDK installed, at which point it can be deployed and run without any extra dependencies, but you won't be able to modify it.

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