fullserializer icon indicating copy to clipboard operation
fullserializer copied to clipboard

How to build DLL for WP8?

Open tng2903 opened this issue 8 years ago • 2 comments

Hello,

I followed the guide on how to build dll, that is, edit the path to Unity's install location, re-reference the WinRTLegacy.dll in project, but after hitting F6, the dll for WinRT doesn't show up in build folder. Instead, there are some errors displayed in the console, which, I believed, is because it can't include some namespace but I can't seem to figure out which is.

The errors are as follow:

Error	CS1061	'Type' does not contain a definition for 'IsInterface' and no extension method 'IsInterface' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\fsSerializer.cs	288	Active
Error	CS1061	'Type' does not contain a definition for 'IsAbstract' and no extension method 'IsAbstract' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\fsSerializer.cs	288	Active
Error	CS1061	'Type' does not contain a definition for 'IsGenericType' and no extension method 'IsGenericType' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\fsSerializer.cs	291	Active
Error	CS1061	'Type' does not contain a definition for 'IsInterface' and no extension method 'IsInterface' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\fsSerializer.cs	409	Active
Error	CS1061	'Type' does not contain a definition for 'IsAbstract' and no extension method 'IsAbstract' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\fsSerializer.cs	409	Active
Error	CS1061	'IEnumerable<TypeInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<TypeInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	17	Active
Error	CS1061	'IEnumerable<Attribute>' does not contain a definition for 'Length' and no extension method 'Length' accepting a first argument of type 'IEnumerable<Attribute>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	112	Active
Error	CS0021	Cannot apply indexing with [] to an expression of type 'IEnumerable<Attribute>'	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	113	Active
Error	CS1061	'IEnumerable<ConstructorInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<ConstructorInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	222	Active
Error	CS1061	'IEnumerable<MethodInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<MethodInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	306	Active
Error	CS1061	'IEnumerable<PropertyInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<PropertyInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	314	Active
Error	CS1061	'IEnumerable<FieldInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<FieldInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	322	Active
Error	CS1061	'IEnumerable<MemberInfo>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<MemberInfo>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	330	Active
Error	CS1061	'IEnumerable<Type>' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'IEnumerable<Type>' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	400	Active
Error	CS1061	'Type[]' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'Type[]' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsPortableReflection.cs	404	Active
Error	CS1061	'Type' does not contain a definition for 'GetGenericArguments' and no extension method 'GetGenericArguments' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsTypeExtensions.cs	53	Active
Error	CS1061	'Type' does not contain a definition for 'GetGenericArguments' and no extension method 'GetGenericArguments' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsTypeExtensions.cs	65	Active
Error	CS1061	'Type' does not contain a definition for 'GetGenericArguments' and no extension method 'GetGenericArguments' accepting a first argument of type 'Type' could be found (are you missing a using directive or an assembly reference?)	FullSerializer - Unity - WinRT	D:\Documents\gits\fullserializer\Assets\FullSerializer\Source\Internal\fsTypeExtensions.cs	66	Active

Interestingly, these error also shown up if I choose to add source code into Unity project and build to WP8.1 in .NET framework. Does anybody know how to solve this issue?

tng2903 avatar Mar 05 '17 15:03 tng2903

These errors are also present when doing non-dll builds for Windows Universal 10 with the .NET backend. It works if the I2CPP backend is used. Unfortunately for me, I have other plugins which aren't compatible with I2CPP.

BrknRobot avatar Mar 29 '17 19:03 BrknRobot

These errors should be fixed with #136. Can you test against the latest code in master?

BrknRobot avatar May 15 '17 15:05 BrknRobot