Custom DLL Deployment in SharePoint Online

Suresh S 96 Reputation points
2020-08-10T14:52:06.21+00:00

Hi All,

I would like to deploy the custom dll in SharePoint online/Office 365.

In my on-premises SharePoint, I have developed custom dll and deployed in GAC and registered in the SharePoint login page. So the dll logic will execute when the user login to the application.

I want to implement the same logic in my SharePoint Online login page also. Please provide me the solution to deploy the customized dll in SharePoint online.

Thanks & Regards
Suresh Sankaran

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,283 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,143 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,593 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Trevor Seward 11,696 Reputation points
    2020-08-10T14:57:18.873+00:00

    Simply put, you can't.

    You have a few alternative options:

    SharePoint Framework is the modern approach to customization in SharePoint Online. SharePoint Framework extensions can react to the user opening a page, etc.

    SharePoint Add-ins are the "legacy" method to solutions in SharePoint Online; provider-hosted addins can leverage CSOM but you have to self-host the provider piece of the solution.

    Then there are other services such as Power Automate, PowerApps, Logic Apps, and general Azure services you can leverage.

    Unless you used CSOM on-prem, you will need to re-write your solution.

    1 person found this answer helpful.
    0 comments No comments

  2. Baker Kong-MSFT 3,796 Reputation points
    2020-08-11T01:33:39.947+00:00

    Hi PoomaniS-6086,

    The authentication service of SPO is provided by Azure AD and SPO does not expose SSOM interface (even Sandbox code solutions has completely deprecated). It's not possible to deploy server side code on SPO, all custom code are running at client side or outside the SharePoint Online subscription.

    As trevorseward suggested, you can make use of SPFx, Add-in, etc. Also you can have a look SPSecurityTrimmedControl:

    Best Regards,
    Baker Kong