Spread the love

Loading

key words:

Visual Studio Coder

Debug

Executing task: C:\Program Files\dotnet\dotnet.exe build D:\study\Ex_Files_Debugging_C_Sharp/Ch1/01_03/end/01_03.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary <

Microsoft (R) Build Engine version 16.10.0+4242f381a for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: D:\study\Ex_Files_Debugging_C_Sharp/Ch1/01_03/end/01_03.csproj
The terminal process “C:\Program Files\dotnet\dotnet.exe ‘build’, ‘D:\study\Ex_Files_Debugging_C_Sharp/Ch1/01_03/end/01_03.csproj’, ‘/property:GenerateFullPaths=true’, ‘/consoleloggerparameters:NoSummary'” terminated with exit code: 1.

How to solve it?

In VC Explorer, there is file folder .vscode and under this folder, there is file launch.json and tasks.json

Edit tasks.json by specifying current project’s DLL then run debug again.

example as following:

original tasks.json:

            “args”: [

                “build”,                

“${workspaceFolder}/Ch1/01_03/end/01_03.csproj”,                

“/property:GenerateFullPaths=true”,

                “/consoleloggerparameters:NoSummary”            

],

modify above as following:

            “args”: [

                “build”,

               “${workspaceFolder}/CH1/01_05/start/01_05.csproj”          

],

Also you need modify launch.json properly:

            // If you have changed target frameworks, make sure to update the program path.           

 “program”: “${workspaceFolder}/CH1/01_05/start/bin/Debug/netcoreapp2.1/01_05.dll”,

Written by Michael Zhang

Leave a Comment

Your email address will not be published.