C
C#2y ago
Rxckxt

❔ vs studio 2022 system library issues

so i recently bought a new pc and i have installed vs studio 2022 as i had on my last rig and for some reason its missing something from the system library, well i suspect. every time i build a project and try to use using system; some of them don't work and also the ide come up with these error messages. problem is i am not sure where to get these files from, how to fix them and or even where to put them as the ide is giving me bare bones details. i have add a picture to help clarify. Any help would be much appreciated cheers
7 Replies
mtreit
mtreit2y ago
I would start by ensuring things like the SDK and runtime are both properly installed. I would remove Visual Studio from the equation to start and verify you can create and build a basic project from the command-line:
dotnet new console --name HelloWorld
cd HelloWorld
dotnet run
dotnet new console --name HelloWorld
cd HelloWorld
dotnet run
The output of dotnet --info might also help
Rxckxt
RxckxtOP2y ago
im also quite new to this so you might have to talk to me like a 5yr old. i "believe" the runtime and sdk are fine because i can run a small hand full of projects just fine on it.
mtreit
mtreit2y ago
I would still do what I mentioned above just as a smoke test
Rxckxt
RxckxtOP2y ago
at the risk of sounding like an idiot, its through cmd prompt correct!? if so yes i did that and it worked just fine, displayed helloworld on dotnet run
mtreit
mtreit2y ago
If your problem is specific to Windows Forms you might ask someone in #gui to take a look
Rxckxt
RxckxtOP2y ago
ok thanks for the help
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server