0

This an exercising project I downloaded from Pluralsight. I tried to run dotnet restore & dotnet build on folder CARS. It does not seem to work. The "Program" dependency just showed "${workspaceRoot}/bin/Debug//.dll" when I just got it. I tried to modify it a bit, but it didn't work.

Visual studio code tells me that I may want to have something like ""program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/Cars.dll"," But I don't seem a dll file inside the debug folder

enter image description here

enter image description here

enter image description here

enter image description here

Fangyi Li
  • 41
  • 1
  • 8
  • I highly recommend Visual Studio for working with C# projects. It's a lot better integrated. – ProgrammingLlama Jun 04 '20 at 08:09
  • Do you have all the necessary extensions installed for C# development? I found it a little bit ... "inconvenient". Maybe try Visual Studio Community Edition. – Fildor Jun 04 '20 at 08:12
  • have you tried running cars.exe in the debug folder? – Josh Jun 04 '20 at 08:21
  • @Josh I had and the program just shut itself down – Fangyi Li Jun 04 '20 at 08:29
  • @Fildor I did. I have built a few personal projects using C# already. – Fangyi Li Jun 04 '20 at 08:30
  • Is this an "add implementation here"-exercise project or an "this is what it should look like" exercise project? – Fildor Jun 04 '20 at 08:35
  • If you want to build an .exe, you must generate a self contained application (see here: https://stackoverflow.com/questions/44074121/build-net-core-console-application-to-output-an-exe). Otherwise you should build a .dll and run it from command line using dotnet. – stl Jun 04 '20 at 08:58
  • @stl I already have built an .exe using dotnet build. How do I build a .dll? What command do I execute? – Fangyi Li Jun 04 '20 at 09:18
  • @Fildor the project itself already has some features implemented. And it should work. I just don't seem to able to run or debug it.. – Fangyi Li Jun 04 '20 at 09:20
  • @Fildor so the project works on VS, but VS code – Fangyi Li Jun 04 '20 at 09:56
  • @FangyiLi execute it via the command line, not windows – Josh Jun 04 '20 at 09:58

0 Answers0