C
C#12mo ago
br4kejet

❔ App resource files convention

When your app depends on files you read from disk, what's the convention for where to store them? For example shader files if you're using OGL/DX, translation files, scripts in other languages, icons or texture files, etc. My current setup is to use a folder called "Assets" located in my solution's root directory (same as the .sln file), and then I access the app's launch directory (of the exe) and search backwards until I find that folder. But it doesn't seem like a concrete idea... but it's the only way I can think of that works flawlessly when it comes to "releasing" the app which is pretty much just copy and pasting the release folder contents into another folder along with that assets folder How do you guys manage this?
2 Replies
br4kejet
br4kejet12mo ago
That goes in the main project's csproj file I assume? Oh sweet that works Is there a way to make it copy from the solution directory instead of the specific project? I tried Update="..\Resources\**\*" and Update="..\..\Resources\**\*" but it doesn't copy for some reason 😦 Ah
Accord
Accord12mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ NSubstitute on IEnumerableHey - I'm trying to "freeze" an `IEnumerable<>` and return a mocked enumerator However, when doinmg❔ how do i include a range of numbers into a reply like 1-1000 for my thingstring correct = "well done. "; string wrong = "nope.try again. "; Console.WriteLine("Hello."); ❔ Xamarin.Forms Android App problem using Application.Context.StartActivity(intent)Hi, in short, I created a super small Xamarin.Forms Android App. All I need is just to press a butto❔ How can I test a custom IValueResolver in AutoMapper 12?With the latest release of AutoMapper,the public constructor in the ResolutionContext class has been✅ hey am a student and i need to pass exams without learning anybody helphey am a student and i need to pass exams without learning anybody helpReal-time audio recording and streamingHey, so I'm trying to make a home assistant like console app, but I'm having issues with the voice rAdd app created with ng new to solutionHi, is there a way to include an app created with `ng new` to the solution? My goal is start that ❔ Can anyone explain this piece of codeSo I found a piece of code online that solves my problem, but I have to understand how it works befo❔ @Html.DropDownListFor results in null for selected itemHi for the following command: @Html.DropDownListFor(m=>m.Name, new SelectList(Model.Names)) I get❔ WebApplicationFactory and integration testsI've run into an issue with my integration tests and I'm looking for some insight. I'm using `WebApp