Info
Version: | 4.3.0 |
Author(s): | Microsoft |
Last Update: | Thursday, November 16, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://docs.microsoft.com/sql/relational-databases/server-management-objects-smo/overview-smo |
NuGet Url: | https://www.nuget.org/packages/Microsoft.Data.Tools.StringResourceTool |
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)
Dependencies
.NETStandard 2.0
No dependencies.
No dependencies.
No dependencies.
No dependencies.
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.