kindofmagic icon indicating copy to clipboard operation
kindofmagic copied to clipboard

.core 3.1 fails to build

Open vdasus opened this issue 4 years ago • 2 comments

vs2019pro 16.5.0

Create .core 3.1desktop WPF project

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <UseWPF>true</UseWPF>
  </PropertyGroup>

Add kindofmagic nuget package dotnet build

C:\Users\<USER>\.nuget\packages\kindofmagic\1.3.1\build\KindOfMagic.targets(5,5): error MSB4062: The "Ma
gicTask" task could not be loaded from the assembly C:\Users\<USER>\.nuget\packages\kindofmagic\1.3.1\bu
ild\KindOfMagic.exe. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.
0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\<PATH>\<PROJECT>.csproj]

vdasus avatar Mar 21 '20 12:03 vdasus

Thank you for the report.

I need yet to try KoM on .Net Core. Not sure that build pipeline is the same.

Kind regards

On Mar 21, 2020 13:36, vdasus [email protected] wrote:

vs2019pro 16.5.0

Create .core 3.1desktop WPF project

WinExe netcoreapp3.1 true

Add kindofmagic nuget package dotnet build

C:\Users<USER>.nuget\packages\kindofmagic\1.3.1\build\KindOfMagic.targets(5,5): error MSB4062: The "Ma gicTask" task could not be loaded from the assembly C:\Users<USER>.nuget\packages\kindofmagic\1.3.1\bu ild\KindOfMagic.exe. Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0. 0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:<PATH><PROJECT>.csproj]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/demigor/kindofmagic/issues/5, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAVDQILYG7F5NFF4KVED3B3RISYFDANCNFSM4LQ4ZP4A.

demigor avatar Mar 21 '20 12:03 demigor

.net core 3.1 is LTS, and future of .net development :) Spend some time for it, please - my code without this magic library looks dirty :)

Thank you

vdasus avatar Mar 21 '20 12:03 vdasus