Search Issue Tracker
Won't Fix
Votes
0
Found in
4.6.3f1
Issue ID
675026
Regression
No
errors referencing unityplayer.winmd
Link to forum thread:
http://forum.unity3d.com/threads/build-error-with-wsa-plugin.300913/
I'm writing a WSA plugin with a reference to UnityPlayer, so I could use UnityPlayer.AppCallbacks to run code in UIThread or AppThread from within the plugin.
reference
\Unity\Editor\Data\PlaybackEngines\metrosupport\Players\WindowsPhone81\ARM\master\UnityPlayer.winmd
This build error log in Unity 4.6.3f1
Error building Player: Exception: Failed to run Reference Rewriter with cmdline --target="Temp/StagingArea\DeviceUtils.dll" --framework="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1" --platform="C:\Program Files (x86)\Windows Phone Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd" --support="Temp/StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --system=System --dbg=pdb --alt=System.Xml.Serialization --ignore=System.IConvertible,mscorlib.[Temp/StagingArea\DeviceUtils.dll]
Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'UnityPlayer, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null'
at Unity.ReferenceRewriter.RewriteContext.RewriteResolver.ResolveAndRegisterWinmd(AssemblyNameReference name)
at Unity.ReferenceRewriter.RewriteContext.RewriteResolver.Resolve(AssemblyNameReference name)
at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
at Unity.ReferenceRewriter.RewriteTypeReferences.Visit(TypeReference type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchFields(TypeDefinition type, String referencingEntityName)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch(TypeDefinition type)
at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[] args)
---
Won't fix reason:
Users shouldn't reference unityplayer.winmd;
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment