StockSharp.Media.Names 5.0.4

Prefix Reserved
dotnet add package StockSharp.Media.Names --version 5.0.4
                    
NuGet\Install-Package StockSharp.Media.Names -Version 5.0.4
                    
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="StockSharp.Media.Names" Version="5.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="StockSharp.Media.Names" Version="5.0.4" />
                    
Directory.Packages.props
<PackageReference Include="StockSharp.Media.Names" />
                    
Project file
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 StockSharp.Media.Names --version 5.0.4
                    
#r "nuget: StockSharp.Media.Names, 5.0.4"
                    
#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 StockSharp.Media.Names@5.0.4
                    
#: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=StockSharp.Media.Names&version=5.0.4
                    
Install as a Cake Addin
#tool nuget:?package=StockSharp.Media.Names&version=5.0.4
                    
Install as a Cake Tool

StockSharp Media.Names

Media.Names is a lightweight utility library that provides strongly typed access to the names of media assets used throughout the StockSharp ecosystem. It contains a single static class, MediaNames, whose members correspond to the files located in the Media project under the logos directory.

How It Works

The actual constant fields in MediaNames are generated at build time by the MediaNamesGenerator Roslyn source generator. During compilation the generator scans the Media/logos folder for all .png and .svg files and then emits a partial definition of the MediaNames class. Each logo file becomes a public const string field whose value is the file name. This approach ensures that the set of available media names always stays in sync with the images embedded in StockSharp.Media.

Why Use Media.Names?

Referencing image files by string literal is error‑prone. Media.Names eliminates typos by offering compile‑time constants. These constants are commonly used with the MediaIconAttribute to associate an icon with a connector or other component:

[MediaIcon(Media.MediaNames.binance)]
public class BinanceMessageAdapter { /* ... */ }

Because the constants are generated automatically, you never need to edit the file manually when new logos are added.

Adding New Icons

  1. Place the .png or .svg file into the Media/logos directory of the repository.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (390)

Showing the top 5 NuGet packages that depend on StockSharp.Media.Names:

Package Downloads
StockSharp.Fix

FIX/FAST

StockSharp.Fix.Core

Fix core. More info on web site https://stocksharp.com/store/

StockSharp.AlphaVantage

AlphaVantage

StockSharp.Finam

Finam

StockSharp.DukasCopy

DukasCopy

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.4 4,616 8/15/2026
5.0.3 126 8/11/2026
5.0.2 111 7/28/2026
5.0.1 15,649 7/20/2025
5.0.0 10,408 6/2/2025

Move the shared MSBuild props into props/