此内容没有您所选择的语言版本。

Chapter 7. Known issues


The known issues for running .NET Core on Red Hat Enterprise Linux (RHEL) include the following issues.

  1. .NET Core only runs on RHEL 7.x; it does not run on earlier versions of RHEL.
  2. .NET Core SDK 2.1.3xx contains an incorrect NETStandard.Library version. Using this SDK version may result in build failures. To correct this issue, update to SDK 2.1.402 (or later). To update to the latest SDK version, install the latest .NET Core software. To install the latest software, see Installing .NET Core 2.1.

    If there is a global.json file that specifies the SDK version and you do not want to update to the latest SDK version, you can work around this issue by removing the following entry in the csproj file.

    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    Copy to Clipboard Toggle word wrap
  3. The ASP.NET Core Shared Framework is not available on RHEL. Deployed ASP.NET Core applications must include the ASP.NET Core packages. For more information, see Publishing ASP.NET applications.
  4. Global tools that are preinstalled with Microsoft SDK are not available by default on RHEL. The dev-certs, ef, sql-cache, user-secrets, and watch commands are available by default with the Microsoft SDK. On RHEL, these tools can be installed from nuget.org using the dotnet tool install --global <tool> --version '2.1.*' command. When a tool is not installed, the CLI prints the command to install it, for example, dotnet tool install --global dotnet-ef. Note that the version flag --version '2.1.*' should be used to work around the following known issue.

    The Microsoft SDK always installs the latest version of a tool. When the latest tool version is not compatible with the installed runtimes, the installation will fail. To install the tool, you must specify an older version that is compatible with .NET Core 2.1 using the --version option. The versions can be found at nuget.org. The 2.2.x tool versions preinstalled with the Microsoft SDK are not compatible with .NET Core 2.1. To install them for .NET Core 2.1, add --version '2.1.*' as shown in the example in the previous paragraph. This issue is being tracked on GitHub.

  5. Starting with the release of .NET Core 2.2, these global tools may fail to install via dotnet tool install --global dotnet-ef. The error will say that the tool only supports netcoreapp2.2. Use an explicit --version flag to work around this. For example, use dotnet tool install --global dotnet-ef --version 2.1.1 to install a version of dotnet ef that works with .NET Core 2.1. The versions can be found via nuget.org.
  6. dotnet dev-certs https --trust does not work on RHEL.

    .NET Core supports the creation of HTTPS certificate through dotnet dev-certs https, but it does not support trusting them through dotnet dev-certs https --trust. The client that connects to the ASP.NET Core application, such as curl or firefox, will warn about the untrusted self-signed certificate. To work around this in a browser such as Firefox, ignore the warning and trust the certificate explicitly when the warning about the untrusted certificate comes up. Command-line tools support flags to ignore untrusted certificate. For curl, use --insecure. For wget, use --no-check-certificate.

  7. There are different values for math libraries on different platforms.

    Math libraries that are part of .NET Core 2.1 can return different values on different platforms. This is expected behavior. .NET Core 2.1 takes advantage of the platform-specific libraries to improve performance and reduce overhead. See the Math.Cos(double.MaxValue) returns different values on Windows and other platforms issue discussion for more information.

    The following issues affected the previous release of .NET Core on RHEL and were fixed by updates.

  8. For some commands, the 2.1.300 SDK prints out it is a preview version. This erroneous message can be safely ignored. This was fixed in the .NET Core SDK 2.1.301 update release.
  9. The language server used by Visual Studio Code, OmniSharp, does not work with .NET Core 2.1. This was fixed in the .NET Core SDK 2.1.301 update release.

See Known issues for .NET Core, ASP.NET Core, and ASP.NET and Web Tools in Visual Studio 2017 for more information about using Visual Studio with .NET Core 2.1.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat