I am migrating a .netFramework 4.6.1 application to core. I have been able to get rid of all of the build errors except this one:
Error MC1000 Unknown build error, 'Could not find type 'System.Management.Instrumentation.InstrumentedAttribute' in assembly 'C:\Users\xxxxx.nuget\packages\system.management\7.0.0\lib\net6.0\System.Management.dll'.'
AppName C:\Program Files\dotnet\sdk\6.0.402\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.WinFX.targets 223
This has been a blocker for about a month now. Does anyone have any idea regarding how the error can be solved? I have adde references to system.management, system.management.Instrumentation.... etc. But it seems like instrumentedAttribute is no longer part of the namespace.
Best Regards.