Page 1 of 1

Windows 8 App - not possible with current SDK

Posted: Mon Jul 15, 2013 7:13 pm
by pastrami
Hi Arthur,

because i am missing my CoreTemp Win7 Sidebar Gadget on Win8 - I was just trying to build a Windows 8 App to show the data provided by the Coretemp API in a Live-Tile.

I was going to build a PortableClassLibrary targeting .Net4 and then build the UI on top of it.

But there are 2 Problems:

Code: Select all

Warning	7	The primary reference "CoreTempPluginProxy" could not be resolved because it has an indirect dependency on the framework assembly "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETPortable,Version=v4.0,Profile=Profile5". To resolve this problem, either remove the reference "CoreTempPluginProxy" or retarget your application to a framework version which contains "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".	CoreTempPortableLibrary

Code: Select all

Warning	6	The primary reference "CoreTempPluginProxy" could not be resolved because it has an indirect dependency on the framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETPortable,Version=v4.0,Profile=Profile5". To resolve this problem, either remove the reference "CoreTempPluginProxy" or retarget your application to a framework version which contains "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".	CoreTempPortableLibrary
Seems like you are using:
- System
- MScorlib

These are not part of the .NET Framework which can be used by a portable class library. So my question is:
Is there any Chance, that you can build an SDK which does not need those assemblies?

I would really like to make this work - I would also help you reworking on the SDK (although I am not that experienced with C++)

Any help or hint is much appreciated!

Cheers,
Pascal

Edit: I also tried using "Shared Memory Framework for .Net" but it does not work because it is targeting .NET 2.0 and i need at least 4.0 :(

Re: Windows 8 App - not possible with current SDK

Posted: Wed Aug 14, 2013 12:38 pm
by Naki
Can you not just install the Gadgets feature from Windows 7 to Windows 8, then install the Core Temp Gadget the usual way?
I think there are threads here that discuss this.

Re: Windows 8 App - not possible with current SDK

Posted: Wed Aug 14, 2013 5:48 pm
by The Coolest
I am not sure why I didn't reply to this post earlier, I know I read it and thought I'd replied to it. So I apologize for the month's worth of delay.
Either way, the current SDK doesn't support the 'Metro' app design. Since they run in a sort of sandbox, there is no publicly available API which allows you to access shared memory sections in Windows.
I tried it before, it just doesn't work, as the APIs are not exposed.

I also think that what Naki suggested is probably the easiest solution you can find.