Visual Studio Tip: Get Public Key Token for a Strong Named Assembly

The first 3 parts are easy to get. I should know the name, version, and culture for the assembly since I am writing it. The part that can be a little harder to locate is the Public Key Token for my signed assembly. One common way to do this is to use Reflector to open my assembly and get the token (actually, Reflector will give you the entire fully qualified name as in the example above).  For me, that is just too much work.  If I have the project in Visual Studio already, I would much rather just click a menu item in Visual Studio to get the result.  Here is how that can be set up:

In Visual Studio, go to the Tools menu and click the External Tools menu item. This will bring up the External Tools dialog.  The image below shows the information that I have added to add a new menu item called ‘Get SN Token‘.

The command is the path to sn.exe which can be in different places depending on your VS version.  The easiest way to find it is to open a VS Command Prompt and type "where sn.exe".  The arguments field is set to -T and then the $(TargetPath) variable.  The "Use Output Window" option is checked so that the results will be shown in the VS output window.  After clicking OK, this will be enabled as a menu item as shown below.

The output for this command will be displayed in the output window. This also works if you have multiple projects in the same solution.  Just highlight the project in Solution Explorer and then click the menu item.

Visual Studio Tip: Get Public Key Token for a Strong Named Assembly

时间: 2024-10-10 14:34:16

Visual Studio Tip: Get Public Key Token for a Strong Named Assembly的相关文章

Visual Studio 2017 Key激活码

Microsoft Visual Studio Enterprise 2017 企业版 KEY:NJVYC-BMHX2-G77MM-4XJMR-6Q8QFMicrosoft Visual Studio Professional 2017 专业版KEY:KBJFW-NXHK6-W4WJM-CRMQB-G3CDH VS2017对于开发.调试.测试.写作.扩展等核心功能点都做了加强,包括新的安装体验(减少最小内存需求量.启动提速50%等).内置iOS模拟器.扩展了C# 7.0.Visual Basic

让我们更快一点Visual Studio的技巧们

它们只是不起眼的小技巧.日积月累,它们让我们的工作.学习更有效率,让我们更加专注于逻辑本身,它们是.NET程序员的好朋友,它们是Visual Studio的小技巧……我们,真的认识它们吗?  如果想尽快掌握这些技巧,请打开Visual Studio亲自试一下这些技巧,希望找到你喜欢的技巧的. (图片来自Bing) 让代码写得再快一些 怎么快速的创建一个类?创建一个应用程序,找个能建类的空地,试试这个:class<Tab><Tab>. 别急,这个技巧还没有完.直接输入想要的类名,然后

Visual Studio 2013 简体中文正式版(VS2013含旗舰版序列号)

VS 2013 中新增了很多提高开发人员工作效率的新功能,比如自动补全方括号.使用快捷键移动整行或整块的代码等:完美支持 Windows 8.1 的程序开发:提高了 Web 网站开发的工作效率和灵活性:改进了调试和优化的工具:并且,VS2013 对用户界面进行了许多方面的改进,使得其有着更好的用户体验…… Microsoft Visual Studio(简称VS)是微软公司旗下最重要的软件集成开发工具产品,是每个 Win 平台的软件开发者必备的工具,也是无数人学习编程的入门软件之一. Visua

使用Visual Studio 2015 编写 MASM 汇编程序!

原文地址:http://kipirvine.com/asm/gettingStartedVS2015/index.htm#CreatingProject Getting Started with MASM and Visual Studio 2015 Updated 10/3/2016 This tutorial assumes that you are using the Seventh Edition of Assembly Language for x86 Processors. We s

Cannot add Controls from 64-bit Assemblies to the Toolbox or Use in Designers Within the Visual Studio IDE

原文地址:https://support.microsoft.com/en-us/kb/963017 Source: Microsoft Support RAPID PUBLISHING RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPON

微软vs2015先行,Visual Studio 2015正式版离线iso及在线下载(附key)附带百度云盘地址

win10正式版发布之前我们迎来了vs2015正式版,迫不及待要下载朋友可以看看 Visual Studio Community 2015简体中文版(社区版,针对个人免费): 在线安装exe:http://download.microsoft.com/download/B/4/8/B4870509-05CB-447C-878F-2F80E4CB464C/vs_community.exe离线iso地址:http://download.microsoft.com/download/B/4/8/B48

Visual Studio 2013 Professional Key

今天发现家里的VS2013专业版过期了,于是google百度一顿大搜,多数key都不能用,不过还是找到一个key可以使用的. Visual Studio 2013 Professional Key: XDM3T-W3T3V-MGJWK-8BFVD-GVPKY 这里感谢myfather103分享.http://blog.csdn.net/myfather103/article/details/13776289 http://www.litefeel.com/visual-studio-2013-p

Visual Studio Professional 2015 key

Visual Studio Professional 2015 Key : HMGNV-WCYXV-X7G9W-YCX63-B98R2 Visual Studio Enterprise 2015 Key :HM6NR-QXX7C-DFW2Y-8B82K-WTYJV Visual Studio Enterprise 2015 Key :2XNFG-KFHR8-QV3CP-3W6HT-683CH

【VS2015正式版下载】Visual Studio 2015 正式版开放下载 Visual Studio 2015 神key

说明: 微软定于2015年7月20日发布Visual Studio 2015正式版,目前其官方网站已经提供正式版本的下载. 可在https://www.visualstudio.com/en-us/downloads 查看下载详情. 目前,因为新版本刚刚发布,还未有专业版和企业版的激活秘钥流出,博主将持续跟踪,第一时间提供激活秘钥. 如果想尝鲜的朋友,不妨试试社区版,据微软称,两个版本的差别并不大,社区版并没有阉割掉太多功能. 下载地址:1.Visual Studio 2015 简体中文社区版