Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97530

VS Code noob here, question about launch.json

$
0
0

So far i only wrote c# code in visual studio and for unity. However i decide to work on my C# fundamentals a bit instead of coding only for Unity, hoping to improve my understanding about OOP and designing my objects.

I started to follow pluralsight c# path where dotnet core used with visual studio code instead of regular visual studio. Next 18 hours i actively tried to run Hello World application. After i tried everything google has to offer yet failing, tens of times uninstalling and installing stuff yet failing.I somehow managed to do trick by creating an empty folder at "C:\Program Files (x86)\Microsoft SDKs\NuGetPackagesFallback" by following the tail of error messages.

You may comment something like, "you have learned a valuable lesson" etc. which may be true but i don't want to. I don't want to be an expert at making compilers run, i don't want to learn how they function. I just want to make my code better.

Now i could run Hello World app by using dotnet run from command line where i felt nice, finally i can move on to improve my OOP stuff. But wait VS Code didnt want to proceed.

After couple hours of tweaking i could finally run the code but i am not happy with it. The reasons why, and what i am asking is below.

VS Code build .json files with this lines.. tasks.json had "/property:GenerateFullPaths=true", which i had to replace with "${workspaceFolder}/src/GradeBook", and launch.json had

"program": "${workspaceFolder}/bin/Debug/<target-framework>/<project-name.dll>",

i had to replace it with

"program": "${workspaceFolder}/src/GradeBook/bin/Debug/netcoreapp3.1/GradeBook.exe",

What i don't mind is adding "/src/GradeBook" only if i have to do that when i use subfolders for project. I don't know if the problem with tasks.json was related to this. But do i have to fully replace tags like <target-framework> when .csproj file has a definition of target framework <TargetFramework>netcoreapp3.1</TargetFramework> .

I really do not understand how these .json files work, why auto-generated files do not do their job and how i can live interacting minimally with those. What are the minimal steps i "have" to take care of myself. Can somebody please explain me and please treat me like i am 3 years old with 5 IQ because i fell like one when i am dealing with these stuff.


Viewing all articles
Browse latest Browse all 97530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>