Content root for Rider

I'm working on a project that was originally created with Visual Studio. In this project I have some less files that are compiled into css. I get errors in the less where I'm defining custom fonts:

@font-face {
font-family: 'TestFont';
src: url('/webfonts/test_rg.woff2') format('woff2'),
url('/webfonts/test_rg.woff') format('woff'),
url('/webfonts/test_rg.ttf') format('truetype');

The error says something like the directory doesn't exist. I think that I need to be able to configure where the content root is. In Webstorm this can be done in a "Directories" option in the settings. I don't see this option in Rider. Does anyone have any ideas?

1 comment
Comment actions Permalink


Where is the 'webfonts' directory is placed (absolute path)? What is the absolute path of your solution?

Could you please clarify if placing "webfonts" directory in the solution root could fix the issue?


Kind regards,



Please sign in to leave a comment.