Visual Studio Reference Study.

最近,在编辑.NET3.5版本代码是,突然爆出错误。 查处是跟参照有关。

在过去的.vbproj文件中,有如下参照

<Reference Include="System.Windows.Forms.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

代码中是因为Chart Controller而引用到了System.Windows.Forms.DataVisualization资源包。

在VS环境下,打开对应的项目,可以看到相应的参照属性如下

(1)C:\windows\assembly\GAC_MSIL\System.Windows.Forms.DataVisualization\3.5.0.0__31bf3856ad364e35\System.Windows.Forms.DataVisualization.dll

(2)C:\Program Files (x86)\Microsoft Chart Controls\Assemblies\System.Windows.Forms.DataVisualization.dll

可以看到后面的 (1)或者(2),两者均可以。 需要考虑,全局注册Global Assembly Catch.

pasting

这里分析vbproj中的Version版本号,与PublicKeyToken刚好在(1)中可以反映。   而C:\windows\assembly下的目录全部是用于参考的特殊文件或者文件夹,

通过普通的窗口只能看到一个Mark的文件夹,而不能看到其内部的文件。如果要看,必须通过Dos 窗口看。

注册表中查询: 31bf3856ad364e35, 可以看到一个Key名为:

HKEY_CLASSES_ROOT\Installer\Assemblies\c:|Program Files (x86)|Microsoft Silverlight|5.1.50906.0|bg|Microsoft.VisualBasic.resources.dll

HKEY_CLASSES_ROOT\Installer\Assemblies\c:|Program Files (x86)|Microsoft Silverlight|5.1.50906.0|cs|Microsoft.VisualBasic.resources.dll

内部bg, cs等应该是各国语言对应。的对象。可以看出,这里是微软自己封装好的Assemblies。

HKEY_CLASSES_ROOT\TypeLib\{11A8B8EE-BF30-409A-8EF7-3A143EF70332}\1.0\PrimaryInteropAssemblyName  Value=

Microsoft.Interop.Security.AzRoles Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

HKEY_CLASSES_ROOT\Wow6432Node\TypeLib\{11A8B8EE-BF30-409A-8EF7-3A143EF70332}\1.0

Microsoft.Interop.Security.AzRoles Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\c:|Program Files (x86)|Microsoft Chart Controls|Assemblies|System.Web.DataVisualization.dll System.Web.DataVisualization,version="3.5.0.0",publicKeyToken="31bf3856ad364e35",processorArchitecture="MSIL",fileVersion="3.5.30729.116",culture="neutral"

value O`X&9fQNo8q+=[WOk(@QChart_Feature>nLA{5MHuu=5c.h^A.xE[

HKEY_CURRENT_USER\Software\Microsoft\Installer\Assemblies\Global System.Windows.Forms.DataVisualization,version="3.5.0.0",publicKeyToken="31bf3856ad364e35",processorArchitecture="MSIL",fileVersion="3.5.30729.116",culture="neutral"

value O`X&9fQNo8q+=[WOk(@QChart_Feature>v‘=bOR[V[A!n0Y5w^}Hc

最终在官方网站,下载了一个MSChart.exe安装包,解决了在属性栏中找不到下及GAC文件问题。

C:\windows\assembly\GAC_MSIL\System.Windows.Forms.DataVisualization\3.5.0.0__31bf3856ad364e35\System.Windows.Forms.DataVisualization.dll

微软是如何管理,自己封存的各种资源DLL, 仍然需要考证,分析。

时间: 2024-10-09 04:38:40

Visual Studio Reference Study.的相关文章

Visual Studio SetSite failed for package [JavaScriptWebExtensionsPackage] 错误解决方案一则

安装 AspNet5.ENU.RC1.exe Microsoft ASP.NET and Web Tools 2015 (RC) – Visual Studio 2015 打开VS后发生了错误 <entry> <record>628</record> <time>2015/11/19 17:31:26.163</time> <type>Information</type> <source>VisualStudi

Conditional project or library reference in Visual Studio

Conditional project or library reference in Visual Studio In case you were wondering why you haven’t heard from me in a while, I’ve been busy, which isn’t really of much importance unless you know me on a personal level. What is relevant is that I re

Visual Studio 配置Winpcap环境

WinPcap 4.0.1在线中文手册 Start 本文以Visual Studio 2013和WinPcap 4.1.3作为示例,对32位和64位Win7通用 1.下载并安装WinPcap运行库 http://www.winpcap.org/install/default.htm 一些捕包软件会捆绑安装WinPcap,MentoHust也会附带WinPcap,这种情况下一般可以跳过此步. 2.下载WinPcap开发包 http://www.winpcap.org/devel.htm 解压到纯英

[Visual Studio Code] 执行python

Visual Studio Code 作为一种IDE,实时执行python程序,对调试或理解执行步骤起到了很大的作用!因此,以下对此作一简单接受,希望广大园友提出宝贵意见! 1. 官方说明 http://code.visualstudio.com/docs/editor/tasks 2. 配置执行环境 Note: Please note that task support is only available when working on a workspace folder. It is no

带你玩转Visual Studio——Property Manager的配制

从问题入手 抛出问题 在我的电脑上原本安装了VS2010专业版,现在由于项目的需要又安装了VS2015,但原来的VS2010用不了,在VS2010下编译程序时报如下错误: 1>TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\CL.exe" @C:\Users\Administ

Building Python 2.7.10 with Visual Studio 2010 or 2015 - Google Chrome

您的浏览器(Chrome 33) 需要更新.该浏览器有诸多安全漏洞,无法显示本网站的所有功能.?了解如何更新浏览器 × p-nand-q.com C++? Python? Programming? Languages? Humor? Tools? Misc? Building Python 2.7.10 with Visual Studio 2010 or 2015 7th revision, August 7, 2015.A document history can be found at t

GSL 1.15 and 1.16 building with Visual Studio 2010 --FROM 4fire

http://4fire.wordpress.com/2012/03/18/gsl-1-15-building-with-visual-studio-2010/ Update 05/02/2014: A good book for GSL (updated with 1.16 version) is GNU Scientific Library Reference Manual – Third Edition. Update 14-11-2013: Building GSL 1.16with V

Visual Studio 2015下编译zmq项目下其他项目踩进的项目引用坑

PS.在之前的一篇文章中介绍了如何用Visual Studio 2015编译zmq,在编译同解决方案中除了libzmq之外的项目例如inproc_thr时会报错误,具如下: Severity Code Description Project File Line Suppression State Error LNK1181 cannot open input file 'libzmq.lib' inproc_thr E:\zeromq4-1-master\zeromq4-1-master\bui

Configure Visual Studio 2013 for debugging .NET framework

Configure Visual Studio 2013 for debugging .NET framework In order to configure Visual Studio 2013 do the following in the Tools -> Options -> Debugging -> General menu: Disable just my code Disable step over properties and operators Disable requ