solidsloth / dotnet-gitignore

A dotnet extension for creating a Visual Studio .gitignore file.
MIT License
40 stars 11 forks source link

Can't run, required framework 'Microsoft.NETCore.App', version '2.1.0' only #13

Closed a-z-hub closed 1 year ago

a-z-hub commented 5 years ago

try execute:

>>> dotnet gitignore
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
  - The following frameworks were found:
      3.0.0 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:
  - https://aka.ms/dotnet-download

list of available sdks:

>>> dotnet  --list-sdks
3.0.100 [/usr/local/share/dotnet/sdk]

list of available runtimes:

>>> dotnet  --list-runtimes
Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

os info:

>>> system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.15.1 (19B88)
      Kernel Version: Darwin 19.0.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: _______________________
      User Name: ________________ (__________________)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 1 day 4:49
solidsloth commented 4 years ago

Hi @ahryshchanka,

Sorry my delayed response. I did build against 3.0 and publish a new package (version 1.2) if you want to give it a shot.

a-z-hub commented 4 years ago

Hi @solidsloth I saw you commit and think it contains potential problem:

I did PR with fix for support .netcore2.2 and .netcore3.0. I'll recreate it and resolve conflicts in it. You can merge my PR or create you own similar.

a-z-hub commented 4 years ago

My PR with changes link