I want to create a visual webpart for SharePoint 2013 Online but I find that the requirement is to install the SharePoint on the local machine.

Another thing, do SharePoint 2013 Foundation support webparts created using Visual Studio?

Any help is highly appreciated.

6 Answers 6


You can create a Visual Web Part for SharePoint 2013 Online.

Your web part will be contained in a Sandbox Solution which you will develop locally. Once development is complete you will upload the Solution Package created by Visual Studio to SharePoint Online. Once this is done your web part will be available for use.

As mentioned, development will be done locally so you will need a machine that has both SharePoint 2013 (Foundation or Server) and Visual Studio 2012 or 2013.

Here are the steps build and deploy the web part:

  • Create a new project based on the "SharePoint 2013 - Empty Project" template
  • In the SharePoint Customization Wizard enter the URL of the local SharePoint site you will use for testing during development and choose to "Deploy as a sandboxed solution" (you cannot deploy farm solutions to SharePoint Online)
  • Add a new Visual Web Part to the project
  • Develop and test the web part locally until it has the desired functionality
  • Publish your solution to the SharePoint Online site using the remote publishing feature of Visual Studio (see How to: Deploy, Publish, and Upgrade SharePoint Solutions on a Remote Server)
  • Go to you SharePoint Online site and test your web part

One important note: sandbox solutions that contain managed (i.e. VB or C#) code are considered to be deprecated and they may not be supported in future versions of SharePoint. Looking forward, the replacement for web parts contained in sandbox solutions would be App parts that are implemented using the new Cloud App Model.


Napa is good for creating SharePoint Hosted apps only (Client Side code dominant). If you want to communicate with server components, you can remotely develop apps (Provider hosted or Autohosted) using Visual Studio. For the later option, Apps should be enabled on your SharePoint site.

I cannot find anyway where i can create visual studio webparts for sharepoint 2013 online

Webpart development is not available in SharePoint online. You need to create an App with same functionality.

  • 1
    You can create web parts in sandbox solutions and deploy them to SharePoint Online Commented Nov 25, 2013 at 20:11
  • SharePoint Online does not support autohosted apps anymore. The only way to have a custom app with server components is by developing a provider hosted app.
    – Gintas K
    Commented Apr 4, 2016 at 10:13

We can use on-line development environment to create SharePoint Apps. I am not sure if Visual Webpart is supported in SharePoint on-line? May be someone could help us better


enter image description here

You can set up Visual Studio 2012 for SharePoint 2013 development offline


We can create visual webpart as sandbox solutions using visual studio, but your local machine must have sharepoint also with visual studio. To publish the created sandbox web part you need to right click on solution --> publish --> provide url of site collection where you wanted to add --> provide credentials( if needed).

Now, in gallery section you would get your webpart package. Here you have to activate it.

And it;s Done!


Since only Sandbox solutions are allowed to be deployed in SharePoint Online Site and Visual Web Parts are not supported with in Sandbox Solutions.

So you cannot create Visual Web Part with SharePoint Online.

Better is to create a Standard Web Part locally and upload it to SPO Site.

  • 1
    Or rather best approach is to replace your WebPart to App driven by REST API based solutions instead of Server Side Code (C#, VB), since such Web Parts are now deprecated and might not be supported in upcoming versions of SharePoint. Commented Dec 2, 2015 at 13:17

I ended up creating installing a visual studio 2013 and sharepoint 2013 foundation on my machine.

I cannot find anyway where i can create visual studio webparts for sharepoint 2013 online

  • 2
    i know this is all of 5 months too late, but you could create an Azure Developer Environment. That way you can develop WebParts in an actual implementation without purchasing all the HW, SW, and Licensing to just create the WebParts.
    – GoldBishop
    Commented Apr 22, 2014 at 19:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.