Actually in my Application .net Framework and .net standard was there which is working Fine And the bootstrapper packages are installing fine.
due to some reason we have migrated one of the project to .net 6, then I was able to build , but during installation of the packages i am getting the error
Couldn't Load the assembly 'System.Runtime.dll version=6.0.0.0'
Exception has been thrown by the target of an invocation.
during debugging I found that the exception raise in one of the .net standard calss the code where the error is occurring is
cobj = Activator.CreateInstance(<classType>,
BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
null, args, null);
and the actual line of the class constructor where it fails to create a object is
/config = ConfigurationManager.OpenExeConfiguration(GetType().Assembly.Location);
ConfigurationManager is present under namespace System.Configuration
;
I feel since earlier .net standard and .net framework were there this piece of code was working ,but one of the component is in .net 6 so this line giving exception .
is there any alter solution is there .