dotnet / install-scripts

MIT License
133 stars 72 forks source link

Not able to install .NET 6 on Service fabric VMSS #343

Closed guruvonline closed 1 year ago

guruvonline commented 1 year ago

HI, I executed the dotnet install with appropriate parameters as custom script extension for VMSS (for Service fabric). Script execution was success but still when I log in to VM and run dotnet.exe, it says no command found.

Do i have to set the 2 environment variables, so that i can run my .NET 6 application on VM?

Thanks

MichalPavlik commented 1 year ago

Hello, the script sets env. variable for the current console session. If you want to make it persistent, you must create env. variable with the path manually. Install script is intended for CI machines. For other scenarios, the standard installer is recommended way how to deploy .NET on the machine.

MichalPavlik commented 1 year ago

Closing the issue. Feel free to reopen if you have more questions.