johan-v-r / LibSassBuilder

Sass builder for .NET projects
MIT License
99 stars 14 forks source link

Installing LibSassBuilder hides SCSS files from the solution explorer in Rider #27

Closed MrDach closed 2 years ago

MrDach commented 2 years ago

As the title says my SCSS files disappear in the solution explorer of Jetbrains Rider when I install this library. I can still see the files in Windows Explorer and they also get compiled when building the project. Uninstalling the library makes the files re-appear.

Do you have any idea why this is happening?

johan-v-r commented 2 years ago

It might depend on the file location, as certain folders are hidden by default like bin and logs - what is your file path?

MrDach commented 2 years ago

The file is located in a path like this: "[project root]/Shared/Test.razor.scss". And the file is visible without LibSassBuilder installed. I can even have two projects in the same solution - one with the library installed and one without and the SCSS files are hidden only in the one where it is installed.

radverg commented 2 years ago

I can confirm this - all scss files invisible in Rider (macOS).

johan-v-r commented 2 years ago

Think I have a fix, just want to do some final testing...

For now you can add the below to your csproj to show the files:

    <ItemGroup>
        <None Include="**/*.scss" />
    </ItemGroup>
MrDach commented 2 years ago

Awesome, thanks! I'll check it out first thing after the summer vacation :)

johan-v-r commented 2 years ago

This should be resolved in v1.6.4