Microsoft.Data.Tools.StringResourceTool 3.2.0

.NET Core 3.1 .NET Standard 2.0 .NET Framework 4.6.2
NuGet\Install-Package Microsoft.Data.Tools.StringResourceTool -Version 3.2.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.
dotnet add package Microsoft.Data.Tools.StringResourceTool --version 3.2.0
<PackageReference Include="Microsoft.Data.Tools.StringResourceTool" Version="3.2.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 3.2.0
#r "nuget: Microsoft.Data.Tools.StringResourceTool, 3.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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=3.2.0

// Install Microsoft.Data.Tools.StringResourceTool as a Cake Tool
#tool nuget:?package=Microsoft.Data.Tools.StringResourceTool&version=3.2.0

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.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .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 Downloads Last updated
3.2.0 822 4/19/2022
3.1.0 2,371 4/28/2021
3.0.1 564 12/1/2020
2.0.0 565 9/30/2019
1.1.0 440 6/18/2019

3.2.0 Allows running with newer NetCore SDK