StoreEdge 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package StoreEdge --version 1.0.3
NuGet\Install-Package StoreEdge -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StoreEdge" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StoreEdge" Version="1.0.3" />
<PackageReference Include="StoreEdge" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add StoreEdge --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StoreEdge, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package StoreEdge@1.0.3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=StoreEdge&version=1.0.3
#tool nuget:?package=StoreEdge&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
StoreEdge
A lightweight .NET Framework library for interacting with the Microsoft Store.
Usage
Task<Store> CreateAsync()
- Create a new
Storeinstance.
Task<ReadOnlyCollection<IProduct>> GetProductsAsync(params string[] productIds)
- Obtains products for the specified product IDs.
Task<IReadOnlyCollection<string>> GetPackageFamilyNamesAsync(params string[] packageFamilyNames)
- Obtains product IDs for the specified package family names.
Task<string> GetUrlAsync(IUpdate update)
- Obtains the download URL for the specified update identity.
Task<ReadOnlyCollection<IUpdate>> SyncUpdatesAsync(IProduct product)
- Synchronizes updates for the specified product.
Example
using System;
using System.Threading.Tasks;
using StoreEdge;
static class Program
{
static async Task Main()
{
// Connect to the Microsoft Store.
var store = await Store.CreateAsync();
// Get product IDs from package family names.
var productIds = await store.GetPackageFamilyNamesAsync("Microsoft.MinecraftUWP_8wekyb3d8bbwe", "Microsoft.MinecraftWindowsBeta_8wekyb3d8bbwe");
// Get product information from product IDs.
var products = await store.GetProductsAsync([.. productIds]);
foreach (var product in products)
{
Console.WriteLine($"Title: {product.Title}");
Console.WriteLine($"App Category ID: {product.AppCategoryId}\n");
// Get packages/updates for a product.
foreach (var update in await store.SyncUpdatesAsync(product))
{
// Get a url for a package/update.
var url = await store.GetUrlAsync(update);
Console.WriteLine($"\tUpdate ID: {update.UpdateId}");
Console.WriteLine($"\tUrl: {url}\n");
}
}
}
}
Building
Download the following:
Run
dotnet publishto compile & make a NuGet package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8.1
- Microsoft.Windows.SDK.Contracts (>= 10.0.26100.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.