maymay5
V2EX  ›  .NET

求助大佬们,干了件蠢事,我都不理解我为什么要用 Rider 去装 SDK,导致现在删不掉也找不到了

  •  
  •   maymay5 · Aug 19, 2024 · 4117 views
    This topic created in 824 days ago, the information mentioned may be changed or developed.

    终端找不到 SDK

    Rider 提示.net 8

    4 replies  •  2024-08-19 11:09:08 +08:00
    CMLab
    CMLab
    Aug 19, 2024
    1
    Rider 设置里面查看下
    quan01994
    quan01994
    Aug 19, 2024
    2
    Rider doesn't add dotnet to PATH, that is why you can not use the dotnet command in shell. The sdk must be installed to user root ~/.dotnet.
    GavinXSF
    GavinXSF
    Aug 19, 2024
    3
    这应该是 Rider 把 SDK 装到自己能找到的目录里,然后该目录没有加入到环境变量,所以用 dotnet --list-sdks 看不到 .NET8 。 你搜索下 Rider 默认把 SDK 放到哪里了,然后把该目录加入到环境变量,应该就可以了。
    maymay5
    maymay5
    OP
    Aug 19, 2024❤️1
    4
    @CMLab
    @quan01994
    @GavinXSF
    感谢,找到了,也记录一下,Rider 会把 sdk 放在这里`/Users/yourusername/.dotnet/shared/Microsoft.NETCore.App`,最好的方法还是直接把这个目录里的对应 sdk 目录直接删掉,去微软官网重装 SDK
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:18 · PVG 23:18 · LAX 07:18 · JFK 10:18
    ♥ Do have faith in what you're doing.