Dennis you have some experience moving from target...
# package-development
a
Dennis you have some experience moving from targets files to razor class library right ? I just tried it with a package, but i get 404 for my custom HTML. Its looking in /App_plugins/{pacakageName}/ as per usual. Does this change with RCLs ? My nupgk has the fe stuff in a staticwebassets folder soeh ? 🤷
d
Ya, I know about this stuff. With RCLs, you need to put your resources not in app_plugins, but in wwwroot. Then to make them available under the correct path, you need to set a property in your csproj file:
Copy code
xml
<PropertyGroup>
    <StaticWebAssetBasePath>App_Plugins/UrlTracker</StaticWebAssetBasePath>
</PropertyGroup>
a
I followed this https://dev.to/kevinjump/umbraco-10-razor-class-library-packages-pt1-3nfa And in part 4 I moved the base path to
/
and put my package folder directly under
wwwroot
but i'll have a look at your link and play around. Thanks!
d
ah, if you have the base path as
/
, then you need to put your files in
wwwroot/App_Plugins/[your package name]
a
Ahhh coolio
let me try that
nice nice - worked like a charm! now i just need to do the package.manifest fix. Awesome thanks once again 😄
ahh the rcl setup is so much nicer 😍
d
What I like the most about it, is that static assets in the wwwroot folder automatically update on runtime if you build your frontend. There's no need anymore to build straight to your web application to get that.
a
yeah exactly that was such a cool realization 😍