-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
ClientAssets package beta not behaving as expected #42472
Comments
@MarkStega can you point me to a branch? |
On my fork of material blazor (https://github.com/OptimiumHealth/Material.Blazor) there is a branch called StaticResources |
After several hours of experimentation:
The aforementioned branch is updated. |
@javiercn I ended up having to use '.' as the staticassetsdirectory; Everything was fine when I was building css, but when I tried to build my typescript I ran afoul with includes. After several hours of trying to get the ts build to work I gave up, moved the directory to '.'. The assets are being generated & stored in 'StaticAssets' (my version of 'dist') but still aren't getting tagged as content (same issue as #3 above I suspect). |
@MarkStega I'm a bit busy with other workitems, but I'll take a look at your solution when I can. @TanayParikh is going to be working in this area, so he'll have throughts as he works through the implementation for the actual SDK feature. There might be bugs with the package, mainly because it is much harder to test (it essentially manual testing) compared to when the feature is built-in into the product where we already have the infrastructure to test all the MSBuild cases. |
@javiercn No worries, look when you can, our current solution is OK even though we have extra copies of the web assets in the nuget package. If it is something other than a mistake that I made I certainly wouldn't request to have it fixed as the preview 7 feature outlined in #38445 is not that far away. |
Thanks for contacting us. We're moving this issue to the |
Closing this will be covered as part of #38445 |
Is there an existing issue for this?
Describe the bug
@javiercn I've implemented the section of your blog post about the ClientAssets beta that follows the "Reusing MsBuild code" to just try to build my css
In the blog post most of the first 'PropertyGroup' elements have improper closures, nothing serious that isn't easy to fix
When I run a build I see the 'npm install' run followed by my commands to build css, but then the 'npm install' runs again as does the build command, this time with an output parameter added to the npm command
Expected Behavior
I don't expect the duplicate 'runs' of npm & build
Steps To Reproduce
See bug description
Exceptions (if any)
No response
.NET Version
6.0.301
Anything else?
The text was updated successfully, but these errors were encountered: