問題描述
目前,我正在嘗試在 Visual Studio 2017 中為我的 .net core 1.1 項目導入 powerbi 包.但是,我收到以下錯誤:
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
這是否發生在其他人身上?您知道如何解決這個問題并將 powerbi 嵌入到新的 .net core 1.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!
推薦答案
我也遇到了同樣的問題,把api移植到netstandard,看看有沒有幫助:
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
這篇關于.net core 1.1 中嵌入的 powerbi的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!