问题
Currently, I am trying to import powerbi packages in visual studio 2017 for my .net core 1.1 project. However, I get the following error:
Install-Package : Package Microsoft.PowerBI.Core 1.1.10 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Microsoft.PowerBI.Core 1.1.10 supports: net45 (.NETFramework,Version=v4.5)At line:1 char:1
Has this happened to anybody else? Do you know how to work around this and embed powerbi in the new .net core 1.1? I tried to search a lot of places but because of the constant changes, I do get outdated information. Thanks!
回答1:
I had the same problem and ported the api to netstandard, see if it helps:
https://www.nuget.org/packages/PowerBI.NetStandard.Api/1.0.0
来源:https://stackoverflow.com/questions/43340409/powerbi-embeded-in-net-core-1-1