framework 4.6.1 may be not enough for powerBI.API package.
But newest studio use .net6 in ‘windows’ compatibility (compatible with package), for ‘windows-legacy’ we have old framework again and the same error)
As you see below there may be issues with using .net framework 461 with packages with .netstandard2.0, but .net 6 is fully compatible