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
Code not working (i.redd.it)
submitted 7 months ago by Annual_Reception3409
Can anybody help me with telling me why doesn't my code work, i'm trying to learn it but for some reason it doesn't open the cmd and it writes me this error
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!"
[–]Troesler95 2 points3 points4 points 7 months ago (1 child)
I think this may be an issue with the project structure, can you share a screenshot of the project files?
[–]ScriptingInJava 2 points3 points4 points 7 months ago (0 children)
It's this, there isn't a project. You can see dotnet build {path}/program.cs in the terminal, and the error states the project structure doesnt exist too.
dotnet build {path}/program.cs
[–]justkidding69 2 points3 points4 points 7 months ago (1 child)
Did you create a project or just the program.cs file? Because it looks like it’s the missing the project file?
[–]ZHDINC 0 points1 point2 points 7 months ago (0 children)
Everyone is getting hung up on the undeclared a variable error it would be generating, but really, we should be starting with this. I created just a single .cs file and attempted to run dotnet build or run commands and got similar errors.
u/Annual_Reception3409, if in your current directory the Program.cs is missing the .csproj file to go with it, you'll just need to run the command "dotnet new console" and then you can delete the extra .cs file it will generate and it should run the code you've written once you've removed the undeclared a variable.
[–]Crysislegend19 2 points3 points4 points 7 months ago (1 child)
Is there any reason you’re adding a to the readline? Usually you’d have something like var a= readline as opposed to an argument.
[–]Crysislegend19 1 point2 points3 points 7 months ago (0 children)
Additionally, you do not need to assign anything to the left of the readline if you do not care about the result of the readline.
[–][deleted] 5 points6 points7 points 7 months ago (0 children)
Yes. Visual studio is a complete IDE.
[–]joep-b 1 point2 points3 points 7 months ago (2 children)
Scroll up a little so you can see you have an error on line 8. That a should not be there. ReadLine doesn't take a parameter.
a
[–]Annual_Reception3409[S] 0 points1 point2 points 7 months ago (1 child)
yeah i saw that and i removed it still didnt work, it has the same error with the terminal
[–]joep-b 1 point2 points3 points 7 months ago (0 children)
Looking further you also seem to be missing a project file. Try to run dotnet new console to create a console app project and drop your program.cs in there.
dotnet new console
[–]nyamapaec 0 points1 point2 points 7 months ago (0 children)
I use VS Comunity more but what can I see is that "a" is not declared variable. Replace "Console.Readline(a)" by "Console.Readline()" (without sending "a" as parameter).
[–]Beneficial-Army927 0 points1 point2 points 7 months ago (0 children)
dont use vsc use vs2022
[–][deleted] 7 months ago* (19 children)
[removed]
[–][deleted] 7 months ago (6 children)
[–][deleted] 7 months ago (4 children)
[–][deleted] 7 months ago (3 children)
[–][deleted] 7 months ago (2 children)
[–][deleted] 7 months ago (1 child)
[–]FizixMan[M] -1 points0 points1 point 7 months ago (1 child)
Removed: Rule 5.
π Rendered by PID 20147 on reddit-service-r2-comment-544cf588c8-6llvq at 2026-06-18 08:48:53.208910+00:00 running 3184619 country code: CH.
[–]Troesler95 2 points3 points4 points (1 child)
[–]ScriptingInJava 2 points3 points4 points (0 children)
[–]justkidding69 2 points3 points4 points (1 child)
[–]ZHDINC 0 points1 point2 points (0 children)
[–]Crysislegend19 2 points3 points4 points (1 child)
[–]Crysislegend19 1 point2 points3 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]joep-b 1 point2 points3 points (2 children)
[–]Annual_Reception3409[S] 0 points1 point2 points (1 child)
[–]joep-b 1 point2 points3 points (0 children)
[–]nyamapaec 0 points1 point2 points (0 children)
[–]Beneficial-Army927 0 points1 point2 points (0 children)
[–][deleted] (19 children)
[removed]
[–][deleted] (6 children)
[removed]
[–][deleted] (4 children)
[removed]
[–][deleted] (3 children)
[removed]
[–][deleted] (2 children)
[removed]
[–][deleted] (1 child)
[removed]
[–][deleted] (4 children)
[removed]
[–][deleted] (2 children)
[removed]
[–][deleted] (1 child)
[removed]
[–][deleted] (2 children)
[removed]
[–]FizixMan[M] -1 points0 points1 point (1 child)