How do you reference third-party assemblies in WebMatrix?

I have a vendor DLL and would like to use it in my .cshtml files. I don’t see where you add assembly references in Webmatrix, though ... or am I completely losing the point?

+8
webmatrix
source share
1 answer

Create a bin folder on your website and copy it there. WebMatrix does not provide a way to add links in the same way as VS. You need to add the using statement at the top of the CSHTML file:

@using MyThirdParty.Component; 

No, you do not miss this point. I can see how WebMatrix users want to play with iTextSharp or similar.

+7
source share

Source: https://habr.com/ru/post/651091/


All Articles