Visual Studio 2017 Unexpected Character '

后端 未结 2 1511
温柔的废话
温柔的废话 2021-01-11 13:26

So I had 2 weird system crashes, shall I say restarts. I tried to troubleshoot but i could\'t find any problem. Soon after I went into VS 2017 to practice a bit and this occ

相关标签:
2条回答
  • 2021-01-11 13:33

    As per https://lautzofdotnet.wordpress.com/tag/unexpected-character/ you need to do the following:

    Browse to the file in question in the Appdata\temp folder and you’ll see at at least the file in question (my case .NETFramework,Version=4.5.2.AssemblyAttributes.cs). I also had a few other similar files for different .NET versions.

    Just delete them out of the temp folder. When you recompile, they will get recreated, but I received no errors and all is working well.

    Note: The file can usually be found in C:\Users\\{userName}\AppData\Local\Temp

    0 讨论(0)
  • 2021-01-11 13:33

    This will also fix the problem if anyone encounters it in Xamarin forms for Android, delete the respective file (Example:"MonoAndroid,Version=v7.1.AssemblyAttributes.cs ") out of the temp folder

    0 讨论(0)
提交回复
热议问题