2012中通过代码添加程序集

2012中通过代码添加程序集

本文介绍了如何在vs 2012中通过代码添加程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我需要在运行时引用一个程序集。



我用过assembly.loadfile(path),如果我使用它,我在下面的行中收到错误。



Html.CodeEffects()。Scripts()。Render() ;



异常:无法找到或加载程序集TestCode,Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null。错误消息:无法加载文件或程序集'TestCode,Version = 0.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一。该系统找不到指定的文件。 (错误S103)



我能否知道如何做到这一点。

Hi All,

I need to refer an assembly during runtime.

I have used assembly.loadfile(path), If I use this I am getting a error in the below line.

Html.CodeEffects().Scripts().Render();

Exception: Could not find or load assembly "TestCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null". Error message: Could not load file or assembly 'TestCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. (Error S103)

Can I know how this can be done.

推荐答案


这篇关于如何在vs 2012中通过代码添加程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 22:25