skip to Main Content

I’ve just created a new ASP.NET Core application.

Trying to sort out my styles, I see a number of styles that are affecting my site’s appearance, and these styles are in a file called:

/UnitConversions.styles.css?v=UwuMegbk9MiovbtuJ5vTUyhs96HY9tiIc2YiWFg9YOM

Seems simple enough. But I don’t have any file with this name.

So how do I edit the settings in the file?

2

Answers


  1. Chosen as BEST ANSWER

    The file is apparently created by Visual Studio. In addition, it adds a strange attribute to most of my elements. This is apparently related to ASP.NET Core Blazor CSS isolation.

    One way to deal with it is to disable this feature by adding the following line to the project file.

    <ScopedCssEnabled>false</ScopedCssEnabled>
    

  2. Try to locate the file in wwwroot folder, filename is:

    UnitConversions.styles.css
    

    And the rest which is:

    ?v=UwuMegbk9MiovbtuJ5vTUyhs96HY9tiIc2YiWFg9YOM
    

    Is a querystring appended to url just to control the version of css file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search