gpt4 book ai didi

c# - 强名称工具(sn.exe)与全局程序集缓存(gacutil.exe)的区别

转载 作者:太空宇宙 更新时间:2023-11-03 23:25:25 26 4
gpt4 key购买 nike

试图了解这些用于Windows C# 开发的开发工具之间的区别。任何人都可以澄清这些困惑吗?

强名称工具 (sn.exe),此工具是将程序集复制到 GAC 中还是仅对程序集进行签名?用于将程序集添加到 GAC 的全局程序集缓存工具 (gacutil.exe)。Windows Installer 2.0 和 gacutil.exe 有什么区别?

最佳答案

Strong Name tool (sn.exe), does this tool copy the assembly into the GAC or only sign the assembly?

它仅使用强名称对程序集进行签名。

What are the differences Windows Installer 2.0 and gacutil.exe ?

Windows Installer 不仅限于 .NET。 Windows Installer 支持高效安装和配置在 Windows 上运行的产品和应用程序。

另一方面,gacutil 仅限于部署到 GAC 的 .NET 程序集。与 Windows Installer 不同,GAC 并非设计用于打包整个应用程序,而是用于打包应用程序之间的一些可重用 .NET 组件。为了能够在 GAC 中安装 .NET 程序集,首先需要使用 sn.exe 工具使用强名称对其进行签名。

关于c# - 强名称工具(sn.exe)与全局程序集缓存(gacutil.exe)的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33981596/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com