davidwengier
davidwengier
CC#
Created by Paulvv on 11/17/2023 in #help
Visual Studio 2022 Extension
oh, is it 17.9 P1? oops, thought it was 17.8. my b
9 replies
CC#
Created by Paulvv on 11/17/2023 in #help
Visual Studio 2022 Extension
No, but in 17.8 we'll find html snippets and show them in completion ourselves, so I would have expected that to work. @Andrew (ryzngard | they/them) is the expert here though
9 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
In a past life I wrote a rest API that was generated from database models, and it worked really well. I think it's a great idea. We just ran the generator manually when we changed the schema, because it happened pretty rarely.
10 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
The unique value prop, in my opinion, of source generators is that they can get at the compilers object model for source code. If you're not using that, then an external tool that you run in your build pipeline, is probably just as good
10 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
The compiler has to load them anyway, so it's not inefficient per se, it's just work that doesn't need to happen as often as source generators run, and it's also work that doesn't really benefit from being in a source generator
10 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
If you think about it, your generator is going to run whenever the api project is compiled, but the api project cannot, by definition, affect the outcome of the generated code. So it's just unnecessary work
10 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
It's probably not the best fit for a source generator though. It would be easier to write a standalone tool that used reflection to generate the same thing, by looking at the same symbols from the database dll
10 replies
CC#
Created by nobody on 6/8/2023 in #help
❔ Source generator for creating REST Api
If the backend api project references the backend database project, then the generator can look through the symbols from the referenced assembly, and generate whatever you like:
10 replies