When I hit the validate button on my automation script I see the following warning:
Assuming assembly refernce 'mscorlib, Version=2.0.0.0n Culture=neutral, PublicKeyToken=b77a5c561934e089' used by 'System.Xml.Linq' matches identiy 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' of 'mscorlib', you may need to supply runtime policy
How do I resolve this?
I don't have it in Visual studio - DIS. and started to get it when adding the System.Xml.Linq nuget to my project.
Hi Mieke
You don't need to use the NuGet for System.Xml.Linq. You need to use the assembly reference instead. Right click on the project and select 'Add Assembly Reference...'
There you can select the System.Xml.Linq assembly.
All assemblies that are part of .NET Framework need to be added as Assembly Reference.
Unfortunately I don’t have a proper list (can’t find a proper list online either) but you can see which ones are available by going to the .NETFramework directory and see which ones are there (https://learn.microsoft.com/en-us/dotnet/standard/assembly/reference-assemblies#using-reference-assemblies).
Great info thank you Michiel!
Thanks Michiel, that helped.
How do I know when to use a nuget and when to use assembly?
Should I add all System items as assembly? For example I have a similar problem after adding the System.IO.Compression nuget.