❔ Nuget incompatible with framework
I'm new to nuget and I'm trying to add CsvHelper to a project. I tried all .NET Frameworks from 6.0 to 8.0, all with the same result:
- error: NU1100: Unable to resolve 'CsvHelper (>= 30.0.1)' for 'net6.0'
- Package 'CsvHelper' is incompatible with 'all' frameworks in project
Am I doing something wrong? How this should work? CsvHelper is marked as compatible with net6.0 and still didn't work.
16 Replies
The .csproj
you should be able to install version 30.0.1 for net6.0
what error do you get?
The error I mentioned above (incompatible with all frameworks), here is an screenshot (the text is in portuguese)
this is on net8.0, but on net6.0 it gave me the same exact error (as in net7.0)
I I don't think it targets net8 or 7 yet it does target net7
but on 6.0 it gave me the same error, also, isn't the packages supposed to work on newer frameworks?
it really should give a different error for .net 6 or 7
because for .net 8 it shows there is no version 30.0.1 that targets .net 8
wait a sec
do you happen to have a csproject named "CsvHelper"?
No, this is a newly formated PC and I haven't even developed anything in it yet. Just installed VSCode and sdks
hmm it works for me
Not sure if I'm missing something
When I run the same commands I get
I will try to reinstall all sdks etc
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.