✅ Error that seemingly doesn't exist.
I'm trying to make a Console App that is capable of sending a Console.WriteLine(""); every specific ammount of time. When I ducktaped it together, and Visual Studio didn't show up any error messages in the bottom section, and I tried running it, it said that the build has some errors. Does anybody know why?
(PS: Not even Warnings)
49 Replies
How to get the best help
Make a post in #help or one of the topic channels under Development.
Avoid asking Can anybody help Has anyone used Why doesn't my code work?
C# is a big area! No one knows they can help unless you tell them about the small area you're trying to work in.
Explain what you are doing, and potentially why for as much context as possible. Avoid screenshots where possible, share code directly in Discord. Type
$code
into chat to learn how to post code.
See https://www.nohello.net and https://dontasktoask.com if you want common help chat room etiquette.That didn't work lol, can you provide some code please?
Here.
You can try cleaning the project, or solution.
There is a problem on line 2 and 3
There is a problem on line 5 too
And the condition on line 5, is it valid? It's supposed to stop the "for" loop upon typing Stop.
your syntax highlighting looks off which suggests a problem with the IDE or your project setup
What does it mean? Sorry it's been a while since I last touched Visual Studio and coding by itself.
it means it's not showing errors because your editor isn't working right
Is there any way to fix this issue?
You can try and repair it with
visual studio installer
.So now I should disable it, and use the Visual Studio Installer, did I get it right?
When you install Visual Studio. It also installs something called Visual Studio Installer. Just open the app and you should see which visual studio version you have on your machine. There should be an option for repairing the IDE.
I assume you are on
Windows
.My apologies for late response, I was on Lunch.
Windows 10
Yeah you should have an app called Visual Studio Installer
If you meant the "Repair" button, then I clicked it.
btw, Thanks a lot for the support.
No worries mate, see if the IDE is working properly now?
Gonna take a while. Installing 500 packages.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework.
.NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended.
https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Apologies for the late response, I was still asleep. I've let it work overnight
I created a console application, I think without the .NET framework? I don't really remember. It had options that includes MacOS and Linux.
About the Creation, I launched Visual Studio; New Project; Console App; then... I don't remember which .NET I chose, but it was one of the longest compatible (it said), then I just gave it a name, didn't touch the settings, and that's about all I can remember.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
is it possible this is the bug with x86/x64 versions of .NET installed?
Could be. Rest assured it didn't ever appear before installing the latest update with 800 packages.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
* Open
powershell
in a terminal in admin mode as in the following video:
https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4
* copy/paste the following script
* it will tell you if it detects invalid Path
setup
* Press Enter to confirm
After the fix it works, it finally registered all of the errors. Thanks for the help.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
No :P
And I still don't know how to do the fifth line.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
What do you mean?
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
I ended up erasing it, and probably redoing it. Because trying that as somebody who hasn't touched his courses for months is- essentially killing an aggresive grizzly with a water gun.
✅ Command successful. Updated tag 'dotnetpath'.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
* Open
powershell
in a terminal in admin mode as in the following video:
https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4
* copy/paste the following script:
in case of an invalid setup detected, it will:
* tell you that it did (or not) detected an invalid Path
setup
* in case some action are require it will ask you to Press Enter to confirm
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
I erased the code, so I can try again later.
The courses are sololearn, I haven't done them in months so I think it'd be better if I redone a couple to rewrite notes, and then try again. Yes- my sense of explanation is far from good. Sorry for the misunderstanding.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
What is a powershell?
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Inserted it, it says that everything seems fine as they couldn't find a math in a certain path.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
Oh okay, I didn't even consider it one.
I looked at it and was like: If it works, it works.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
It was clear enough.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
✅ Command successful. Updated tag 'dotnetpath'.
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View