Code Monkey home page Code Monkey logo

c-sharp-latest-for-unity's Introduction

C-Sharp-Latest-for-Unity

Unity editor utility that automatically sets C# version to latest available

.NET 2.0 .NET 4.6 netstandard 2.0
Unity 2017.1+ 6 6 N/A
Unity 2018.1+ 7.2 latest latest

c-sharp-latest-for-unity's People

Contributors

zoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tkaczz

c-sharp-latest-for-unity's Issues

Many System.Xml.XmlException: There is no Unicode byte order mark. Cannot switch to Unicode exceptions in Unity 2018.3.b{x}

Console window is spammed with these same messages
System.Xml.XmlException: There is no Unicode byte order mark. Cannot switch to Unicode. at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.CheckEncoding (System.String newEncodingName) [0x000ad] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration (System.Boolean isTextDecl) [0x0065c] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.Read () [0x000c6] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00016] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at System.Xml.Linq.XDocument.Load (System.String uri, System.Xml.Linq.LoadOptions options) [0x0000f] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at CSharpLatest.CsProjectPostprocessor.UpdateProjectFile (System.String csproj, System.String csver) [0x00000] in <d168b503304540e1af1dd3fbda8143ac>:0 UnityEngine.Debug:LogError(Object) CSharpLatest.CsProjectPostprocessor:UpdateProjectFile(String, String) CSharpLatest.CsProjectPostprocessor:OnGeneratedCSProjectFiles() CSharpLatest.Bootstrap:Main() UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

And this
System.Xml.XmlException: There is no Unicode byte order mark. Cannot switch to Unicode. at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.CheckEncoding (System.String newEncodingName) [0x000ad] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration (System.Boolean isTextDecl) [0x0065c] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.XmlTextReaderImpl.Read () [0x000c6] in <7fd195060d8c41448694ab221d3b56ca>:0 at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00016] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at System.Xml.Linq.XDocument.Load (System.String uri, System.Xml.Linq.LoadOptions options) [0x0000f] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in <428ab70c13974bd0bcd1eeafc00ea3e2>:0 at CSharpLatest.CsProjectPostprocessor.UpdateProjectFile (System.String csproj, System.String csver) [0x00000] in <d168b503304540e1af1dd3fbda8143ac>:0 UnityEngine.Debug:LogError(Object) CSharpLatest.CsProjectPostprocessor:UpdateProjectFile(String, String) CSharpLatest.CsProjectPostprocessor:OnGeneratedCSProjectFiles() UnityEditor.SyncVS:SyncVisualStudioProjectIfItAlreadyExists()

As a result LangVersion is still stucked on 7.

How to reproduce:

  1. Add incremental compiler, at the moment I had
    "com.unity.incrementalcompiler": "0.0.42-preview.24",
  2. Import package with newest version of your app
  3. Console window is spammed with prevoiusly described messages
  4. Assembly(...).csproj is still at LangVersion 7, because bug still exist

Maybe that can help
https://stackoverflow.com/questions/29915467/there-is-no-unicode-byte-order-mark-cannot-switch-to-unicode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.