TameRoslyn 1.0.2

Install-Package TameRoslyn -Version 1.0.2
dotnet add package TameRoslyn --version 1.0.2
<PackageReference Include="TameRoslyn" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TameRoslyn --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TameRoslyn, 1.0.2"
#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 TameRoslyn as a Cake Addin
#addin nuget:?package=TameRoslyn&version=1.0.2

// Install TameRoslyn as a Cake Tool
#tool nuget:?package=TameRoslyn&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

TameRoslyn

The mutable wrapper of Microsoft's .NET Compiler Platform ("Roslyn") syntax tree. For simple manipulation of C# files.
Adding .ConfigureAwait(false) example:

var cu = TameCompilationUnitSyntax.FromFile(file);
var items = cu.DescendantsAll().OfType<TameAwaitExpressionSyntax>().ToArray();
for (int i = 0; i < items.Length; i++)
{
var item = items[i];
if (!item.Source.EndsWith(".ConfigureAwait(false)"))
{
item.ReplaceNode(item.Source + ".ConfigureAwait(false)");
}
}
var newSource = cu.Source;
File.WriteAllText(file, newSource);

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 669 10/26/2017
1.0.1 540 5/14/2017

Initial release.