C
C#2mo 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.
Cloud Sync Engines - Win32 apps
The Cloud Filter API provides functionality at the boundary between the user mode and the file system.
Microsoft.Windows.SDK.NET.Ref 10.0.17763.10
The Windows SDK available as a targeting pack for .NET 5 applications.
0 Replies
No replies yetBe the first to reply to this messageJoin