-
-
Notifications
You must be signed in to change notification settings - Fork 237
Support Incremental Build in Client.Core project in BitBoilerplate template #10533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After long hours struggling, I think I found the solution.
|
Here are the changed parts:
|
Consider a file like Anyway, assuming we address this issue, what benefits would we gain? Would the build process become faster? Are the app's styles failing to reflect the latest changes? I'm struggling to identify the problem! The only issue I see is that |
as @ysmoradi mentioned, the time of scss files compilation can be considered negligible compared to Blazor stuff. is this optimization even noticeable? |
Hi. Even if the build time of the whole Client.Core project is nothing, the fact that its build is not skipped and is not considred up-to-date causes all other projects depending on this project considered not up-to-date and make them build again without being necessary. So what we gain if this is solved, is not the time of scss compilation but the time of compiling the whole Client.Core and also projects depending on it. Visual Studio has its own mechanism to see if it needs to use MSBuild to build a project or not. Maybe the optimization is occurring in that step (VS), not in the actual MSBuild operation. As I tested, when a project is not considered up-to-date, because of a compiled css file being assumed a changed compile input file, not only the scss compilation step is performed but also the whole project gets compiled from scratch. Is there any way to make it just do the needed steps of build process? maybe just compile the scss files and skip processing cs files? I'll come up to this issue tonight and provide a few numbers and odds about how much difference we see when these changes applied. |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
Hi. Hope you're all doing well.
Can we design boilerplate project such that it supports incremental build?
As of now, subsequent builds without any changes to source code, do not take advantage of incremental build and try to build the whole project again with the following log:
Describe the solution you'd like
I'm not sure how we can make this happen. Playing with
UpToDateCheckBuilt
and other related properties didn't help me.Additional context
No response
The text was updated successfully, but these errors were encountered: