dotnet / dotnet/docs

.NET Core application with plugins does not find installed SDKs

Open
#27,065 0 comments 0 reactions 0 assignees View on GitHub
dotnet-fundamentals/svc okr-quality
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
![Net 6 SDK Installed](https://user-images.githubusercontent.com/74208055/141600127-ab07a97c-37a9-4d3e-b706-f90bbfe10b7b.JPG)
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.