Open ProgrammerAL opened 9 months ago
@bryancostanich it would be helpful for the error An item with the same key has already been added.
to include the name of the assembly it was trying to link to, and ideally it would display the version number of the the already linked assembly and the one it was trying to add to the collection when the conflict occurred. This would make the issue clearer to developers trying to deploy apps.
@ProgrammerAL this problem has been occuring when different assemblies link to different version of System.Text.Json
. You may need to check if the SignalR assembly is referencing V8.x of System.Text.Json. Previously Meadow assemblies referenced V7.x of Systems.text.Json and the Deployment process is unhappy when an attempt is made to deploy both versions of the assembly as there is only capability to have a single file with the give name. Deployment does not know which one is correct and throws up an error.
You may need to remove the Nuget references in the sample template application and replace them with project references to clones of the Meadow repositories and then ensure the same version of System.Text.Json is used throughout (or whatever assemble name is causing the clash.)
@CartBlanche - we should probably prioritize updating the extension to the new CLI code base - let's talk strategy this week and get it across the line
Describe the bug When creating a new F7 app using the default template that references the SignalR Client NuGet, the app fails to deploy.
To Reproduce
Microsoft.AspNetCore.SignalR.Client.Core
package using the latest version (8.0.2 at time of this writing). Make no other changes. Just reference the NuGet..csproj
file and remove the line referencing theMicrosoft.AspNetCore.SignalR.Client.Core
NuGet packageExpected behavior The app should deploy.
Developer tools (please complete the following information as best as you can): - OS and version: Windows 11 Pro. 23H2 - IDE and version: Visual Studio Community 2022 64-bit Version 17.9.2 - Meadow extension for IDE version: VS 2022 Tools for Meadow v1.9.0
Meadow (please complete the following information as best as you can): - Meadow hardware version: F7Micro F7FeatherV2 - Meadow OS version: 1.9.0.0 - If they are different, please provide these versions as well. - Meadow Mono version: 1.9.0.0 - Meadow coprocessor version: 1.9.0.0
Additional context
Someone in the Slack mentioned the device could be running out of disk space. I don't think this is happening. Using the default template to generate a Meadow Feather app, the
/bin/Debug/netstandard2.1
folder is 27.5 MB. After adding theMicrosoft.AspNetCore.SignalR.Client.Core
NuGet reference the/bin/Debug/netstandard2.1
folder was 28.6 MB.The error output I got from Visual Studio when deploying the app is:
After the app failed to deploy, I power cycled my feather and ran
meadow file list
. The output was: