© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
9 replies
Addanbillis

✅ Console app makes another app

so I am trying to make a text-based horror game where you win by deleting the original game. So to do this I am trying to make my app make another app that I will use to give a congratulations screen when you win. But when i run the second program it gives me this error:

" Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. An attempt was made to load a program with an incorrect format."

I have tried to search for the solution but I just can't find anything (that I understand as a beginner at least) and Ai wasn't to any help so now I'm here.
(Also sorry if I made an incorrect post of some sort as I'm not sure how you're supposed to format these posts )

I added my code as an attachment
Vars.txt2.98KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Socket Console App
C#CC# / help
2y ago
wpf maximize makes app full screen
C#CC# / help
4y ago
Console app working with Windows Form app
C#CC# / help
2y ago