.NET Core application with plugins does not find installed SDKs
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
Prerequisites advise Installing .NET 5 SDK or newer. Just installed 2022 Professional GA release along with .NET SDK 6.0 AND installed 5.0 again but the step one still fails:
C:\Users\admJeff\source\repos\CorePluginFW3_5> dotnet new console -o AppWithPlugin
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
* You intended to execute a .NET program:
The application 'new' does not exist.
* You intended to execute a .NET SDK command:
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
https://aka.ms/dotnet-download
C:\Users\admJeff\source\repos\CorePluginFW3_5>dotnet /?
Usage: dotnet [host-options] [path-to-application]
path-to-application:
The path to an application .dll file to execute.
host-options:
--additionalprobingpath Path containing probing policy and assemblies to probe for.
--depsfile Path to .deps.json file.
--runtimeconfig Path to .runtimeconfig.json file.
--fx-version Version of the installed Shared Framework to use to run the application.
--roll-forward Roll forward to framework version (LatestPatch, Minor, LatestMinor, Major, LatestMajor, Disable)
--additional-deps Path to additional deps.json file.
--list-runtimes Display the installed runtimes
--list-sdks Display the installed SDKs
C:\Users\admJeff\source\repos\CorePluginFW3_5>dotnet --list-sdks
C:\Users\admJeff\source\repos\CorePluginFW3_
How do I get this to work?
---
#### Document

Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 06023407-704f-0ace-e89a-eedd9f95a007
* Version Independent ID: f25a6e1a-cb10-867b-0522-a377bf9d016b
* Content: [Create a .NET Core application with plugins - .NET](https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support)
* Content Source: [docs/core/tutorials/creating-app-with-plugin-support.md](https://github.com/dotnet/docs/blob/main/docs/core/tutorials/creating-app-with-plugin-support.md)
* Product: **dotnet-fundamentals**
* GitHub Login: @jkoritzinsky
* Microsoft Alias: **jekoritz**
Contributor guide
Assessment
This issue has not been assessed yet.