shibayan / Sharprompt

Interactive command-line based application framework for C#
MIT License
771 stars 50 forks source link

Cannot add it to my project #160

Closed dakyskye closed 3 years ago

dakyskye commented 3 years ago
PS C:\Users\kante\Work\Foo> dotnet add package Sharprompt --version 2.3.3
  Determining projects to restore...
  Writing C:\Users\kante\AppData\Local\Temp\tmpBCA5.tmp
info : Adding PackageReference for package 'Sharprompt' into project 'C:\Users\kante\Work\Foo\Foo.csproj'.
info : Restoring packages for C:\Users\kante\Work\Foo\Foo.csproj...
error: NU1100: Unable to resolve 'Sharprompt (>= 2.3.3)' for 'net5.0'.
error: Package 'Sharprompt' is incompatible with 'all' frameworks in project 'C:\Users\kante\Work\Foo\Foo.csproj'.
<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net5.0</TargetFramework>
    </PropertyGroup>

</Project>
shibayan commented 3 years ago

This is not a library issue. Please refer to this URL to repair it. https://stackoverflow.com/questions/68283730/error-nu1100-unable-to-resolve-microsoftofficecore-15-0-0-for-net5-0