✅ need help with successful build but error when running
Hi, I am in process of converting an app from .net framework 4.6.X (don't remember exactly except that it's 4 at beggining) to .net 9.0 and at first I ran into a issue where one NuGet package simply don't exist on .net 9.0 so I commented all the code related to it for the time being but I am getting now this, how can I check if this is another case of package simply not exisiting on .net 9.0 or a different issue?

9 Replies
I'm a begginer in csharp so please be mindful of that, thanks in advance!
if any relevant detail/info is missing ask away!
Is InventoryKamera.dll your own code?
I mean it's a fork of project abandoned by the owner but because it's name of the app itself I'd assume it's my code
Run it under a debugger and see which line of code the exception is happening on.
You should be able to get the actual file it's trying to load that is missing from the exception.
Then you can figure out why that file is missing. Also, if the NuGet package doesn't exist for .NET 9 it's likely the old package can still be used.
I found a log that's the program is doing and I solved the issue. basically I forgot that I need to add like 5 files that are lists of things (program require them). they come bundled when you download it from github but not when you compile yourself from scratch
sorry for your time, it's quite a bad design imo and I keep forgetting about it
Glad you got it fixed. You can add a build target in your csproj to copy those files as part of the build.
or a way to ensure they're here and if not download them from web (because they get updates anyway as game gets updates)
sorry it's really Nth time already I forget about them when running a build compiled from source:picard_facepalm:
is there a system here to claim that issue has been resolved?
You might at least add some code to give a much better error message that the files are missing and need to be present with the program instead of just crashing.
/close
Use /close to signify the issue is resolved.yeah I'll be adding quite a lot of stuff there that's just missing like this, I'm thinking of basically rewriting the whole thing piece by piece especially that one of nuget packages is so old it don't work on .net 9 (last updated at dec 2013) (unless I can't get it to work)
thx a lot again, have a good day/night!