rotor_
rotor_
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
This is a very useful resource thank you! Although I've found an issue which I've isolated here https://github.com/MarkPflug/Sylvan.BuildTools.Resources/issues/19 It's quite easy to work around, though
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
To crop out the class name so you can set the namespace
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Yes it seems you're stripping everything after the last dot (inclusive)
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Thanks for the gist. I'll see if I can get it working with this solution and omnisharp and all that
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Does the trick, though
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
How strange
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
That smells like a workaround for something behaving weirdly catsip
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
But what's with concatenating an empty string?
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Now I follow
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Ah hold up the expression .LastIndexOf('.') is inside the arguments for Remove
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Out of interest, could you please explain what this expression actually does? $([System.String]::Concat('%(ManifestResourceName)', '').Remove($([System.String]::Concat('%(ManifestResourceName)', '')
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Grand. So I can generate the resource resx file and everything else can stay out of it. That's very reasonable
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Ah ok I saw hints of that being possible but I wasn't confident that it was
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
That's a shame. Means I'll have to write a different script to convert everything into a resx file every time my resources change
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
As I understand a resx file just repackages one of those
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
json txt whatever
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Must you load .resx files or can you load raw ones, too?
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
After spending a while staring at this, I'm guessing this grabs the resource (which as already been encoded as a resx file using resgen) and then makes the resource accessible as a "class" under a generated namespace (which presumably intellisense sees?) within C#. And I'd have to duplicate the StronglyTypedClassName and EmbeddedResource elements for each resource that I want to load? Or would I simply be able to insert them all into that Update attribute on line 8?
26 replies
CC#
Created by rotor_ on 2/23/2023 in #help
❔ Loading static data without Visual Studio
Yeah I saw that in the documentation but I wasn't overjoyed by that solution because it means I'm going to have to write codegen for my csproj
26 replies
CC#
Created by Alan72104 on 2/22/2023 in #help
❔ LINQ distinct from 2 lists preserving order as soon as they are seen
Hah reading up it looks like Ero already used that exact function why am I even here lol
71 replies