1、在web.config里面
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>
添加这个程序集有什么作用啊?
2、如果是想引用Microsoft.Office.Interop.Excel文件,为什么不直接放在bin目录下,然后using引用呢?
3、那个程序集是手工写的吗?
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/>
</assemblies>
</compilation>
添加这个程序集有什么作用啊?
2、如果是想引用Microsoft.Office.Interop.Excel文件,为什么不直接放在bin目录下,然后using引用呢?
3、那个程序集是手工写的吗?
添加引用和using 并不是包含关系,他们是交叉关系,就是说,你只有引用了DLL ,才具备了using 的条件是手工写上去的