SVG files in VS2012

Suddenly, my SVG files do not display properly when viewing my MVC 4 site. They work fine in other projects, and the same project displays beautiful images when placed in IIS instead of ASP.NET Development Server. I tried adding MIME using the code below, but didn't change anything. It feels like it literally happened overnight. Really confused.

<staticContent> <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> </staticContent> 
0
source share
1 answer

best way to call svg files:

 <object data='svg-test.svg' type='image/svg+xml' width='500' height='500' /> 
+1
source

Source: https://habr.com/ru/post/1261915/


All Articles