开发者

How to change reference to local ( from GAC to bin )

I've got MS Chart control and with a references to GAC. I found them ( C:\Program Files\Microsoft Chart Controls\Assemblies )

but how to change GAC to local copy (bin) for comparability with other servers without installed M开发者_如何学运维S Chart control for VS .

I've tried to add dll files manually but that was a fail. It's looking like I need to config Web.Config manually.

change it

<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>

somehow to move it from GAC to bin , so How ?


In Solution Explorer in Visual Studio (or VWD, if you use the express version), find the DLL under References. Right-click it, and select Properties. Change Copy Local to True.

If you have a Web Site Project instead of a Web Application Project, the references will be directly in the Bin folder.


Make a copy of the DLL in your solution (Solution items).

Create a .refresh file in your BIN folder that points to your copied DLL, preferable using relative paths.

Add the .refresh file to your project (in the BIN folder).

Remove any references to the assembly from the web.config file.

Dave.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜