Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kasper Dyrvig 246 posts 379 karma points
    Dec 12, 2012 @ 14:44
    Kasper Dyrvig
    0

    Use custom class libraries in razor

    Hi all

    My developer and I are looking for information on how to use custom .NET class libraries in razor scripts. We have some data we used to access in xslt via these classes. But we would very much like to convert it all to razor.

    Any one who has some tips for us? Thanks

  • Jeremy Pyne 106 posts 244 karma points MVP c-trib
    Dec 12, 2012 @ 15:55
    Jeremy Pyne
    0

    Just drop any dll's into the /bin folder any everthing should work just like a .Net Project.  You can use the full namspace names or use using statments such as the following.

     

    @using My.Library.Namespace;

    @{

    var obj = new MyCustomClass();

    }

Please Sign in or register to post replies

Write your reply to:

Draft