我在Windows8笔记本电脑上使用VS 2008,当调试器碰到这一行代码时,我会得到一个NotSupportedException。有人能告诉我为什么我会犯这个错误吗?
误差图像
发布于 2015-01-17 07:08:19
基于文档,只有两种情况下可以获得此异常。
Windows 8不是Windows CE,所以我想您已经安装了.NET Compact。
发布于 2015-01-17 07:06:32
我建议使用System.Reflection.Assembly.GetExecutingAssembly.Location
string startuppath = IO.Path.GetFolderName(System.Reflection.Assembly.GetExecutingAssembly.Location);https://stackoverflow.com/questions/27997040
复制相似问题