wouTec
wouTec

Reputation: 140

System.Runtime.InteropServices.Marshal class in Portable Class Libraries

I have a problem with the Marshal class in the System.Runtime.InteropServicenamespace. In my project map I have a Windows Phone 8, a Windows Store and a Portable Class Library project. I can easily use the Marshalclass 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

Answers (1)

Andrii Kalytiiuk
Andrii Kalytiiuk

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: enter image description here

Upvotes: 1

Related Questions