zoukankan      html  css  js  c++  java
  • linux netcore dotnet command

    执行 dotnet aspnet-codegenerator controller -name TodoItemsController -async -api -m TodoItem -dc TodoContext -outDir Controllers

    报错:

    A fatal error occurred. The required library libhostfxr.so could not be found.
    If this is a self-contained application, that library should exist in [/home/dong/.dotnet/tools/.store/dotnet-aspnet-codegenerator/3.1.1/dotnet-aspnet-codegenerator/3.1.1/tools/netcoreapp3.1/any/].
    If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

    The .NET Core runtime can be found at:
    - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=manjaro-x64

    解决方案:

    编辑:    vim ~/.bash_profile

    增加    export DOTNET_ROOT=/opt/netcore (.netcore 目录)

  • 相关阅读:
    SpringBoot JdbcTemplate多数据源
    SpringBoot Mybatis多数据源
    SpringBoot 配置文件2
    SpringBoot 配置文件1
    SpringBoot 日志配置
    乌镇行
    防火墙
    PL/SQL查询结果窗口太小且显示不完全
    python 列表解析
    HTML
  • 原文地址:https://www.cnblogs.com/mingjing/p/12517518.html
Copyright © 2011-2022 走看看