Skip to content

Lightczx/WinRT.SourceGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WinRT.SourceGenerator

Orignal codes are copied from CsWinRT

Modifed the Generator.SourceGenerator and related code to implements IIncrementalGenerator. Use RegisterImplementationSourceOutput to avoid unnecessary generation attempt.

Usage

  1. Download the WinRT.SourceGenerator.dll from release or clone this repo and build yourself.
  2. Find the Microsoft.Windows.CsWinRT nuget package local cache and the correct version.
  3. Find analyzers/dotnet/cs/WinRT.SourceGenerator.dll
  4. Replace the file and restart Visual Studio.

Now you should see your CPU calm down again.

Not fully tested and should use the official build once Microsoft implement this.

About

WinRT SourceGenerator implements IIncrementalGenerator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages