[1636] // ReSharper disable Asp.NotResolved don't work on return View() in Controller Actions


Hi,

i have this.


        private class TestController : Controller
        {
            public ActionResult TestAction() {
// ReSharper disable Asp.NotResolved
               return View();
// ReSharper restore Asp.NotResolved
            }
        }

And no View (not needed).

But it is marked as an error.


Regards

Albert


2 comments
Comment actions Permalink

It's fixed in the last nightly build.
But you need to change severity of this error to warning, since disabling of specific highlightings is not working for errors, only for warnings, suggestions and etc.

By the way, if you don't need view why just don't use EmptyResult?

0
Comment actions Permalink

In more latest build you can disable errors too.


0

Please sign in to leave a comment.