bjorkstromm / depends

Tool for generating dependency trees for .NET projects
MIT License
537 stars 41 forks source link

Doesn't work for net5 #21

Closed lonix1 closed 2 years ago

lonix1 commented 3 years ago

On an ASP.NET Core 5 project I get:

It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.

  • The following frameworks were found: 5.0.3 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

It should be a simple change, see here for an example.

bjorkstromm commented 3 years ago

@lonix1 sorry for the late reply. Do you want to send a PR for adding net5.0 TFM here: https://github.com/bjorkstromm/depends/blob/99c0a4694b1c6a837f1d67fa3ea267d566b2fffd/src/Depends/Depends.csproj#L4

lonix1 commented 2 years ago

Sorry only saw this now. @amaechler Does it work for you on net5? I tried your fix but it still looks for 3.1 and ignores 5.0. Anything I must do to force it to pick up my net5 sdk?

amaechler commented 2 years ago

@lonix1 When testing .NET 5 support, I tested using the .NET SDK commands in this comment: https://github.com/bjorkstromm/depends/pull/23#issuecomment-950399079.

lonix1 commented 2 years ago

Ok, maybe it's just my setup then. (I get the error in the original post above.)