Skip to main content
Microsoft.Data.Tools.StringResourceTool package icon

Microsoft.Data.Tools.StringResourceTool

String Resource Tool creates C# wrapper classes for managed string resources. The app developer creates a .strings file to declare the list of strings. Each line includes the name of the string and its list of parameters. For example: ConnectionFailure(server) = Failed to connect to server {0}. The above line creates the following entry in the wrapper class: [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class StringConnectionInfo { public static string ConnectionFailure(string server) { return Keys.GetString(Keys.ConnectionFailure, server); } } The package includes a targets file for incorporating srgen into an msbuild-based development project and a sample strings file.

Total Downloads
21.1K
21,096
Published
Jun 18, 2019
Latest stable version

Install

.NET CLI
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 1.1.0
Package Manager Console
Install-Package Microsoft.Data.Tools.StringResourceTool -Version 1.1.0
PackageReference
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="1.1.0" />

Frameworks

No framework metadata available.

Dependencies

No declared dependencies.

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.