nforgeio / RaspberryDebugger

Visual Studio Extension to Debug C# on Raspberry Pi
Apache License 2.0
39 stars 12 forks source link

.NET Core 3.1 SDK not installed on Raspberry when .NET 5 SDK is installed on workstation #16

Closed jefflill closed 3 years ago

jefflill commented 3 years ago

This happens because dotnet --info is not working as expected and preventing .NET Core 3.1 SDK installation which will cause remote debugging to fail unless a .NET Core 3.1 SDK is already installed.

While investigating #15, I realized that debugging of a .NETCoreApp,3.1 isn't installing the .NET Core 3.1 SDK so debugging fails. I didn't realize this during my testing because a 3.1 SDK was already installed during previous tests.

The problem is that dotnet --info executed within a .NET Core 3.1 project folder us reporting that the SDK version is 5.0.100 even though the project targets .NETCoreApp,3.1. I assumed that this would examine the .csproj file in the directory and then apply any global.json rules. It looks like that's not actually happening.

jefflill commented 3 years ago

Fixed for v0.5