Reputation: 140
I have a problem with the Marshal
class in the System.Runtime.InteropService
namespace.
In my project map I have a Windows Phone 8, a Windows Store and a Portable Class Library project.
I can easily use the Marshal
class in the Windows Phone 8 and Windows Store project, but not in the Portable Class Library. This class can not be found there.
By settings, the Portable Class Library support the .Net 4.5 Framework, Windows Phone OS 8.0 and Windows Store.
Upvotes: 1
Views: 1239
Reputation: 1497
You cannot access Marshal
class in Portable Class Library project with support of anything else than .NET Framework and Windows Store App - by design of .NET Framework as stated in resolution of relevant bug of .NET Framework.
Added below a screenshot as at MS Connect they tend to delete defects (as here) from time to time:
Upvotes: 1