SuessLabs / VsLinuxDebug

VS Extension to remotely deploy and debug your .NET (Core) C# solutions directly to your Linux or Raspberry Pi devices! .NET Core 3.1, .NET 5, 6, 7, 8, 9
https://marketplace.visualstudio.com/items?itemName=SuessLabs.VSLinuxDebugger
MIT License
37 stars 8 forks source link

Duplicate log entries in "Linux Debugger" window #53

Closed HakanL closed 1 year ago

HakanL commented 1 year ago

I have a solution with 5 projects (of which one is a Linux project). When I build I get the following in the "Linux Debugger" window (I cleared it before building):

20:44:45.311: Project: Sx1509\Sx1509.csproj --- Success: True

20:44:45.314: Project: Sx1509\Sx1509.csproj --- Success: True

20:44:45.315: Project: Sx1509\Sx1509.csproj --- Success: True

20:44:45.315: Project: Sx1509\Sx1509.csproj --- Success: True

20:44:45.322: Project: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj --- Success: True

20:44:45.322: Project: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj --- Success: True

20:44:45.322: Project: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj --- Success: True

20:44:45.322: Project: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj --- Success: True

20:44:45.329: Project: BusinessLogic\BusinessLogic.csproj --- Success: True

20:44:45.330: Project: BusinessLogic\BusinessLogic.csproj --- Success: True

20:44:45.330: Project: BusinessLogic\BusinessLogic.csproj --- Success: True

20:44:45.330: Project: BusinessLogic\BusinessLogic.csproj --- Success: True

20:44:45.882: Project: DMXCore100.Linux\DMXCore100.Linux.csproj --- Success: True

20:44:45.887: Project: DMXCore100.Linux\DMXCore100.Linux.csproj --- Success: True

20:44:45.887: Project: DMXCore100.Linux\DMXCore100.Linux.csproj --- Success: True

20:44:45.888: Project: DMXCore100.Linux\DMXCore100.Linux.csproj --- Success: True

20:44:56.985: Project: DMXCore100.Windows\DMXCore100.Windows.csproj --- Success: True

20:44:56.986: Project: DMXCore100.Windows\DMXCore100.Windows.csproj --- Success: True

20:44:56.986: Project: DMXCore100.Windows\DMXCore100.Windows.csproj --- Success: True

20:44:56.986: Project: DMXCore100.Windows\DMXCore100.Windows.csproj --- Success: True

20:44:57.023: Build was notsuccessful
20:44:57.024: Build was notsuccessful
20:44:57.024: Build was notsuccessful
20:44:57.024: Build was notsuccessful

But the build is successful, this is the output in the "Build" window:

Build started...
1>------ Build started: Project: DMXCore100.Windows, Configuration: Debug x64 ------
1>DMXCore100.Windows -> C:\Projects\DMXCore\100\Software\DMXCore100.Windows\bin\x64\Debug\net6.0-windows10.0.19041.0\DMXCore100.Windows.dll
========== Build: 1 succeeded, 0 failed, 4 up-to-date, 0 skipped ==========
========== Elapsed 00:11.732 ==========

I'm assuming the 4 "notsuccessful"(!) lines correspond to the 4 "up-to-date" projects?

HakanL commented 1 year ago

I also don't understand why I get so many duplicate lines. Now when I build I get 8x "Build was successful", and all the other lines are duplicated as well (you see some of that at the top).

DamianSuess commented 1 year ago

Pr #40 takes care of the duplicate output entries

HakanL commented 1 year ago

I have version 2.01 but I'm still seeing multiple log entries when building:

11:05:08.892: Project [success=True]: Sx1509\Sx1509.csproj
11:05:08.892: Project [success=True]: Sx1509\Sx1509.csproj
11:05:08.893: Project [success=True]: Sx1509\Sx1509.csproj
11:05:08.896: Project [success=True]: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj
11:05:08.896: Project [success=True]: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj
11:05:08.896: Project [success=True]: ..\..\MagnusEngine\MagnusEngine\MagnusEngine.csproj
11:05:08.898: Project [success=True]: BusinessLogic\BusinessLogic.csproj
11:05:08.898: Project [success=True]: BusinessLogic\BusinessLogic.csproj
11:05:08.898: Project [success=True]: BusinessLogic\BusinessLogic.csproj
11:05:08.901: Project [success=True]: DMXCore100.Windows\DMXCore100.Windows.csproj
11:05:08.901: Project [success=True]: DMXCore100.Windows\DMXCore100.Windows.csproj
11:05:08.901: Project [success=True]: DMXCore100.Windows\DMXCore100.Windows.csproj
11:05:08.904: Project [success=True]: DMXCore100.Linux\DMXCore100.Linux.csproj
11:05:08.904: Project [success=True]: DMXCore100.Linux\DMXCore100.Linux.csproj
11:05:08.904: Project [success=True]: DMXCore100.Linux\DMXCore100.Linux.csproj
11:05:08.912: Build was successful
11:05:08.913: Build was successful
11:05:08.913: Build was successful
DamianSuess commented 1 year ago

@HakanL, found it. PR coming shortly

DamianSuess commented 1 year ago

@HakanL issue is now resolved. I appreciate you catching that 👍