Build Error: GenerateFileTask Instantiation Failure #18980
Replies: 4 comments 1 reply
-
Might not be Windows update, not sure what is causing this |
Beta Was this translation helpful? Give feedback.
-
PS C:\Users\wenhong.lau.DATGEL.nuget\packages\uno.dsp.tasks\1.4.0\tools> ls Mode LastWriteTime Length Name -a---- 15/6/2024 2:53 am 28384 Microsoft.Bcl.AsyncInterfaces.dll PS C:\Users\wenhong.lau.DATGEL.nuget\packages\uno.dsp.tasks\1.4.0\tools> sn -T .\Microsoft.Extensions.DependencyInjection.Abstractions.dll Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.0 Public key token is adb9793829ddae60 |
Beta Was this translation helpful? Give feedback.
-
Hi, @WenHong-Lau. We moved the discussion to ticket # #18986, but I was trying to tag you from there, and for some reason, GitHub did not allow me. I am looking into this issue, but I have been unable to reproduce it. I have a couple of questions: What kind of project are you running (Desktop, mobile, WASM, etc.)? If you create a new Uno Platform project, do you get the same error? Finally, could you delete the directory I created a new app and upgraded my Windows PC to the latest, currently running on Windows 11 Version I created two projects, one using the template in Visual Studio and selected and another from the command line utility. Both projects were: net9.0, MVUX, XAML, Material, Extension, etc., most options are chosen. Please reply directly to the issue #18986 so we can continue the conversation there. |
Beta Was this translation helpful? Give feedback.
-
I'm encountering a build error in my project that appears to be related to Windows updates. The issue has been reproduced on two separate machines, both occurring after Windows updates were installed.
The "GenerateFileTask" task could not be instantiated from "C:\Users\wenhong.lau.DATGEL\.nuget\packages\uno.dsp.tasks\1.4.0\build\../tools/Uno.Dsp.Tasks.dll". System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' at Microsoft.Extensions.DependencyInjection.LoggingServiceCollectionExtensions.AddLogging(IServiceCollection services, Action
1 configure)at Microsoft.Extensions.Hosting.HostBuilder.PopulateServiceCollection(IServiceCollection services, HostBuilderContext hostBuilderContext, HostingEnvironment hostingEnvironment, PhysicalFileProvider defaultFileProvider, IConfiguration appConfiguration, Func`1 serviceProviderGetter)
at Microsoft.Extensions.Hosting.HostBuilder.InitializeServiceProvider()
at Microsoft.Extensions.Hosting.HostBuilder.Build()
at Uno.Dsp.Tasks.TaskBase..ctor()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Datgel.Acquisition (net8.0) C:\Users\wenhong.lau.DATGEL.nuget\packages\uno.dsp.tasks\1.4.0\build\Uno.Dsp.Tasks.targets 20
`
Beta Was this translation helpful? Give feedback.
All reactions