C
C#6mo ago
Novascar

Visual Studio doesnt show errors and projects

Hey, I encountered a small issue with Visual Studio Community 2022 - it doesn't show projects in solution explorer, errors too, and instead of "Start" there is "Attach..." button. (F5 doesn't works, too) I tried reinstalling it and changing project location, but it doesn't help. There also seem to be no answer online and I barely understand why this happens.
No description
No description
26 Replies
Mayor McCheese
Mayor McCheese6mo ago
What is the contents of your solution file? Hint: look at it in notepad Or other plain text editor
Novascar
Novascar6mo ago
Here
No description
Mayor McCheese
Mayor McCheese6mo ago
That's an empty solution file for sure What are you trying to do?
Novascar
Novascar6mo ago
I'm trying to follow tutorials... Never had this problem with VS 2019 by the way And also snippets like cw doesn't work
Mayor McCheese
Mayor McCheese6mo ago
Try and right click on the solution and look for create/add project Nb: I don't know the exact wording I don't typically create projects outside the cli any longer
Novascar
Novascar6mo ago
i tried, but still, 0 projects...
Mayor McCheese
Mayor McCheese6mo ago
Do you have windows terminal installed?
Novascar
Novascar6mo ago
Nope. Why?
joren
joren6mo ago
just start a new solution and use one of the templates to create a project reset the layout of VS Studio to the default
joren
joren6mo ago
No description
Mayor McCheese
Mayor McCheese6mo ago
I was going to walk you through using the cli Which
Mkdir sample
Cd sample
dotnet new sln
dotnet new gitignore
dotnet new nugetconfig
dotnet new console -o Sample
dotnet sln add .\Sample
git init
Mkdir sample
Cd sample
dotnet new sln
dotnet new gitignore
dotnet new nugetconfig
dotnet new console -o Sample
dotnet sln add .\Sample
git init
Angius
Angius6mo ago
Whenever I see the project not added to the solution by default, it's always an issue with the order of .NET SDKs in the env variables. So make sure, than in your PATH variable, the 64-bit version of the SDK is above the 32-bit version (also, use VS 2022, it's not 2019 anymore)
Novascar
Novascar6mo ago
I tried adding project manually, this is what I get:
No description
Angius
Angius6mo ago
Aight 1. Check what SDK is necessary. Open the .csproj in Notepad or some such and take a look there 2. dotnet --list-sdks to see what SDks you have installed 3. dotnet --info for good measure. Post both results here
Novascar
Novascar6mo ago
No description
No description
No description
Angius
Angius6mo ago
Well, you have no .NET 8 SDK installed You have no SDK installed at all
Novascar
Novascar6mo ago
So i just need to install it? Thanks!
Angius
Angius6mo ago
It should do the trick, yeah
Novascar
Novascar6mo ago
Eh, i tried, still nothing Doesn't detects it or something
Novascar
Novascar6mo ago
Even more, I had it already
No description
Novascar
Novascar6mo ago
No description
Angius
Angius6mo ago
dotnet --info? dotnet --list-sdks?
Novascar
Novascar6mo ago
All the same
MODiX
MODiX6mo ago
Angius
So make sure, than in your PATH variable, the 64-bit version of the SDK is above the 32-bit version
React with ❌ to remove this embed.
Novascar
Novascar6mo ago
Well... I can add projects now but other problems are still here Alright, problem solved. Thanks everyone who helped me!
Want results from more Discord servers?
Add your server
More Posts
Asp.Net Core How to create PDF Product Catalog With a template with an image in the backgroundI am developing a web application with Asp.net. The application will select the products on the e-coBest Way to store data for an Discord BotHey everyone, i need some input from some experts 😉 I am trying to build an Discord Bot who gives Rjust begun learning ASP.NET Core MVC and am looking for any good material to help mei am very new to ASP.Net so am just looking for some beginner friendly resources to begin properly lHello. I am facing an issue with null exception after calling OnPost method in my razor pages site.When i call method OnGet i load all of the information about property. public void OnGet(int✅ hey. im new to learning asp.net and was wondering if anyone had any suggestions as where to start?just any ideas of things to do/ things to watch would be great!Measuring sub-millisecond execution time with Methodtimer.FodyI am using https://github.com/Fody/MethodTimer to measure code execution time. The function I am try✅ How to SimplifyI have this https://gist.github.com/IXLLEGACYIXL/399c51cf0341188bdc4e02a820c34ce0 I need the generic✅ Blazorserver - Value after manual db-update not changing after new fetchHello, I setup a blazorserver project and implemented a db connection and wanted to load user data.How do I using Roslyn with correct version of .net# How do I using Roslyn with correct version of .net Hello I'm new to C# and roslyn usage, I'm tryiNuget SourceRoot | Microsoft.Build.Framework.ITaskItem | MSB4094 ErrorI am in the middle of my Intro to C# course and the only error I have is this error that is actually