首页 > 其他分享 >dotnet\shared vs dotnet\packs\ref\ reference assembly vs runtime assembly

dotnet\shared vs dotnet\packs\ref\ reference assembly vs runtime assembly

时间:2023-07-03 20:34:01浏览次数:37  
标签:assembly assemblies Microsoft vs dotnet runtime AspNetCore

dotnet\shared vs dotnet\packs\ref\

C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.16\Microsoft.AspNetCore.Identity.dll
C:\Program Files\dotnet\packs\Microsoft.AspNetCore.App.Ref\6.0.16\ref\net6.0\Microsoft.AspNetCore.Identity.dll

The paths you provided indicate the location of the Microsoft.AspNetCore.Identity.dll assembly files on your system. These files are part of the Microsoft.AspNetCore.Identity package, which provides the implementation for user authentication and authorization in ASP.NET Core applications.

The Microsoft.AspNetCore.Identity.dll file located in the C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\6.0.16 directory represents the runtime assembly, which contains the compiled code that is loaded and executed at runtime.

The Microsoft.AspNetCore.Identity.dll file located in the C:\Program Files\dotnet\packs\Microsoft.AspNetCore.App.Ref\6.0.16\ref\net6.0 directory represents the reference assembly. Reference assemblies provide metadata and serve as a "contract" that defines the available types and members of a particular library. They are used during development and compilation to provide intellisense, type checking, and other features in the IDE.

These paths are specific to your system and may vary depending on your installation and version of ASP.NET Core. The actual locations may be different on another system or with a different version of ASP.NET Core.

When developing an ASP.NET Core application, the necessary assemblies for Microsoft.AspNetCore.Identity are typically resolved automatically by the .NET Core runtime or through the NuGet package manager. You usually don't need to directly reference the assembly files by specifying their paths unless you have specific requirements or customizations.

 

Reference assemblies and runtime assemblies serve different purposes in the .NET ecosystem.

Reference Assemblies:

  • Reference assemblies are used during development and compilation.
  • They provide metadata and serve as a "contract" that defines the available types and members of a particular library.
  • Reference assemblies do not contain the actual implementation code.
  • They are used by IDEs (Integrated Development Environments) to provide intellisense, type checking, and other development features.
  • Reference assemblies are typically found in the ref directory of the package or SDK installation.

Runtime Assemblies:

  • Runtime assemblies contain the actual implementation code that is executed at runtime.
  • They are loaded and executed by the .NET runtime environment.
  • Runtime assemblies can be specific to a particular platform or framework version.
  • They are typically found in the shared or runtimes directory of the package or SDK installation.
  • Runtime assemblies are required to run the application and provide the functionality defined by the reference assemblies.

In summary, reference assemblies are used during development for compilation and IDE support, while runtime assemblies are used at runtime to execute the code and provide the desired functionality.

 

 

标签:assembly,assemblies,Microsoft,vs,dotnet,runtime,AspNetCore
From: https://www.cnblogs.com/chucklu/p/17523943.html

相关文章

  • Python web 框架对比:Flask vs Django
    哈喽大家好,我是咸鱼今天我们从几个方面来比较一些现在流行的两个pythonweb框架——Flask和Django,突出它们的主要特性、优缺点和简单案例到最后,大家将更好地了解哪个框架更适合自己的特定需求参考链接:https://djangocentral.com/flask-vs-django-selecting-the-perfect-pyt......
  • vscode 添加到右键菜单
     WindowsRegistryEditorVersion5.00[HKEY_CLASSES_ROOT\*\shell\VSCode]@="OpenwithCode""Icon"="d:\\MicrosoftVSCode\\Code.exe"[HKEY_CLASSES_ROOT\*\shell\VSCode\command]@="\"d:\\MicrosoftVS......
  • Mac中VscodeC++万能头文件配置bits/stdc++.h
    /Library/Developer/CommandLineTools/usr/include路径下创建bits文件夹新建stdc++.h头文件,内容如下//C++includesusedforprecompiling-*-C++-*-//Copyright(C)2003-2018FreeSoftwareFoundation,Inc.////ThisfileispartoftheGNUISOC++Library.T......
  • 文心一言 VS 讯飞星火 VS chatgpt (53)-- 算法导论6.2 5题
    五、MAX-HEAPIFY的代码效率较高,但第10行中的递归调用可能例外,它可能使某些编译器产生低效的代码。请用循环控制结构取代递归,重写MAX-HEAPIFY代码。文心一言:以下是使用循环控制结构取代递归调用的MAX-HEAPIFY代码:defmax_heapify(A,i):heap_size=len(A)le......
  • 在Vscode使用命令npm报错-The operation was rejected by your operating system. npm
    报错信息:PSD:\disk\xubo\个人博客文章\27-Vue\资料(含课件)\vuedemo\vueproject>npmipubsub-jsnpmERR!codeEPERMnpmERR!syscallopennpmERR!pathD:\disk\soft\node.js\node_cache_cacache\index-v5\1d\32\0400202fc22af03ff2926f006e455fe92c77b8136b8fbe......
  • 搭建vsftp服务器,教程简单值得推荐
    centos7之vsftp安装和使用 centos7之vsftp安装和使用-Charles.L-博客园(cnblogs.com)......
  • dotnet-微服务学习-dotnet集成SkyWaking链路追踪
    关于链路追踪的原来我们单独开一篇文章讲解这里我们来讲解SkyWaking的安装和集成 首先进入SkyWaking官网下载最新的包网址如下: https://skywalking.apache.org/downloads/ 1.1windows安装下载后Winwos直接运行双击bin目录下的startup.bat即可 注意 SkyWalk......
  • vscode cpp 遇到的问题
    已解决:couldnotfindthetask‘g++buildactivefile,leetcode算法ACM编译调试_dlage的博客-CSDN博客(32条消息)vscode下编译告警“undefinedreference”?三步教你如何解决_vscodeundefinedreferenceto_飘逸的小松鼠的博客-CSDN博客tasks.json{"version":"2.0.0"......
  • OpenGL环境配置 和 测试代码(GLEW/GLFW VS2019)
    1.配置 2.测试代码:2.1 在黑板色的窗口上画一个三角形1#include<iostream>23//GLEW4#defineGLEW_STATIC5#include<GL/glew.h>67//GLFW8#include<GLFW/glfw3.h>91011//Functionprototypes12voidkey_callback(GLFWw......
  • VSCODE 快捷键总结
    普通快捷键:注释  Ctrl+/按次选中相同的内容  选中后,Ctrl+D一次性选中所有相同的内容  Ctrl+Shift+L移动行:alt+up/down显示/隐藏左侧目录栏 ctrl+b复制当前行:shift+alt+up/down删除当前行:shift+ctrl+k控制台终端显示与隐藏:ctrl+~查找文件/安装vscod......