- Home /
cannot builb for any windows phone
Am getting error Reference rewriter: Error: method System.Void ystem.ComponentModel.DesignerCategoryAttribute::.ctor(System.String) doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AIBservice. UnityEngine.Debug:LogError(Object) PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:558) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:118) UnityEditor.PostprocessBuildPlayer:Postprocess(BuildTarget, String, String, String, Int32, Int32, String, String, BuildOptions, RuntimeClassRegistry)
Answer by Bunny83 · Nov 03, 2015 at 06:55 PM
Well, the error is quite clear about the error. It looks like you have a class that is called "AIBservice" which has an "DesignerCategory" attribute. That attribute seems to be not supported.
I don't have a windows phone and never developed for one so i'm just guessing here. That attribute is usually used by the form designer of Visual Studio. Do you have created or imported any Form components in your project? What is that AIBservice ?
Thanks Bunny83 a million times for taking time to assist. The AIBservice is a .cs class created using WSDL utility in the unity folder encapsulating the web service service . The build works well for other platforms except any windows platform.
@peterc1, remember to use comments!!!! Don't post as an answer when you don't have one!
Do you mean it doesn't work when you build for windows phone or even when you build for windows standalone?
Usually unity uses mono as scripting environment, however I've read that when you build for windows phone they actually use the .Net framework that is already part of the OS . That's why certain things doesn't work.
You can try to remove those attributes from those classes as they most likely are not required anyways. They seem to be used by the designer to group components.
Thanks Bunny83. It has finally worked after removing the attributes.
Your answer