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.
Install
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 3.2.0
Install-Package Microsoft.Data.Tools.StringResourceTool -Version 3.2.0
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="3.2.0" />
Frameworks
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.
Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.
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.