Is it possible to NOT generate JS, CSS & CS files for new Blazor Component ?
Hello everyone,
I am really annoyed by deleting empty files.
Every time I create a new Blazor Component / Page I get the full stack of 4 files ( .razor, .razor.cs, .razor.css, .razor.js). In previous versions I was asked if I wanted those additional files. Now all Rider is asking if I wanne add those files to git.
Is there a way to make Rider ask me again which files I wanne add? Or maybe a setting that prevents it from doing this?
Thanks for your time
Aaron
Please sign in to leave a comment.
Aaron James, could you clarify how exactly you are creating new components?
What does the creation dialog look like in your environment?
I would be very happy to see it again like in your screenshot. Sadly those checkboxes don't appear. I am on MacOS 15.5 with Rider 2025.1.
I am pretty sure the dialog was like yours in 2024.3 so I thought it was removed.
Aaron James, this might be a bug. Could you collect (Help→Collect Logs) and send us your Rider logs so we could look into this?
You can send us the logs via the Upload Service and let me know the Upload ID in this thread.
Hello again Kirill Filin,
Upload id: 2025_06_17_5o8We1LfGJN3VjP417BfcH (file: rider-logs-20250617-19365911158056613566331606.zip)
I tried EAP 2025.2 today and made a rollback to collect the logs for 2025.1.
Beside the fact, that my global workaround file templates are gone, something is really off.
Funny thing: I generated a ‘Test’ Component by right click on Pages Folder > Add > Blazor Component. It then generated 8 Files of the ‘Test’-Component. The 4 files for the component in Pages Folder AND Components Folder. That's new 😅
Thanks for your help!
Aaron James, thank you for the logs.
Regrettably, I was not able to reproduce this behavior in a testing environment thus far. So far logs indicate that there is an issue populating the component options list, but it is not clear what exactly is causing this.
Could you try the following steps and let me know if the issue is still reproducible?
Temporarily disable all downloaded plugins via Disable all Downloaded Plugins action found on the Settings | Plugins page under the gear icon
.idea
directory located in your project directoryIf the issue is still reproducible, please collect another log archive with additional logging:
Sorry for the late answer!
Upload id: 2025_06_24_3AQGCMUauaWwwtEMhd1hPP (file: rider-logs-20250624-2316328778604058367237217.zip)
I made my own templates for each file. So for now I keep this installation & config as is and use them as workaround. Just lemme know if I can provide anything else or “burn it and restart from scratch”. 😝
Hello Aaron James,
Would you mind updating to recently released Rider 2025.1.4, resetting settings (please back them up first) and letting me know if the issue persists?
Hello again,
resetting the config worked. Seems like something in my config was messing things up.