I always learn so many extra useful things from your videos I love it I always get way more than i planned for and you do it without wasting any time .
Great video! By the way you can drag the class library project and drop it into the console project, this feature saved me opening the add reference window
Hi Mr Shawn, It was a wonderful video about code generation!! :) ;) I thought that one of the ways to generate code was the T4 templates, but along with this, I think is another thing to do w/ code generate!! Thx You!
Thanks for the great video. I probobly would not have watched this but it was suggested by youtube's magic suggestion engine... so I did. I think I might re-watch it and experiment with this... anything as an alternative to reflection! =)
@@swildermuth - fyi - I built it but it ended up not working for some reason. The 'using SampleSourceGenerator' line had an error here with a type or namespace name 'type/namespace' could not be found. I added the reference and the Analyzer line in for the project but no luck. I added the project to github but don't want to add it to add it because the comment might be removed.. this is my 3rd post of this text.
No unit testing, though it just builds code, so unit testing the generated code shouldn't be too difficult. The second episode (this week) will cover how to read the Roslyn data to build up your own code and how to debug it in Visual Studio. Look for it Thursday.
Shouldn't matter, on tools that do not use them, they are executed at compile time too. Lots of tools you're already using probably employ them and you never noticed.
@@swildermuth I think the SG can be a tool that is biased towards the needs of individual developers, so it is better to be easy to use. But its current usage and syntax do not seem so approachable, and if the tool developed for it is not user-friendly neither, ordinary developers may feel that this tool is inaccessible.
Topic is interesting. However, the lack of explicit type declaration made it hard to understand. I also wish you didn't follow the code, but rather lead the video. Nick Chapsas does an excellent job that way. His narration is very good.
Not to be pedantic, but it's code that generates source based on the code you're writing. Generators run while roslyn is parsing your code while you're writing in the editor as well as at build-time.