Visual Studio 2017意外字符' [英] Visual Studio 2017 Unexpected Character '
问题描述
所以我有2次奇怪的系统崩溃,我应该说重启.我试图进行故障排除,但是找不到任何问题.在我进入VS 2017进行一些练习之后不久,这种情况就发生了.
错误:
C:\ Users \ Shaky \ App Data \ Local \ Temp.NET Framework,Version = v 4. 5. 2个 .程序集Attributes.cs(1,1,1,1):错误CS 1056:意外字符 '
请注意,它不会说出哪个字符,而只会说'".
这重复了202次.
我必须用空格分隔框架版本号,因为由于语法错误,它不允许我传递文件路径,我搜索了怎么做,没有找到,这是我认为的第一次发布./p>
这重复了202次.
根据 https://lautzofdotnet.wordpress.com/tag/unexpected-character/,您需要执行以下操作:
浏览到Appdata \ temp文件夹中的相关文件,您将 至少看到有问题的文件(我的情况 .NETFramework,Version = 4.5.2.AssemblyAttributes.cs).我也有几个 .NET版本的其他类似文件.
只需将它们从temp文件夹中删除即可.当您重新编译时,它们 将被重新创建,但我没有收到任何错误,并且一切正常.
注意:通常可以在C:\Users\\{userName}\AppData\Local\Temp
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 occurs.
Error:
C:\Users\Shaky\App Data\Local\Temp.NET Framework,Version=v 4 . 5 . 2 . Assembly Attributes.cs(1,1,1,1): error CS 1056: Unexpected character '
Note that it doesn't say which character, it just says " ' ".
And this repeats over and over like 202 times.
I had to separate framework version numbers with space because it doesn't let me pass the file path due to bad grammar, I searched how to do it, didn't find, this is my first time posting i think.
And this repeats over and over like 202 times.
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
这篇关于Visual Studio 2017意外字符'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!