编译问题:'<invalid-global-code>' does not contain a definition for 'Store' and no extension method 'XXX' accepting a first argument of type '<invalid-global-code>' could be found

这是VS2015上的bug。

我碰到的时候,是VS在合并两个分支的代码时,多加了一个}。导致编译语法报错。。

解决办法就是在错误的附近,找找有没有多余的大括号,删掉即可。

这个问题在vs2017上面没有出现。。

参考文档:https://github.com/hybridview/ConfigurationSectionDesigner/issues/5

就是多了画红圈的大括号。删掉它!

猜你喜欢

转载自www.cnblogs.com/cc299/p/10284099.html