-
-
Notifications
You must be signed in to change notification settings - Fork 24
Add ThisAssembly.Resources #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
#132 tested and merged. Rebased this one already for review |
|
Need to fix a bug in the hintname for the generated source file. Will fix in the morning. |
kzu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very very minor changes requested 🙏. This looks great!
|
Build failed with: Makes sense. You'll just need to replace the path separator with a dot (I think that reads best, instead of an underscore). |
Yeah - I did it the windows way cause that's what I tested on my machine; forgot about linux machines. Easy fix. |
|
NB: I made reference to an image for ThisAssembly.Resources, but my VS system is so heavily color customized that I can't make the image. You mind adding that? |
|
I tested the build on a linux machine and am not able to replicate on 6.0 RTM (MSBuild version matches version in failing build log): |
|
I'd just replace the slashes with dots... I'm almost sure you cannot have paths in there... |
Correct - See ResourcesGenerator.cs:70-72; note the spc.AddSource(
$"{resourceName.Replace('\\', '.').Replace('/', '.')}.g.cs",
SourceText.From(output, Encoding.UTF8)); |
|
I've got a repro failure in WSL2 Ubuntu 22.04: |
|
I'm pretty sure you missed checking out the right branch. I cloned clean on WSL, checked-out the right branch, and I'm getting the same failure. Notice that in your logs, the ThisAssembly.Resources package is never built/created... |
kzu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to figure out why this one generator is not being run on linux (repro on WSL and hosted runner alike)
.... /sigh Anyway, fixed now, hopefully... |
|
Ok, now it's just unit tests, should be far easier to fix 😉 |
Yup. Saw that, but was already in bed... 😀 Will look later today |
|
How do you feel about renaming |
|
Thought about that, but couldn't come up with a safe name. Updated. Thanks! :) |
|
Ok, this is looking great! The final thing would be running |
Fixes #45