0

I started messing with the new Visual Studio Code today and I am running into a small "problem"...of sorts.

I have added reference to Npgsql in the project.json of a Web API project and run 'dnu restore' which also updated the project.lock.json to include the proper references. However the code editor highlights an error for every reference to an Npgsql object, giving me the "are you missing a using directive or reference" message for each one, including the 'using Npgsql;'

The really odd part is that the same tooltip that tells me it doesn't recognize the type..also tells me exactly what it is and does. Intellisense still works and if I execute 'dnx: web'...the whole thing runs just fine with no errors.

I am assuming its just a bug in the new editor but who knows, maybe I've not configured something correctly? Anybody else see this?

4

1 回答 1

0

当您在project.json. 默认情况下,您将拥有dnx451dnxcore50。可能依赖项仅适用于其中一个框架,但不适用于另一个。检查 VSCode 给您的错误消息 - 它将在 [] 括号中包含错误有效的框架。

于 2015-05-04T13:32:54.420 回答