Microsoft.Data.Tools.StringResourceTool
4.3.0
Prefix Reserved
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 4.3.0
NuGet\Install-Package Microsoft.Data.Tools.StringResourceTool -Version 4.3.0
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="4.3.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Microsoft.Data.Tools.StringResourceTool --version 4.3.0
#r "nuget: Microsoft.Data.Tools.StringResourceTool, 4.3.0"
// Install Microsoft.Data.Tools.StringResourceTool as a Cake Addin #addin nuget:?package=Microsoft.Data.Tools.StringResourceTool&version=4.3.0 // Install Microsoft.Data.Tools.StringResourceTool as a Cake Tool #tool nuget:?package=Microsoft.Data.Tools.StringResourceTool&version=4.3.0
Microsoft.Data.Tools.StringResourceTool
This package implements an MSBUILD target that converts a .INI
file with a [strings]
section into a set of resx
and .cs
files. The generated C# code provides strongly typed accessors for the resource strings defined in the resx
file.
See the Microsoft.Data.Tools.StringResourceTool.targets
file for properties that can be set on Sqlstringresource
items to customize the code generation.
Sample strings file content
# String resource file
#
# When processed by the String Resource Tool, this file generates
# both a .CS and a .RESX file with the same name as the file.
# The .CS file contains a class which can be used to access these
# string resources, including the ability to format in
# parameters, which are identified with the .NET {x} format
# (see String.Format help).
#
# Comments below assume the file name is SR.strings.
#
# Lines starting with a semicolon ";" are also treated as comments
#
[strings]
ConnectionCannotBeChanged = Connection properties cannot be changed after a connection has been established.
NotInTransaction = Cannot perform this operation as there is no open transaction.
ConnectionFailure(server) = Failed to connect to server {0}.
InvalidPropertyValue(value, property, reason) = Cannot apply value '{0}' to property {1}: {2}.
; this is a comment
Sample project file content
<ItemGroup>
<Sqlstringresource Include="SR.strings" />
</ItemGroup>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (2)
Showing the top 2 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.
|
|
microsoft/sqlmanagementobjects
Sql Management Objects, an API for scripting and managing SQL Server and Azure SQL Database
|
- 4.0.0 Upgraded to Net6
- 4.2.0 Fixed a bug building on Linux and removed NetStandard binary
- 4.3.0 Adding `<auto-generated />` tag to output .cs to disable nullable checks for the file