In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
How to choose multiple versions of .net core. In response to this question, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Before we talk about the multiple versions of. Net core, let's first understand the connections and differences between. Net core sdk and. Net core runtime. According to the official website, we can simply understand that sdk is used in the development process, while runtime is installed as a running environment after the release of the project. Runtime is a subset of skd.
Next we will talk about the following when there are multiple versions of sdk on the unified host, how do we choose a specific version of skd for development, debugging and running? To know which version of skd to choose, we first need to know which sdk is installed on the current host.
Windows: C:\ Program Files\ dotnet\ sdk directory to see what version is available.
Linux: ls / usr/share/dotnet/sdk/
If it is .net core 2.1and later, you can view it by using the command: dotnet-- list-sdks
After we have determined the version (for example, 2.1.302), we can specify the version of sdk through global.json (create a global.json file through dotnet new global.json, and the version of the sdk that resides defaults to the latest version of sdk currently in use)
{
"sdk": {
"version": "2.1.302"}}
When the dotnet command is executed, it looks for the current directory and the upper directory (it will keep looking up until it is found, and if it is not found, then compile and run with the latest sdk installed on the current system) the established version in global.json
This is the answer to the question about how to choose multiple versions of .net core. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.