Open MartinZikmund opened 9 months ago
Related to https://github.com/unoplatform/uno/issues/14189. This looks like a mix of msbuild integration and ordering caused by design-time builds.
running taskkill /f /im msbuild.exe
and building uno.ui.tasks
generally helps.
This issue does not happen anymore.
Unfortuantely have to reopen this one, it has been happening often recently with:
MSB4062 The "Uno.UI.Tasks.ResourcesGenerator.UpriSubstitutionsGeneratorTask_v0" task could not be loaded from the assembly D:\Work\uno2\src\Uno.UI..\SourceGenerators\Uno.UI.Tasks\bin\Debug_Shadow\Uno.UI.Tasks.v0.dll. Confirm that the
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.
I'm not able to reproduce this one. If you have a binlog you can provide it will help.
I did the following:
taskkill /f /im msbuild.exe
-> no such processes found, so VS closed them correctly3>C:\Dev\Uno2\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj(47,3): warning MSB3026: Could not copy "bin\Debug\Uno.UI.Tasks.v0.dll" to "bin\Debug\..\Debug_Shadow\Uno.UI.Tasks.v0.dll". Beginning retry 1 in 500ms. The process cannot access the file 'bin\Debug\..\Debug_Shadow\Uno.UI.Tasks.v0.dll' because it is being used by another process. The file is locked by: "MSBuild.exe (28116), MSBuild.exe (23972)" 3>C:\Dev\Uno2\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj(47,3): warning MSB3027: Could not copy "bin\Debug\Uno.UI.Tasks.v0.dll" to "bin\Debug\..\Debug_Shadow\Uno.UI.Tasks.v0.dll". Exceeded retry count of 1. Failed. The file is locked by: "MSBuild.exe (28116), MSBuild.exe (23972)" 3>C:\Dev\Uno2\src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj(47,3): warning MSB3021: Unable to copy file "bin\Debug\Uno.UI.Tasks.v0.dll" to "bin\Debug\..\Debug_Shadow\Uno.UI.Tasks.v0.dll". The process cannot access the file 'bin\Debug\..\Debug_Shadow\Uno.UI.Tasks.v0.dll' because it is being used by another process.
In the end had to both reboot and git clean -xfd
I fixed the build issues by the steps:
taskkill /f /im msbuild.exe
dotnet build src\SourceGenerators\Uno.UI.Tasks\Uno.UI.Tasks.csproj
Uno.UI-Skia-only.slnf
in VisualStudio
Current behavior
With Uno.UI cloned locally, various Uno.UI.Tasks erros prevent build:
Had to rebuild Uno.UI.Tasks and then manually rebuild the projects that were showing errors to make the samples app build again.
Expected behavior
Should build first try.
How to reproduce it (as minimally and precisely as possible)
net7.0
and open skia-only slnfWorkaround
Had to rebuild Uno.UI.Tasks and then manually rebuild the projects that were showing errors to make the samples app build again.
Works on UWP/WinUI
Yes
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
VS 2022
Relevant plugins
No response
Anything else we need to know?
No response