Blazor Client is rebuilt all the time after adding the nuget package Syncfusion.Blazor

Hi,
There is a problem with your nuget package for Blazor. For some strange reason it will keep rebuilding the Client project after adding the nuget package.
Steps to replicate:
1) Create a new Blazor project Visual Studio -> Select Blazor App template -> Select .NET 5.0 as target (although I think you can replicate this for other versions also) and Blazor WebAssembly App ; Also in the Advanced section make sure you select Configure for HTTPS and ASP .NETCore hosted (don't select PWA). -> click Create.
2) Now you will have a solution with 3 projects: Client, Server and Shared. Build the solution.
3) Build again just the Client project: you will see that it will not get rebuilt.You will get a message similar to this one:
Build started...
========== Build: 0 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
The Client project depends on the Shared project so that is why you will see 2 up-to-date projects.
This is expected since we haven't changed anything.
4) Right click on the Client project and manage nuget packages: from the Browse tab install the Syncfusion.Blazor nuget package (current version is 18.3.0.53).
5) Each time you now build the Client project it will keep building the project:
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
You can see that something is wrong with the nuget package as for each Client project build it will always copy a bunch of dlls. In my case I can see them by running msbuild on the Client project:
_CopyFilesMarkedCopyLocal:
Copying file from "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.objectpool\2.2.0\lib\netstandard2.0\Microsoft.Ext
ensions.ObjectPool.dll" to "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\bin\Debug\net5.0\wwwroot\_framework\Microsoft.Extensions.ObjectP
ool.dll".
Copying file from "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.http.features\2.2.0\lib\netstandard2.0\Microsoft.
AspNetCore.Http.Features.dll" to "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\bin\Debug\net5.0\wwwroot\_framework\Microsoft.AspNetCore.H
ttp.Features.dll".
Copying file from "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.webutilities\2.2.0\lib\netstandard2.0\Microsoft.A
spNetCore.WebUtilities.dll" to "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\bin\Debug\net5.0\wwwroot\_framework\Microsoft.AspNetCore.Web
Utilities.dll".
Copying file from "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.http.abstractions\2.2.0\lib\netstandard2.0\Micros
oft.AspNetCore.Http.Abstractions.dll" to "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\bin\Debug\net5.0\wwwroot\_framework\Microsoft.AspN
etCore.Http.Abstractions.dll".
Copying file from "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.net.http.headers\2.2.0\lib\netstandard2.0\Microsoft.Net.Http
.Headers.dll" to "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\bin\Debug\net5.0\wwwroot\_framework\Microsoft.Net.Http.Headers.dll".
Touching "E:\WORK\BlazorAppNoPWA\BlazorAppNoPWA\client\obj\Debug\net5.0\BlazorAppNoPWA.Client.csproj.CopyComplete".
This is a problem: if I have a Test project it will keep building the Client project each time I run a test. This slows down massively my testing.
Can you please investigate this? I believe it is an issue with the way your nuget package is build.
Thank you,
Razvan

2 Replies

MK Muthukumar Kannan Syncfusion Team December 14, 2020 06:38 PM UTC

Hi Razvan,

Thanks for contacting Syncfusion support.

We thank and appreciate you for shared the valuable information.

We will check this as per your report and update the information on 17th December 2020.

Please let us know if you have any concerns about this.

Regards,
Muthukumar K



MK Muthukumar Kannan Syncfusion Team January 8, 2021 01:28 PM UTC

Hi Razvan,
 
Sorry for the delayed update.

We have validated your query for "Copying a bunch of DLLs while Client Build". We can able to reproduce the reported issue in the mentioned NuGet package version(18.3.0.53) on our end. However, this issue has been resolved in the latest NuGet version. Could you please upgrade the latest Syncfusion.Blazor NuGet package in your application to resolve this issue?


Please let us know if you have any concerns.

Regards,
Muthukumar K


Loader.
Up arrow icon