Microsoft.Data.Tools.StringResourceTool 4.3.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 4.3.0
NuGet\Install-Package Microsoft.Data.Tools.StringResourceTool -Version 4.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="4.3.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Data.Tools.StringResourceTool --version 4.3.0
#r "nuget: Microsoft.Data.Tools.StringResourceTool, 4.3.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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
Version Downloads Last updated
4.3.0 730 11/16/2023
3.2.0 4,456 4/19/2022
3.1.0 2,553 4/28/2021
3.0.1 757 12/1/2020
2.0.0 733 9/30/2019
1.1.0 647 6/18/2019

- 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