Microsoft.Data.Tools.StringResourceTool NuGet Package

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.




Got any Microsoft.Data.Tools.StringResourceTool Question?






Install
Install-Package Microsoft.Data.Tools.StringResourceTool
dotnet add package Microsoft.Data.Tools.StringResourceTool
paket add Microsoft.Data.Tools.StringResourceTool
Microsoft.Data.Tools.StringResourceTool Download (Unzip the "nupkg" after downloading)

.NETStandard 2.0
  • No dependencies.
net462
  • No dependencies.
netcoreapp2.2
  • No dependencies.
netcoreapp3.1
  • No dependencies.




STATS

must-have-score

avg-downloads-per-day

5

days-since-last-release

610