‘Main.mainClass’ does not contain a
definition for ‘myMethod’ and no
extension method ‘myMethod’ accepting
a first argument of type
‘Main.mainClass’ could be found (are
you missing a using directive or an
assembly reference?)
‘Main.mainClass’ does not contain a definition for ‘myMethod’ and no extension method ‘myMethod’ accepting
Share
I think you are using referance to call that method.If yes, try to build just your project which contains that method, then rebuild solution. This problem occurs sometimes, when your build order fails.
We need more details to help you.