Page 2 of 2

Re: CEF in .NET5 in a DLL

PostPosted: Tue Dec 07, 2021 9:16 pm
by TedGCI
[quote]That shouldn't be required under normal circumstances, specify a RuntimeIdentifier if you haven't already to only provide the dlls/resources for the relevant platform/quote]


Also I tried the RuntimeIdentifier you suggested and I get:
Error NETSDK1032 The RuntimeIdentifier platform 'win-x64' and the PlatformTarget 'x86' must be compatible. C:\Program Files\dotnet\sdk\5.0.403\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets 168
Which is almost impossible to find where win-x64 is set. I have looked everywhere I can think of.

Re: CEF in .NET5 in a DLL

PostPosted: Tue Dec 07, 2021 10:09 pm
by amaitland
Set PlatformTarget to match your RuntimeIdentifier (x64 in this case).


https://github.com/dotnet/sdk/issues/1560