You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found with GitVersionTask 5.0.0-beta1-72 using .NET Core SDK 2.2.102 (internal MSBuild 15.9.20+g88f5fadfbe).
Build failed on second project (of three) within the solution with the following error:
C:\Users\ccharabaruk\.nuget\packages\gitversiontask\5.0.0-beta1-72\build\functionality\GitVersionBuild.targets(6,5): error MSB4175: The task factory "UtilPack.NuGet.MSBuild.NuGetTaskRunnerFactory" could not be loaded from the assembly "C:\Users\ccharabaruk\.nuget\packages\utilpack.nuget.msbuild\2.9.1\build\\netcoreapp1.1\UtilPack.NuGet.MSBuild.dll". Assembly with same name is already loaded [C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Engine\Northcloud.Sync.Engine.csproj]
My thought is that MSBuild inside dotnet CLI is using the same process for each project inside the solution file, so tries reloading the UtilPack.NuGet.MSBuild assembly which fails since it's already loaded into the process.
Full output from dotnet build:
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 63.95 ms for C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Engine\Northcloud.Sync.Engine.csproj.
Restore completed in 72.59 ms for C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\test\Northcloud.Sync.Engine.Test\Northcloud.Sync.Engine.Test.csproj.
Restore completed in 124.37 ms for C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\test\Northcloud.Sync.Engine.Test\Northcloud.Sync.Engine.Test.csproj.
Restore completed in 63.64 ms for C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Base\Northcloud.Sync.Base.csproj.
There is a mismatch between SDK NuGet version (4.9.2) and the NuGet version the task factory was compiled against (4.9.0).
[NuGet Minimal]: Restoring packages for C:\Users\ccharabaruk\.nuget\packages\gitversiontask\5.0.0-beta1-72\build\functionality\GitVersionBuild.targets...
[NuGet Minimal]: Restoring packages for C:\Users\ccharabaruk\.nuget\packages\gitversiontask\5.0.0-beta1-72\build\functionality\GitVersionBuild.targets...
[NuGet Minimal]: Installing Microsoft.NETCore.Platforms 2.0.0.
There is a mismatch between SDK NuGet version (4.9.2) and the NuGet version the task factory was compiled against (4.9.0).
There is a mismatch between SDK NuGet version (4.9.2) and the NuGet version the task factory was compiled against (4.9.0).
Northcloud.Sync.Base -> C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Base\bin\Debug\netstandard2.0\Northcloud.Sync.Base.dll
C:\Users\ccharabaruk\.nuget\packages\gitversiontask\5.0.0-beta1-72\build\functionality\GitVersionBuild.targets(6,5): error MSB4175: The task factory "UtilPack.NuGet.MSBuild.NuGetTaskRunnerFactory" could not be loaded from the assembly "C:\Users\ccharabaruk\.nuget\packages\utilpack.nuget.msbuild\2.9.1\build\\netcoreapp1.1\UtilPack.NuGet.MSBuild.dll". Assembly with same name is already loaded [C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Engine\Northcloud.Sync.Engine.csproj]
Build FAILED.
C:\Users\ccharabaruk\.nuget\packages\gitversiontask\5.0.0-beta1-72\build\functionality\GitVersionBuild.targets(6,5): error MSB4175: The task factory "UtilPack.NuGet.MSBuild.NuGetTaskRunnerFactory" could not be loaded from the assembly "C:\Users\ccharabaruk\.nuget\packages\utilpack.nuget.msbuild\2.9.1\build\\netcoreapp1.1\UtilPack.NuGet.MSBuild.dll". Assembly with same name is already loaded [C:\Users\ccharabaruk\Repos\ONAMA\dependencies\sync-framework-dotnet\src\Northcloud.Sync.Engine\Northcloud.Sync.Engine.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:11.88
The text was updated successfully, but these errors were encountered:
Found with GitVersionTask 5.0.0-beta1-72 using .NET Core SDK 2.2.102 (internal MSBuild 15.9.20+g88f5fadfbe).
Build failed on second project (of three) within the solution with the following error:
My thought is that MSBuild inside dotnet CLI is using the same process for each project inside the solution file, so tries reloading the UtilPack.NuGet.MSBuild assembly which fails since it's already loaded into the process.
Full output from
dotnet build
:The text was updated successfully, but these errors were encountered: