Really like your videos. Always find something interesting in them.
@swildermuth Жыл бұрын
I appreciate that!
@fullemptiness Жыл бұрын
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
@swildermuth Жыл бұрын
Thanks for the tip!
@ronnieoverby8 ай бұрын
I love this guy. Thanks, Shawn!
@cyrildouglas9262 Жыл бұрын
Thanks for the video, does part 2 comes next week?
@swildermuth Жыл бұрын
Probably Thursday.
@the-nasim Жыл бұрын
Please make a video about refresh tokens.
@FunWithBits Жыл бұрын
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 Жыл бұрын
Thank you!
@FunWithBits Жыл бұрын
@@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.
@elerius2 Жыл бұрын
Hi Shawn, will your SG series cover debugging/unit testing source generators?
@swildermuth Жыл бұрын
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.
@lordgaulo6520 Жыл бұрын
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 .
@chjr4740 Жыл бұрын
Could the Where clause be removed and instead the nullcheck be added to the predicate?
@swildermuth Жыл бұрын
I don't think so, as the predicate is fired as the code changes, the null check to to ensure that the predicates are not null, not the result.
@williamliu8985 Жыл бұрын
The idea of SG is cool, but it seems that the tools (VS/rider) is not that completely ready.
@swildermuth Жыл бұрын
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.
@williamliu8985 Жыл бұрын
@@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.
@swildermuth Жыл бұрын
That's why I decided to do the video, to make it more approachable.
@nayanchoudhary4353 Жыл бұрын
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.
@swildermuth Жыл бұрын
Not sure what you mean , rather not follow the code.
@kiqyou Жыл бұрын
yeah but what even IS a source generator?
@swildermuth Жыл бұрын
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.
@draganradovac88033 ай бұрын
That was really cool. Thanks
@kodikodi99486 ай бұрын
this is exactly what i needed. thank you.
@swildermuth6 ай бұрын
Awesome
@matadorso Жыл бұрын
Your latest content is awesome!
@gelordtube Жыл бұрын
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!