`System.EnvironmentVariableTarget` doesn't exist in target framework

Hi!
I switched the platform of a game from Android into WP8 and I’ve got an error:

Error building Player: Exception: Error: type System.EnvironmentVariableTarget doesn’t exist in target framework.
Error: type System.EnvironmentVariableTarget doesn’t exist in target framework.

I read the trick with “.NET 2.0 Subset” to “.NET 2.0” but it still doesn’t work.

Any solution please?

Thanks a lot!

Hello, I have the same problem. Anyone got any fix?

Remove whatever it is that uses that part of .Net, because its not a part of the Windows Phone .Net API.

Windows Phone 8 only uses a subset of the full .Net API. You can read more about it here:

Windows Phone 8 .Net