OneDrive Community Samples
This is the main repository for the community samples about leveraging Microsoft OneDrive and Microsoft SharePoint content (files and folders).
We do welcome community contributions to the samples folder in this repository for demonstrating different use cases targeted on OneDrive development topics. You sample can demonstrate capabilities on the File Pickers, File Handlers or Files and Folders Microsoft Graph APIs.
Here you can find the list of samples available in this repository.
|aspnet-core-changed-files-delta||Sample to learn how to use the delta changes functionality of OneDrive and/or SharePoint Online in Microsoft Graph||ASP.NET Core|
|aspnet-file-handler||Sample to see how to implement a custom file handler for OneDrive and/or SharePoint Online||ASP.NET|
|dotnet-core-file-picker||Sample to learn how to create a custom file picker for OneDrive and/or SharePoint Online||.NET Core|
|spfx-file-picker||Sample to learn how to create a custom file picker within a SharePoint Framework web part||SharePoint Framework|
|spfx-recent-files||Sample about how to use the Microsoft Graph to query OneDrive and/or SharePoint Online||SharePoint Framework|
|uwp-files-explorer||Sample to learn how to build a Universal Windows Platform applicaiton to consume OneDrive and/or SharePoint Online||UWP|
Using the Samples
To build and start using these projects, you'll need to clone and build the projects.
Clone this repository by executing the following command in your console:
git clone https://github.com/OneDrive/onedrive-community-samples.git
Navigate to the cloned repository folder which should be the same as the repository name:
To access the samples use the following command, where you replace
sample-folder-name with the name of the sample you want to access.
cd samples cd sample-folder-name
Follow the instructions within each sample's
README.md for how to get the sample working. This repository contains many different types of projects & technologies as well as pre-requisites so each could have a different process to get working.
This repository welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
Sharing is caring!