March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I'm reaching out because I'm bumping into a problem that prevents me to try out all the PowerBI sample applications in either VS Code or VS 2017 Community.
I'm totally new to the .NET / C# Windows world as I've developped on the RoR Stack on Ubuntu so far.
When I try and run code like the App Owns Data sample, I get the following error in the console :
d:\Code\Embed-API-Sample\EmbedAPISample\EmbedAPISample.csproj : error NU1202: Package Microsoft.PowerBI.Api 2.0.11 is not compatible with net40 (.NETFramework,Version=v4.0). Package Microsoft.PowerBI.Api 2.0.11 supports: portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111)
d:\Code\Embed-API-Sample\EmbedAPISample\EmbedAPISample.csproj : error NU1202: Package Microsoft.Rest.ClientRuntime 2.0.1 is not compatible with net40 (.NETFramework,Version=v4.0). Package Microsoft.Rest.ClientRuntime 2.0.1 supports:
d:\Code\Embed-API-Sample\EmbedAPISample\EmbedAPISample.csproj : error NU1202: - dnxcore50 (DNXCore,Version=v5.0)
d:\Code\Embed-API-Sample\EmbedAPISample\EmbedAPISample.csproj : error NU1202: - net45 (.NETFramework,Version=v4.5)
d:\Code\Embed-API-Sample\EmbedAPISample\EmbedAPISample.csproj : error NU1202: - portable-net45+win8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile111)
It looks like the .NET 4.0 Framework is referenced somewhere but I can't find where. And it's not installed on my PC as I went for the 4.7.1 version on my Win10 Creators' etc PC.
I'd really appreciate if anyone could help...
Thanks forward for any ressource you will direct me to,
Best,
Franck
Hi @franckster,
Here is an article about troubleshooting .NET Framework Targeting Errors. Could you go to check if it helps in your scenario?
Regards
Thanks for your answer!
I had the PBI support over the phone on Friday and the build went fine on VS Community 2017 when we downloaded again the source code from Github. So I assume opening the project in VS Code first kind of messed it up...
I'll look into it anyway as it really bugs me not be be able to use VS Code for this...
Thanks again !
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
9 | |
3 | |
2 | |
2 | |
2 |