© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
RedHeadEmile

How to get Windows.Storage.Provider

Good afternoon,
I'm trying to use the namespace Windows.Storage.Provider (https://learn.microsoft.com/en-us/uwp/api/windows.storage.provider?view=winrt-22621)
In order to build a Cloud Sync Engine (https://learn.microsoft.com/en-us/windows/win32/cfapi/cloud-files-api-portal)

But I don't know how to make it available in my project...
I actually can't import the NuGet Package "Microsoft.Windows.SDK.NET.Ref" (https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.10?_src=template) and I don't know why (the error says that the package has a "DotnetPlatform" type that isn't compatible with my project).

I also tried to install the NuGet package WinRT but it didn't solve anything :(

Here is my current .csproj file:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0-windows10.0.19041.10</TargetFramework>
    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    <Platforms>x86;x64;ARM64</Platforms>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <CsWinRTComponent>true</CsWinRTComponent>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.17134.1000" />
  </ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0-windows10.0.19041.10</TargetFramework>
    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
    <Platforms>x86;x64;ARM64</Platforms>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <CsWinRTComponent>true</CsWinRTComponent>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.17134.1000" />
  </ItemGroup>

</Project>
Windows.Storage.Provider Namespace - Windows UWP applications
Allows apps to provide real-time updates to files through the Cached File Updater contract.
Windows.Storage.Provider Namespace - Windows UWP applications
Cloud Sync Engines - Win32 apps
The Cloud Filter API provides functionality at the boundary between the user mode and the file system.
Cloud Sync Engines - Win32 apps
Microsoft.Windows.SDK.NET.Ref 10.0.17763.10
The Windows SDK available as a targeting pack for .NET 5 applications.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

❔ Error Provider Windows Forms
C#CC# / help
3y ago
❔ Get Windows Version?
C#CC# / help
4y ago
COMException on Windows.Storage.Pickers.FolderPicker
C#CC# / help
4y ago
How can I get service provider from service collection?
C#CC# / help
17mo ago