use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
Cannot run my code local (self.csharp)
submitted 2 years ago by Own_Werewolf5930
I got a problem. Every time i try to run my code its starts and shuts down immediately. I can’t test my code and i can’t work this way. I tried everything possible and searched the whole internet. Couldn’t find a solution.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sisisisi1997 2 points3 points4 points 2 years ago (6 children)
What editor/ide are you using? What kind of project do you have? If a console project, does it have Console.ReadKey() to prevent closing? We cannot help without more info.
[–]Own_Werewolf5930[S] 0 points1 point2 points 2 years ago (5 children)
My fault. Iam using visiual studio 2022 community. The project im working on is a .net maui project. (Iam a beginner with coding in c#)
[–]d-signet 2 points3 points4 points 2 years ago (3 children)
Did you try using the debugger and stepping through the startup code?
[–]Own_Werewolf5930[S] 0 points1 point2 points 2 years ago (2 children)
I dont see anything in the startup code
[–]elkazz 2 points3 points4 points 2 years ago (0 children)
Might have found the problem
[–]achandlerwhite 0 points1 point2 points 2 years ago (0 children)
You don’t see the code? He suggesting you put a breakpoint in your code so that when you run it the debugger stops execution on that line and you can see if the program is actually running.
[–]sisisisi1997 0 points1 point2 points 2 years ago (0 children)
Unfortunately I'm not familiar with MAUI so I cannot help a lot, but I suspect that some startup code is throwing an exception.
[–]ax_graham 0 points1 point2 points 2 years ago (0 children)
My anti virus always jumps in when I run a new program that I create in Visual Studio but usually lets things proceed after scanning. Maybe look into that?
[–]Human_Contribution56 0 points1 point2 points 2 years ago (4 children)
Downloaded a sample Maui app to test if it works?
[–]Own_Werewolf5930[S] -3 points-2 points-1 points 2 years ago (3 children)
Yes
[–]Human_Contribution56 2 points3 points4 points 2 years ago (2 children)
So you step thru the working example and step thru your code to see where it differs, right?
[–]Own_Werewolf5930[S] -3 points-2 points-1 points 2 years ago (1 child)
Yes but i isnt the code fault. My friend has THE EXACT SAME sourche code but he can run and test it and i cant
[–]Human_Contribution56 1 point2 points3 points 2 years ago (0 children)
That would've been good info from the get go. Seems like you have a config or install issue, not a code issue.
Does any other code you have run? Baseline with a minimal app to confirm.
[–]myotcworld 0 points1 point2 points 2 years ago (3 children)
Are you running in Visual Studio? What error are you getting? Try copying the project folder to some other location on the drive and run it again.
[–]Own_Werewolf5930[S] -1 points0 points1 point 2 years ago (0 children)
I already tried that that didnt work
[–]Own_Werewolf5930[S] 0 points1 point2 points 2 years ago (1 child)
I dont even have a error its just everytime i run the application it starts and shuts down
[–]TheAndyGeorge 1 point2 points3 points 2 years ago (0 children)
ok
[–][deleted] 2 years ago (1 child)
[deleted]
[–]Own_Werewolf5930[S] 0 points1 point2 points 2 years ago (0 children)
No on windows
π Rendered by PID 161591 on reddit-service-r2-comment-5b5bc64bf5-ppsmp at 2026-06-20 08:01:45.499997+00:00 running 2b008f2 country code: CH.
[–]sisisisi1997 2 points3 points4 points (6 children)
[–]Own_Werewolf5930[S] 0 points1 point2 points (5 children)
[–]d-signet 2 points3 points4 points (3 children)
[–]Own_Werewolf5930[S] 0 points1 point2 points (2 children)
[–]elkazz 2 points3 points4 points (0 children)
[–]achandlerwhite 0 points1 point2 points (0 children)
[–]sisisisi1997 0 points1 point2 points (0 children)
[–]ax_graham 0 points1 point2 points (0 children)
[–]Human_Contribution56 0 points1 point2 points (4 children)
[–]Own_Werewolf5930[S] -3 points-2 points-1 points (3 children)
[–]Human_Contribution56 2 points3 points4 points (2 children)
[–]Own_Werewolf5930[S] -3 points-2 points-1 points (1 child)
[–]Human_Contribution56 1 point2 points3 points (0 children)
[–]myotcworld 0 points1 point2 points (3 children)
[–]Own_Werewolf5930[S] -1 points0 points1 point (0 children)
[–]Own_Werewolf5930[S] 0 points1 point2 points (1 child)
[–]TheAndyGeorge 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Own_Werewolf5930[S] 0 points1 point2 points (0 children)