none
SharePoint 2013 office 365 development RRS feed

  • Question

  • Hello,

    Is there a way to develop SharePoint sandbox solutions for office 365 version of SharePoint 2013 using visual studio 2015

      (I am New to office 365 SharePoint).

      Thanks

    Sunday, March 12, 2017 12:41 AM

Answers

  • Sandbox solutions were deprecated several years ago.  The ability to use sandbox solutions containing code was removed from Office 365 last summer.  So although you can still create Sandbox solutions, including creating them in Visual Studio, you can't create any sandbox solutions that contain C# or VB code.  You can only create sandbox solutions that contain declarative XML.  Here's an article that explains in more depth.

    http://www.sharepointnutsandbolts.com/2016/08/sandbox-code-disabled-in-Office-365.html


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Sunday, March 12, 2017 2:14 AM
  • Code based projects made from SharePoint empty projects cannot be used with Office 365.  But you can still create a declarative sandbox solution with that project by not including code and telling it not to compile a DLL.  Then it just packages up the feature XML and any other declarative XML.  Those Sandbox solutions can still be deployed.  Just no code.

    Code based solutions all need to be client side code.  That means add-ins or the new SharePoint Framework.


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.


    Sunday, March 12, 2017 12:34 PM

All replies

  • Sandbox solutions were deprecated several years ago.  The ability to use sandbox solutions containing code was removed from Office 365 last summer.  So although you can still create Sandbox solutions, including creating them in Visual Studio, you can't create any sandbox solutions that contain C# or VB code.  You can only create sandbox solutions that contain declarative XML.  Here's an article that explains in more depth.

    http://www.sharepointnutsandbolts.com/2016/08/sandbox-code-disabled-in-Office-365.html


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

    Sunday, March 12, 2017 2:14 AM
  • Thank you very much sir.

    So with office 365 only Add-ins can be created with visual studio. SharePoint empty projects cannot be used as with SharePoint on Prem?

    Thanks

    Sunday, March 12, 2017 5:24 AM
  • Code based projects made from SharePoint empty projects cannot be used with Office 365.  But you can still create a declarative sandbox solution with that project by not including code and telling it not to compile a DLL.  Then it just packages up the feature XML and any other declarative XML.  Those Sandbox solutions can still be deployed.  Just no code.

    Code based solutions all need to be client side code.  That means add-ins or the new SharePoint Framework.


    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.


    Sunday, March 12, 2017 12:34 PM
  • Thank you very much for the information
    Monday, March 13, 2017 7:44 PM