TameRoslyn 1.0.2
dotnet add package TameRoslyn --version 1.0.2
NuGet\Install-Package TameRoslyn -Version 1.0.2
<PackageReference Include="TameRoslyn" Version="1.0.2" />
paket add TameRoslyn --version 1.0.2
#r "nuget: TameRoslyn, 1.0.2"
// 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
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);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- Microsoft.CodeAnalysis.CSharp (>= 2.4.0)
- System.Collections.Immutable (>= 1.4.0)
- System.Reflection.Metadata (>= 1.5.0)
- System.Security.Cryptography.X509Certificates (>= 4.3.1)
- System.Text.Encoding.CodePages (>= 4.4.0)
- System.ValueTuple (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.