net-daemon / docs

Documentation for NetDaemon
MIT License
53 stars 34 forks source link

Getting-Started-Instructions for Studio Code Server Addon don't work #191

Open Elementmensch opened 11 months ago

Elementmensch commented 11 months ago

The instructions at https://netdaemon.xyz/docs/v3/started/development#24-studio-code-server-addon don't work.

  1. Trying to install dotnet-sdk-8.0 results in the error Unable to locate package dotnet-sdk-6.0 (i think because the container is based on an too old debian release)
  2. The C# addons (ms-dotnettools.csharp) is not available for vscode-server(i believe because of issues with the licence of the addon)

A workaround for 1. is as follows:

init_commands:
  - wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
  - chmod +x ./dotnet-install.sh
  - ./dotnet-install.sh --channel 8.0
  - export DOTNET_ROOT=$HOME/.dotnet
  - export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
  - export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
  - dotnet tool install -g NetDaemon.HassModel.CodeGen

For 2. the free-omnisharp-vscode extension can be installed instead

helto4real commented 9 months ago

Yea probably some issue when we got to .NET 8, thanks for pointing that out.