Giter Site home page Giter Site logo

sourcegeneratortemplate's People

Contributors

davidwengier avatar kathleendollard avatar misinformeddna avatar scottholden avatar youssef1313 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sourcegeneratortemplate's Issues

[Suggestion] Refactor to make it distributable as a dotnet template on nuget

Great little project, but I had to spend some time with some Regex-ing in Visual Studio Code to get this to a "template" stage, (my project name and namespaces etc.).

It would be cool to make this a proper template that is distributed through nuget so its command-line installable

I am working on some templates and I might just do some copypasting and send a PR in your direction if you are interested? (No promises, this would be a side-project to my side-project that's sprung out of my not-work-project #scopecreep ๐Ÿ˜† )

Included in reference list

Hi,

I've included your repository in my personal C# Source Generators list to help gather these kind of projects in one place and hopefully under single umbrella, thus I propose to add the csharp-sourcegenerator topic to this repository to help with visibility.

I hope you're okay with this. If you happen to know other generator projects, I'll be happy to enlist those in my list as well.

Thanks!

Internal NuGet dependency

Can you please update the code to show how do if the generator is dependent on a NuGet package. I think it is a common scenario.

I have try to use you template to write a generator that is generating code based on a json file using System.Text.Json, but I cannot make it to work.
And how do I add the json file to the tests that you have in the template?

IncrementalGenerator is not working correctly.

Hi Thanks for this simple tutorial.

The moment I add a new type to Program.cs, the IncrementalGenerator stopped working. The other generator is working fine.

class Program
{
    static void Main(string[] args)
    {
        Console.WriteLine("Types in this assembly:");
        foreach (Type t in typeof(Program).Assembly.GetTypes())
        {
            Console.WriteLine(t.FullName);
        }
    }
}

public class HereWeGo {  }

image

image

If I then comment out that HereWeGo class, restart visual studio, then things restore back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.