Microsoft.Data.Tools.StringResourceTool 3.0.1

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-Package Microsoft.Data.Tools.StringResourceTool -Version 3.0.1
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 3.0.1
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Data.Tools.StringResourceTool --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

  • .NETCoreApp 2.2

    • No dependencies.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.Data.Tools.StringResourceTool:

Repository Stars
microsoft/sqltoolsservice
SQL Tools API service that provides SQL Server data management capabilities.

Version History

Version Downloads Last updated
3.0.1 129 12/1/2020
2.0.0 356 9/30/2019
1.1.0 229 6/18/2019