Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# XmlException:预期为'';(3B)但发现'/';(2F)团结_C#_Unity3d - Fatal编程技术网

C# XmlException:预期为'';(3B)但发现'/';(2F)团结

C# XmlException:预期为'';(3B)但发现'/';(2F)团结,c#,unity3d,C#,Unity3d,我在Unity中启动新项目时收到此错误消息。重新安装Unity不起作用。而且,不知道这是否相关,但VS2017也没有看到统一 XmlException: expected ';' (3B) but found '/' (2F) Line 58, position 39. Mono.Xml2.XmlTextReader.Expect (Int32 expected) Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntit

我在Unity中启动新项目时收到此错误消息。重新安装Unity不起作用。而且,不知道这是否相关,但VS2017也没有看到统一

XmlException: expected ';' (3B) but found '/' (2F)  Line 58, position 39.
Mono.Xml2.XmlTextReader.Expect (Int32 expected)

Mono.Xml2.XmlTextReader.ReadEntityReference (Boolean ignoreEntityReferences)
Mono.Xml2.XmlTextReader.ReadReference (Boolean ignoreEntityReferences)
Mono.Xml2.XmlTextReader.ReadText (Boolean notWhitespace)
Mono.Xml2.XmlTextReader.ReadContent ()
Mono.Xml2.XmlTextReader.Read ()
System.Xml.XmlTextReader.Read ()
Mono.Xml.XmlFilterReader.Read ()
System.Xml.Linq.XElement.LoadCore (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XNode.ReadFrom (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader reader, LoadOptions options)
System.Xml.Linq.XElement.LoadCore (System.Xml.XmlReader r, LoadOptions options)
System.Xml.Linq.XNode.ReadFrom (System.Xml.XmlReader r, LoadOptions options)

如果包含项目的用户名或文件夹结构中有
&
字符,则可能发生这种情况。使用其他用户,和/或重命名有问题的文件夹。

检查stacktrace中提到的
XmlReader r
,找出它引用的文件或它正在读取的任何文本内容,然后分析它和/或将发现的内容(路径、内容等)粘贴到此处。否则,这几乎只是猜测或重新安装所有东西,直到一切正常。.C:/buildslave/unity/build/Editor/Mono/VisualStudioIntegration/SolutionSynchronizer.cs:320)文本中的路径,但我看不出这是什么。XmlReader r可能在哪里?升级VS 2017后您是否看到此错误(您使用的是什么版本)?不,我以前使用过VS2017。但我今天重新安装了Unity和VS。没有多大帮助。您的Windows用户名或Unity项目路径中是否有
&
?看到谢谢你的软件ejedi和FlashOver,我重命名了我的用户文件夹,去掉了符号,它消除了异常!