Nik
10/11/2024, 3:54 PMConflicting assets with the same target path
My google-fu has failed me and I cannot find any deffinitive answers as to whether this is possible with static assets or not. I've been able to do it with view files in the past but this is the first time I've tried with a CSS/JS file.
Any pointers /answers would be great 🙂Anders Bjerner
10/11/2024, 4:31 PMC:\Users\{users}\.nuget\packages\{packageName}\{alias}
. If the package is an RCL, the assets are specifically extracted at staticwebassets
sub folder.
Here you can just edit them for testing purposes, and you can immediately see the change in your website (don't even need to recompile). I use this a lot when testing various smaller adjustments before adding them back to the actual package code.
It's however important to note that if you make changes to the extracted package locally, it will affect all the sites you run locally that is using this particular version of the package.
I have a setup so that if I build for debug, a timestamp is appended to the version number. For one, this means that I don't have to bump the version number when testing a package locally, but I typically only change assets the way described above for package that have this timestamp - ensuring that I don't accidentally change a release version of the package, and can't figure out why something is not working in an entirely different project consuming this package.
https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/v13/main/src/Skybrud.Umbraco.Redirects/Skybrud.Umbraco.Redirects.csproj#L14
https://github.com/skybrud/Skybrud.Umbraco.Redirects/blob/v13/main/debug.bat#L2Nik
10/11/2024, 5:31 PMAnders Bjerner
10/11/2024, 6:57 PMhuwred
10/13/2024, 2:05 PMMike Chambers
10/14/2024, 8:48 AM