Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个供应商提供的 DLL,我想在我的 .cshtml 文件中使用它。我看不到您在 Webmatrix 中添加对程序集的引用的位置......还是我完全错过了这一点?
在您的站点中创建一个 bin 文件夹并将其复制到那里。WebMatrix 没有像 VS 一样提供添加引用的方法。您需要在 CSHTML 文件的顶部添加 using 语句:
@using MyThirdParty.Component;
不,你没有错过重点。我可以看到 WebMatrix 的用户想要玩 iTextSharp 或类似的东西。