I have a C# Console Application targeting .NET framework 4.5.2 (it runs as a Windows service)
I use NuGet packages.
The Visual Studio Error List shows many warnings of the pattern:
Reference '<nuget package>' does not allow partially trusted callers
It also has one interesting line that says:
Use of app.config binding redirects requires full trust
Interestingly enough, I also have a WPF Click-Once app in the same solution that uses many of the same packages, but it does not show the warnings.
I do not get compiler errors when building the console application.
Under the Properties > Security, I have checked "This is a full trust application".
I do not have access to the source code of the NuGet packages that are causing the warnings. Many are very common packages like 'Ninject' and 'EntityFramework.SqlServer', etc.
The questions I have seen other SO questions like this one:
Assembly does not allow partially trusted caller
but it doesn't seem to fit my problem?
I've researched 'strong-named' assemblies, however the WPF Click-Once application that does not show the warnings does not use the Properties > Signing, and it also has bindingRedirect in its App.config?