I have a Windows Store Application that use a portable class library with a T4 template. When I run the transformation it fails with the following error:
Compiling transformation: The type 'System.Object' is defined in an assembly
that is not referenced. You must add a reference to assembly 'System.Runtime,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
I tried to add reference to the System.Runtime library manually, but I got message "The component is already automatically referenced by the build system"
The same library works in a Silverlight project as well as in a Windows Phone project.
Does anybody have an idea where is the problem?
I am new in developing Windows Store applications, so it might be some trivial error, but I am unable to find any solution.