Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by juliancruz · Nov 12, 2013 at 07:17 PM · windows phone

Unity 4.3 error when I do build (windows phone).

Hi, I try to do a build in windows phone with unity 4.3, I did it in unity 4.2.2 and unity builded the visual studio project, but Now shows me next error and can't build visual studio project. What can I do?

Error building Player: Exception: Failed to run reference rewriter with command "--target="Temp/StagingArea\Assembly-CSharp.dll" --framework="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0, C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Libraries" --platform="C:\Program Files (x86)\Windows Phone Kits\8.0\Windows MetaData\Windows.winmd" --support="Temp/StagingArea/WinRTLegacy.dll" --winmdrefs="" --system=Unity --dbg=pdb --alt=System.Net; System.Net.Sockets,System.Net; System.Xml.Serialization; System.ComponentModel,System.Windows; System.Threading,mscorlib".

[Temp/StagingArea\Assembly-CSharp.dll]

Catastrophic failure while running rrw: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Unity.ReferenceRewriter.RewriteTypeReferences.RewriteObjectListToParamsCall(MethodBody methodBody, Int32 instructionIndex) at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethodBody(MethodBody body) at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethod(MethodDefinition method) at Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethods(TypeDefinition type) at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch() at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context) at Unity.ReferenceRewriter.Program.Main(String[] args)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image appon-tester · Mar 02, 2017 at 01:05 PM 0
Share

Reference rewriter: Error: type WinRTLegacy.Text.Encoding doesn't exist in target framework. It is referenced from App42-Unity3D-SD$$anonymous$$-WinRT-4.0.1.dll at System.String com.shephertz.app42.paas.sdk.csharp.util.Base64::EncodeTo64(System.String). UnityEngine.Debug:LogError(Object) PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:581) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126) UnityEditor.HostView:OnGUI()

Reference rewriter: Error: type System.Collections.Specialized.IOrderedDictionary doesn't exist in target framework. It is referenced from App42-Unity3D-SD$$anonymous$$-WinRT-4.0.1.dll at App42Json.IJsonWrapper. UnityEngine.Debug:LogError(Object) PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:581) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126) UnityEditor.HostView:OnGUI()

Reference rewriter: Error: type System.IO.File$$anonymous$$ode doesn't exist in target framework. It is referenced from App42-Unity3D-SD$$anonymous$$-WinRT-4.0.1.dll at System.Void com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW::Execute$$anonymous$$ultipart(System.String,System.String,System.Collections.Generic.Dictionary`2 ,System.Collections.Generic.Dictionary`2,System.Collections.Generic.Dictionary`2 ,System.Collections.Generic.Dictionary`2,System.String,System.String,com.shephertz.app42.paas.sdk.csharp.App42CallBack). UnityEngine.Debug:LogError(Object) PostProcessWinRT:RunReferenceRewriter() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:581) PostProcessWinRT:Process() (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:126) UnityEditor.HostView:OnGUI()

unity version 5.4.2

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by MasterChris · Nov 15, 2013 at 12:53 AM

I had this same issue. This is a bug in Unity related to WINRT legacy code. Here was my post: link text

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Missing Windows Phone solution class documentation 0 Answers

Aim Down Sight Script not working with GUI Button, but working with MouseButtonDown(0) 1 Answer

game stopd and quits as the terrain loads in winPhone 8.1 0 Answers

Control camera through Windows Phone accelerometer 0 Answers

Windows Phone 8 Build 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges