microsoft / XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.
MIT License
692 stars 110 forks source link

Microsoft.Xaml.Behaviors does not support ReadyToRun #212

Closed lg2de closed 3 years ago

lg2de commented 3 years ago

The package Microsoft.Xaml.Behaviors does not to support ReadyToRun publishing using dotnetcore 3.1. This seams to be related to the fact that this package is focusing on UWP, right?

Would it be possible to support this option in the Windows Desktop projects in future?

Here the compiler output:

RUNREADYTORUNCOMPILER : warning : Could not load file or assembly 'Microsoft.Extensions.Configuration.Ini, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. File not found. (0x80070002) while resolving 0x100009e - Microsoft.Extensions.Configuration.IniConfigurationExtensions. [D:\***.OperationsApp.csproj]
RUNREADYTORUNCOMPILER : warning : Could not load file or assembly 'Microsoft.Extensions.Configuration.Ini, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. File not found. (0x80070002) while resolving 0xa000176 - Microsoft.Extensions.Configuration.IniConfigurationExtensions.AddIniFile. [D:\***.OperationsApp.csproj]
RUNREADYTORUNCOMPILER : warning : System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.Configuration.Ini, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. File not found. (0x80070002). [D:\***.OperationsApp.csproj]
C:\Program Files\dotnet\sdk\3.1.112\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(306,28): error MSB4094: "C:\Users\***\.nuget\packages\microsoft.xaml.behaviors.wpf\1.1.31\lib\netcoreapp3.1\Microsoft.Xaml.Behaviors.dll;D:\***\bin\Debug\netcoreapp3.1\Microsoft.Xaml.Behaviors.dll" ist ein ungültiger Wert für den "CompilationEntry"-Parameter der "RunReadyToRunCompiler"-Aufgabe. Mehrere Elemente können nicht in einen Parameter vom Typ "Microsoft.Build.Framework.ITaskItem" übergeben werden. [D:\***OperationsApp.csproj]
Could not publish Operations. Aborting.
lg2de commented 3 years ago

Sorry, wrong repository...