ASP.Net Core中没有智能 [英] No intellisense in ASP.Net Core

查看:43
本文介绍了ASP.Net Core中没有智能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过Visual Studio安装ASP.Net Core之后==>新建项目==> Web ==> ASP.Net Web应用程序==>确定==> ASP.Net 5模板.安装后重新启动系统,然后创建一个新项目ASP.NET 5 Template ==>空网站.我没有任何智能感知,所有类名都为RED,就像Visual Studio或Resharper无法找到该定义一样.

After installing ASP.Net Core via Visual Studio ==> New Project ==> Web ==> ASP.Net Web Application ==> OK ==> ASP.Net 5 Templates. Restarted the system after the installation then create a new project of ASP.NET 5 Template ==> Empty website. I dont get any intellisense and all class names are in RED as if the Visual Studio or Resharper is unable to locate the definition.

以下是一些屏幕截图.

Here are some screen shots.

并且没有智能

使用services对象时,我期望有services.AddSingleton,service.AddScoped服务,AddTransient服务.AddLogging等...

When using services object, I was expecting services.AddSingleton, service.AddScoped services.AddTransient service.AddLogging and so on...

我已经重新启动了Visual Studio,但结果仍然相同,但是该项目可以按预期进行编译和运行,但是在没有智能感知的情况下很难找出新的api.

I have restarted the visual studio but still the same result, however the project compiles and runs as expected but its very difficult to figure out the new api without any support from the intellisense.

我安装了更新1的Resharper v 9.

I have resharper v 9 with update 1 installed.

谢谢!

推荐答案

这完全取决于所使用的ASP.NET 5版本,因为它一直是支持的目标.它应该可以工作,但是(我认为)RC1位,但是如果您尝试使用当前的RC2之前的版本,则存在已知问题(例如,工具已被完全重写).我们希望在RC2之后修复问题并进行更新,但是随着最近有关继续对工具进行重大更改的公告(正在逐步淘汰project.json并替换为.csproj文件),这可能并不容易.我们将不得不等待,看看RC2工具的外观如何.

It all depends what version of ASP.NET 5 you're using, as it's been a bit of a moving target to support. It should work, but for (I think) RC1 bits, but if you're trying to use the current pre-RC2 builds, there are known issues (e.g. the tooling has been completely rewritten). We're hoping to get things fixed and updated post RC2, but with the recent announcements about continuing breaking changes to the tooling (project.json is being phased out and replaced with .csproj files), this might not be so easy. We're going to have to wait and see how the RC2 tooling looks.

这篇关于ASP.Net Core中没有智能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆