简体   繁体   English

asp.net 核心 3.1 web 应用程序中未显示的代码参考

[英]References of code not showing in asp.net core 3.1 web application

my codes in asp.net core 3.1 is not showing references at all, have created a book model class, and was expecting my code to looks like something like this,我在 asp.net 核心 3.1 中的代码根本没有显示参考,已经创建了一本书 model class,并希望我的代码看起来像这样,

0 refrences
public class book()
{

}

but it was only但这只是

public class book()

and these is as been going on everywhere in the scope of the project i created, i created two new project entirely to check if its the app but am stil not getting it.这些在我创建的项目的 scope 中随处可见,我完全创建了两个新项目来检查它是否是应用程序,但我仍然没有得到它。

when i tried it without using refrences, i later have errors inheriting class and some inbuilt functions.当我在不使用参考文献的情况下尝试它时,我后来在继承 class 和一些内置函数时遇到了错误。 Asp.net core 3.1 web application using. Asp.net 内核 3.1 web 应用使用。 visual studio 2019 16.6.2 latest.视觉工作室 2019 16.6.2 最新。

Remove() suffix in book class because it denotes method.书中 class 中的Remove()后缀,因为它表示方法。

public class book
{

}

so i got a way to fix my question, i noticed that codelens as been turned off in my visual studio.所以我有办法解决我的问题,我注意到我的视觉工作室中的 codelens 已关闭。 To fix it:要解决这个问题:

  1. goto Tools in visual studio and select options转到 Visual Studio 中的工具和 select 选项
  2. you can search for codelens in the search box and check the checkbox您可以在搜索框中搜索 codelens 并选中复选框

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 多语言 Asp.Net Core 3.1 MVC 应用程序未在 url 中显示语言代码 - Multilingual Asp.Net Core 3.1 MVC application does not showing language code in url Asp.NET 核心 web 应用程序在创建新项目时不显示 - Asp.NET Core web application not showing on creation of new project 在 ASP.NET Core 3.1 Web 应用程序中获取“无法识别的 SameSiteMode 值 -1”InvalidOperationException - Getting "Unrecognized SameSiteMode value -1" InvalidOperationException in ASP.NET Core 3.1 Web Application 如何在 asp.net 核心 3.1 mvc web 应用程序中将日志保存到数据库? - How do I save logs to database in asp.net core 3.1 mvc web application? 我应该如何保护我的 Web 应用程序(ASP.Net Core 3.1 MVC)? - How should i secure my Web Application(ASP.Net Core 3.1 MVC)? ASP.NET Core 3.1 Web 应用程序失败,出现“Microsoft.NETCore.App”,找不到版本“3.1.27”错误 - ASP.NET Core 3.1 Web application failed with 'Microsoft.NETCore.App', version '3.1.27' was not found error Serving and Verifying.network 在 Asp.Net Core 3.1 中共享图像 Web 应用程序 (Razor Pages) - Serving and Verifying network share images in Asp.Net Core 3.1 Web Application (Razor Pages) 是否可以将 ASP.Net Core 3.1 Web 应用程序发布为单个文件 - Is that possible to publish ASP.Net Core 3.1 web application as a Single File 如何在 ASP.NET CORE 3.1 Web API 中捕获当前状态码 - How to capture current Status code in ASP.NET CORE 3.1 Web API ASP.NET Core 3.1:Web API 身份登录 - ASP.NET Core 3.1: Web API identity sign in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM