0

Code not working in Visual Studios

I was trying to use some C#code I learned in SoloLearn in VS. None of it works. Even sample code from SoloLearn. What's the disconnect?

8th Feb 2021, 11:32 PM
Samuel Miller
Samuel Miller - avatar
5 Antworten
+ 3
Can you write, not copy, a "hello world" program in C# in your VS install and run it successfully?
8th Feb 2021, 11:35 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Well then the current issue has nothing to do with SL or the code, but your installation of VS and the associated plugins, etc for the C# programming language. Unfortunately, I don't use VS, so I can't really be of any further assistance. Maybe, somebody else here knows more about this issue, but in the meantime I would suggest that you copy the error from VS into Google and search it to see if you can find a resolution. Good luck!
8th Feb 2021, 11:42 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
ChaoticDawg No, it says, "NuGet packages need to be restored before building. NuGet MSBuild targets are missing and are needed for building. The NuGet MSBuild targets are generated when the NuGet packages are restored."
8th Feb 2021, 11:38 PM
Samuel Miller
Samuel Miller - avatar
+ 1
ChaoticDawg Thank you! That's a good idea I suppose I was being lazy.
8th Feb 2021, 11:43 PM
Samuel Miller
Samuel Miller - avatar
0
Which version of visual studio do you use ? Where did you get it from ? Is it visual studio or VS Code.
9th Feb 2021, 3:33 PM
sneeze
sneeze - avatar