Can I create visual web part for SharePoint online in SharePoint 2016?
-
20-02-2021 - |
题
I tried to create a visual web part and publish it to SharePoint online:
I created a visual web part at local using SharePoint server 2016 and to publish to SharePoint online, I selected "Sandboxed Solutions".
I tried to run test at local and publish to SP Online, but both throws errors:
$Resources:core,ImportErrorMessage;
Can I create visual web part for SharePoint online in SharePoint 2016?
解决方案
Code based sandbox solutions contain server-side code and the solution contains .Net assembly file (.dll). SharePoint online doesnot support Code-based sandbox solutions.
You could transform sandbox solutions to the SharePoint Add-in model: