389 instantiations of ContentTypeMapping
Microsoft.NET.Sdk.StaticWebAssets.Tasks (386)
Data\ContentTypeMapping.cs (1)
21internal static ContentTypeMapping FromTaskItem(ITaskItem contentTypeMappings) => new(
Data\ContentTypeProvider.cs (385)
16["*.js"] = new ContentTypeMapping("text/javascript", null, "*.js", 1), 17["*.css"] = new ContentTypeMapping("text/css", null, "*.css", 1), 18["*.html"] = new ContentTypeMapping("text/html", null, "*.html", 1), 19["*.json"] = new ContentTypeMapping("application/json", null, "*.json", 1), 20["*.mjs"] = new ContentTypeMapping("text/javascript", null, "*.mjs", 1), 21["*.xml"] = new ContentTypeMapping("text/xml", null, "*.xml", 1), 22["*.htm"] = new ContentTypeMapping("text/html", null, "*.htm", 1), 23["*.wasm"] = new ContentTypeMapping("application/wasm", null, "*.wasm", 1), 24["*.txt"] = new ContentTypeMapping("text/plain", null, "*.txt", 1), 25["*.dll"] = new ContentTypeMapping("application/octet-stream", null, "*.dll", 1), 26["*.pdb"] = new ContentTypeMapping("application/octet-stream", null, "*.pdb", 1), 27["*.dat"] = new ContentTypeMapping("application/octet-stream", null, "*.dat", 1), 28["*.webmanifest"] = new ContentTypeMapping("application/manifest+json", null, "*.webmanifest", 1), 29["*.jsx"] = new ContentTypeMapping("text/jscript", null, "*.jsx", 1), 30["*.markdown"] = new ContentTypeMapping("text/markdown", null, "*.markdown", 1), 31["*.gz"] = new ContentTypeMapping("application/x-gzip", null, "*.gz", 1), 32["*.br"] = new ContentTypeMapping("application/octet-stream", null, "*.br", 1), 33["*.md"] = new ContentTypeMapping("text/markdown", null, "*.md", 1), 34["*.bmp"] = new ContentTypeMapping("image/bmp", null, "*.bmp", 1), 35["*.jpeg"] = new ContentTypeMapping("image/jpeg", null, "*.jpeg", 1), 36["*.jpg"] = new ContentTypeMapping("image/jpeg", null, "*.jpg", 1), 37["*.gif"] = new ContentTypeMapping("image/gif", null, "*.gif", 1), 38["*.svg"] = new ContentTypeMapping("image/svg+xml", null, "*.svg", 1), 39["*.png"] = new ContentTypeMapping("image/png", null, "*.png", 1), 40["*.webp"] = new ContentTypeMapping("image/webp", null, "*.webp", 1), 41["*.otf"] = new ContentTypeMapping("font/otf", null, "*.otf", 1), 42["*.woff2"] = new ContentTypeMapping("font/woff2", null, "*.woff2", 1), 43["*.m4v"] = new ContentTypeMapping("video/mp4", null, "*.m4v", 1), 44["*.mov"] = new ContentTypeMapping("video/quicktime", null, "*.mov", 1), 45["*.movie"] = new ContentTypeMapping("video/x-sgi-movie", null, "*.movie", 1), 46["*.mp2"] = new ContentTypeMapping("video/mpeg", null, "*.mp2", 1), 47["*.mp4"] = new ContentTypeMapping("video/mp4", null, "*.mp4", 1), 48["*.mp4v"] = new ContentTypeMapping("video/mp4", null, "*.mp4v", 1), 49["*.mpa"] = new ContentTypeMapping("video/mpeg", null, "*.mpa", 1), 50["*.mpe"] = new ContentTypeMapping("video/mpeg", null, "*.mpe", 1), 51["*.mpeg"] = new ContentTypeMapping("video/mpeg", null, "*.mpeg", 1), 52["*.mpg"] = new ContentTypeMapping("video/mpeg", null, "*.mpg", 1), 53["*.mpv2"] = new ContentTypeMapping("video/mpeg", null, "*.mpv2", 1), 54["*.nsc"] = new ContentTypeMapping("video/x-ms-asf", null, "*.nsc", 1), 55["*.ogg"] = new ContentTypeMapping("video/ogg", null, "*.ogg", 1), 56["*.ogv"] = new ContentTypeMapping("video/ogg", null, "*.ogv", 1), 57["*.webm"] = new ContentTypeMapping("video/webm", null, "*.webm", 1), 58["*.323"] = new ContentTypeMapping("text/h323", null, "*.323", 1), 59["*.appcache"] = new ContentTypeMapping("text/cache-manifest", null, "*.appcache", 1), 60["*.asm"] = new ContentTypeMapping("text/plain", null, "*.asm", 1), 61["*.bas"] = new ContentTypeMapping("text/plain", null, "*.bas", 1), 62["*.c"] = new ContentTypeMapping("text/plain", null, "*.c", 1), 63["*.cnf"] = new ContentTypeMapping("text/plain", null, "*.cnf", 1), 64["*.cpp"] = new ContentTypeMapping("text/plain", null, "*.cpp", 1), 65["*.csv"] = new ContentTypeMapping("text/csv", null, "*.csv", 1), 66["*.disco"] = new ContentTypeMapping("text/xml", null, "*.disco", 1), 67["*.dlm"] = new ContentTypeMapping("text/dlm", null, "*.dlm", 1), 68["*.dtd"] = new ContentTypeMapping("text/xml", null, "*.dtd", 1), 69["*.etx"] = new ContentTypeMapping("text/x-setext", null, "*.etx", 1), 70["*.h"] = new ContentTypeMapping("text/plain", null, "*.h", 1), 71["*.hdml"] = new ContentTypeMapping("text/x-hdml", null, "*.hdml", 1), 72["*.htc"] = new ContentTypeMapping("text/x-component", null, "*.htc", 1), 73["*.htt"] = new ContentTypeMapping("text/webviewhtml", null, "*.htt", 1), 74["*.hxt"] = new ContentTypeMapping("text/html", null, "*.hxt", 1), 75["*.ical"] = new ContentTypeMapping("text/calendar", null, "*.ical", 1), 76["*.icalendar"] = new ContentTypeMapping("text/calendar", null, "*.icalendar", 1), 77["*.ics"] = new ContentTypeMapping("text/calendar", null, "*.ics", 1), 78["*.ifb"] = new ContentTypeMapping("text/calendar", null, "*.ifb", 1), 79["*.map"] = new ContentTypeMapping("text/plain", null, "*.map", 1), 80["*.mno"] = new ContentTypeMapping("text/xml", null, "*.mno", 1), 81["*.odc"] = new ContentTypeMapping("text/x-ms-odc", null, "*.odc", 1), 82["*.rtx"] = new ContentTypeMapping("text/richtext", null, "*.rtx", 1), 83["*.sct"] = new ContentTypeMapping("text/scriptlet", null, "*.sct", 1), 84["*.sgml"] = new ContentTypeMapping("text/sgml", null, "*.sgml", 1), 85["*.tsv"] = new ContentTypeMapping("text/tab-separated-values", null, "*.tsv", 1), 86["*.uls"] = new ContentTypeMapping("text/iuls", null, "*.uls", 1), 87["*.vbs"] = new ContentTypeMapping("text/vbscript", null, "*.vbs", 1), 88["*.vcf"] = new ContentTypeMapping("text/x-vcard", null, "*.vcf", 1), 89["*.vcs"] = new ContentTypeMapping("text/plain", null, "*.vcs", 1), 90["*.vml"] = new ContentTypeMapping("text/xml", null, "*.vml", 1), 91["*.wml"] = new ContentTypeMapping("text/vnd.wap.wml", null, "*.wml", 1), 92["*.wmls"] = new ContentTypeMapping("text/vnd.wap.wmlscript", null, "*.wmls", 1), 93["*.wsdl"] = new ContentTypeMapping("text/xml", null, "*.wsdl", 1), 94["*.xdr"] = new ContentTypeMapping("text/plain", null, "*.xdr", 1), 95["*.xsd"] = new ContentTypeMapping("text/xml", null, "*.xsd", 1), 96["*.xsf"] = new ContentTypeMapping("text/xml", null, "*.xsf", 1), 97["*.xsl"] = new ContentTypeMapping("text/xml", null, "*.xsl", 1), 98["*.xslt"] = new ContentTypeMapping("text/xml", null, "*.xslt", 1), 99["*.woff"] = new ContentTypeMapping("application/font-woff", null, "*.woff", 1), 100["*.art"] = new ContentTypeMapping("image/x-jg", null, "*.art", 1), 101["*.cmx"] = new ContentTypeMapping("image/x-cmx", null, "*.cmx", 1), 102["*.cod"] = new ContentTypeMapping("image/cis-cod", null, "*.cod", 1), 103["*.dib"] = new ContentTypeMapping("image/bmp", null, "*.dib", 1), 104["*.ico"] = new ContentTypeMapping("image/x-icon", null, "*.ico", 1), 105["*.ief"] = new ContentTypeMapping("image/ief", null, "*.ief", 1), 106["*.jfif"] = new ContentTypeMapping("image/pjpeg", null, "*.jfif", 1), 107["*.jpe"] = new ContentTypeMapping("image/jpeg", null, "*.jpe", 1), 108["*.pbm"] = new ContentTypeMapping("image/x-portable-bitmap", null, "*.pbm", 1), 109["*.pgm"] = new ContentTypeMapping("image/x-portable-graymap", null, "*.pgm", 1), 110["*.pnm"] = new ContentTypeMapping("image/x-portable-anymap", null, "*.pnm", 1), 111["*.pnz"] = new ContentTypeMapping("image/png", null, "*.pnz", 1), 112["*.ppm"] = new ContentTypeMapping("image/x-portable-pixmap", null, "*.ppm", 1), 113["*.ras"] = new ContentTypeMapping("image/x-cmu-raster", null, "*.ras", 1), 114["*.rf"] = new ContentTypeMapping("image/vnd.rn-realflash", null, "*.rf", 1), 115["*.rgb"] = new ContentTypeMapping("image/x-rgb", null, "*.rgb", 1), 116["*.svgz"] = new ContentTypeMapping("image/svg+xml", null, "*.svgz", 1), 117["*.tif"] = new ContentTypeMapping("image/tiff", null, "*.tif", 1), 118["*.tiff"] = new ContentTypeMapping("image/tiff", null, "*.tiff", 1), 119["*.wbmp"] = new ContentTypeMapping("image/vnd.wap.wbmp", null, "*.wbmp", 1), 120["*.xbm"] = new ContentTypeMapping("image/x-xbitmap", null, "*.xbm", 1), 121["*.xpm"] = new ContentTypeMapping("image/x-xpixmap", null, "*.xpm", 1), 122["*.xwd"] = new ContentTypeMapping("image/x-xwindowdump", null, "*.xwd", 1), 123["*.3g2"] = new ContentTypeMapping("video/3gpp2", null, "*.3g2", 1), 124["*.3gp2"] = new ContentTypeMapping("video/3gpp2", null, "*.3gp2", 1), 125["*.3gp"] = new ContentTypeMapping("video/3gpp", null, "*.3gp", 1), 126["*.3gpp"] = new ContentTypeMapping("video/3gpp", null, "*.3gpp", 1), 127["*.asf"] = new ContentTypeMapping("video/x-ms-asf", null, "*.asf", 1), 128["*.asr"] = new ContentTypeMapping("video/x-ms-asf", null, "*.asr", 1), 129["*.asx"] = new ContentTypeMapping("video/x-ms-asf", null, "*.asx", 1), 130["*.avi"] = new ContentTypeMapping("video/x-msvideo", null, "*.avi", 1), 131["*.dvr"] = new ContentTypeMapping("video/x-ms-dvr", null, "*.dvr", 1), 132["*.flv"] = new ContentTypeMapping("video/x-flv", null, "*.flv", 1), 133["*.IVF"] = new ContentTypeMapping("video/x-ivf", null, "*.IVF", 1), 134["*.lsf"] = new ContentTypeMapping("video/x-la-asf", null, "*.lsf", 1), 135["*.lsx"] = new ContentTypeMapping("video/x-la-asf", null, "*.lsx", 1), 136["*.m1v"] = new ContentTypeMapping("video/mpeg", null, "*.m1v", 1), 137["*.m2ts"] = new ContentTypeMapping("video/vnd.dlna.mpeg-tts", null, "*.m2ts", 1), 138["*.qt"] = new ContentTypeMapping("video/quicktime", null, "*.qt", 1), 139["*.ts"] = new ContentTypeMapping("video/vnd.dlna.mpeg-tts", null, "*.ts", 1), 140["*.tts"] = new ContentTypeMapping("video/vnd.dlna.mpeg-tts", null, "*.tts", 1), 141["*.wm"] = new ContentTypeMapping("video/x-ms-wm", null, "*.wm", 1), 142["*.wmp"] = new ContentTypeMapping("video/x-ms-wmp", null, "*.wmp", 1), 143["*.wmv"] = new ContentTypeMapping("video/x-ms-wmv", null, "*.wmv", 1), 144["*.wmx"] = new ContentTypeMapping("video/x-ms-wmx", null, "*.wmx", 1), 145["*.wtv"] = new ContentTypeMapping("video/x-ms-wtv", null, "*.wtv", 1), 146["*.wvx"] = new ContentTypeMapping("video/x-ms-wvx", null, "*.wvx", 1), 147["*.aac"] = new ContentTypeMapping("audio/aac", null, "*.aac", 1), 148["*.adt"] = new ContentTypeMapping("audio/vnd.dlna.adts", null, "*.adt", 1), 149["*.adts"] = new ContentTypeMapping("audio/vnd.dlna.adts", null, "*.adts", 1), 150["*.aif"] = new ContentTypeMapping("audio/x-aiff", null, "*.aif", 1), 151["*.aifc"] = new ContentTypeMapping("audio/aiff", null, "*.aifc", 1), 152["*.aiff"] = new ContentTypeMapping("audio/aiff", null, "*.aiff", 1), 153["*.au"] = new ContentTypeMapping("audio/basic", null, "*.au", 1), 154["*.m3u"] = new ContentTypeMapping("audio/x-mpegurl", null, "*.m3u", 1), 155["*.m4a"] = new ContentTypeMapping("audio/mp4", null, "*.m4a", 1), 156["*.mid"] = new ContentTypeMapping("audio/mid", null, "*.mid", 1), 157["*.midi"] = new ContentTypeMapping("audio/mid", null, "*.midi", 1), 158["*.mp3"] = new ContentTypeMapping("audio/mpeg", null, "*.mp3", 1), 159["*.oga"] = new ContentTypeMapping("audio/ogg", null, "*.oga", 1), 160["*.ra"] = new ContentTypeMapping("audio/x-pn-realaudio", null, "*.ra", 1), 161["*.ram"] = new ContentTypeMapping("audio/x-pn-realaudio", null, "*.ram", 1), 162["*.rmi"] = new ContentTypeMapping("audio/mid", null, "*.rmi", 1), 163["*.rpm"] = new ContentTypeMapping("audio/x-pn-realaudio-plugin", null, "*.rpm", 1), 164["*.smd"] = new ContentTypeMapping("audio/x-smd", null, "*.smd", 1), 165["*.smx"] = new ContentTypeMapping("audio/x-smd", null, "*.smx", 1), 166["*.smz"] = new ContentTypeMapping("audio/x-smd", null, "*.smz", 1), 167["*.snd"] = new ContentTypeMapping("audio/basic", null, "*.snd", 1), 168["*.spx"] = new ContentTypeMapping("audio/ogg", null, "*.spx", 1), 169["*.wav"] = new ContentTypeMapping("audio/wav", null, "*.wav", 1), 170["*.wax"] = new ContentTypeMapping("audio/x-ms-wax", null, "*.wax", 1), 171["*.wma"] = new ContentTypeMapping("audio/x-ms-wma", null, "*.wma", 1), 172["*.accdb"] = new ContentTypeMapping("application/msaccess", null, "*.accdb", 1), 173["*.accde"] = new ContentTypeMapping("application/msaccess", null, "*.accde", 1), 174["*.accdt"] = new ContentTypeMapping("application/msaccess", null, "*.accdt", 1), 175["*.acx"] = new ContentTypeMapping("application/internet-property-stream", null, "*.acx", 1), 176["*.ai"] = new ContentTypeMapping("application/postscript", null, "*.ai", 1), 177["*.application"] = new ContentTypeMapping("application/x-ms-application", null, "*.application", 1), 178["*.atom"] = new ContentTypeMapping("application/atom+xml", null, "*.atom", 1), 179["*.axs"] = new ContentTypeMapping("application/olescript", null, "*.axs", 1), 180["*.bcpio"] = new ContentTypeMapping("application/x-bcpio", null, "*.bcpio", 1), 181["*.cab"] = new ContentTypeMapping("application/vnd.ms-cab-compressed", null, "*.cab", 1), 182["*.calx"] = new ContentTypeMapping("application/vnd.ms-office.calx", null, "*.calx", 1), 183["*.cat"] = new ContentTypeMapping("application/vnd.ms-pki.seccat", null, "*.cat", 1), 184["*.cdf"] = new ContentTypeMapping("application/x-cdf", null, "*.cdf", 1), 185["*.class"] = new ContentTypeMapping("application/x-java-applet", null, "*.class", 1), 186["*.clp"] = new ContentTypeMapping("application/x-msclip", null, "*.clp", 1), 187["*.cpio"] = new ContentTypeMapping("application/x-cpio", null, "*.cpio", 1), 188["*.crd"] = new ContentTypeMapping("application/x-mscardfile", null, "*.crd", 1), 189["*.crl"] = new ContentTypeMapping("application/pkix-crl", null, "*.crl", 1), 190["*.crt"] = new ContentTypeMapping("application/x-x509-ca-cert", null, "*.crt", 1), 191["*.csh"] = new ContentTypeMapping("application/x-csh", null, "*.csh", 1), 192["*.dcr"] = new ContentTypeMapping("application/x-director", null, "*.dcr", 1), 193["*.der"] = new ContentTypeMapping("application/x-x509-ca-cert", null, "*.der", 1), 194["*.dir"] = new ContentTypeMapping("application/x-director", null, "*.dir", 1), 195["*.doc"] = new ContentTypeMapping("application/msword", null, "*.doc", 1), 196["*.docm"] = new ContentTypeMapping("application/vnd.ms-word.document.macroEnabled.12", null, "*.docm", 1), 197["*.docx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.wordprocessingml.document", null, "*.docx", 1), 198["*.dot"] = new ContentTypeMapping("application/msword", null, "*.dot", 1), 199["*.dotm"] = new ContentTypeMapping("application/vnd.ms-word.template.macroEnabled.12", null, "*.dotm", 1), 200["*.dotx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.wordprocessingml.template", null, "*.dotx", 1), 201["*.dvi"] = new ContentTypeMapping("application/x-dvi", null, "*.dvi", 1), 202["*.dwf"] = new ContentTypeMapping("drawing/x-dwf", null, "*.dwf", 1), 203["*.dxr"] = new ContentTypeMapping("application/x-director", null, "*.dxr", 1), 204["*.eml"] = new ContentTypeMapping("message/rfc822", null, "*.eml", 1), 205["*.eot"] = new ContentTypeMapping("application/vnd.ms-fontobject", null, "*.eot", 1), 206["*.eps"] = new ContentTypeMapping("application/postscript", null, "*.eps", 1), 207["*.evy"] = new ContentTypeMapping("application/envoy", null, "*.evy", 1), 208["*.exe"] = new ContentTypeMapping("application/vnd.microsoft.portable-executable", null, "*.exe", 1), 209["*.fdf"] = new ContentTypeMapping("application/vnd.fdf", null, "*.fdf", 1), 210["*.fif"] = new ContentTypeMapping("application/fractals", null, "*.fif", 1), 211["*.flr"] = new ContentTypeMapping("x-world/x-vrml", null, "*.flr", 1), 212["*.gtar"] = new ContentTypeMapping("application/x-gtar", null, "*.gtar", 1), 213["*.hdf"] = new ContentTypeMapping("application/x-hdf", null, "*.hdf", 1), 214["*.hhc"] = new ContentTypeMapping("application/x-oleobject", null, "*.hhc", 1), 215["*.hlp"] = new ContentTypeMapping("application/winhlp", null, "*.hlp", 1), 216["*.hqx"] = new ContentTypeMapping("application/mac-binhex40", null, "*.hqx", 1), 217["*.hta"] = new ContentTypeMapping("application/hta", null, "*.hta", 1), 218["*.iii"] = new ContentTypeMapping("application/x-iphone", null, "*.iii", 1), 219["*.ins"] = new ContentTypeMapping("application/x-internet-signup", null, "*.ins", 1), 220["*.isp"] = new ContentTypeMapping("application/x-internet-signup", null, "*.isp", 1), 221["*.jar"] = new ContentTypeMapping("application/java-archive", null, "*.jar", 1), 222["*.jck"] = new ContentTypeMapping("application/liquidmotion", null, "*.jck", 1), 223["*.jcz"] = new ContentTypeMapping("application/liquidmotion", null, "*.jcz", 1), 224["*.latex"] = new ContentTypeMapping("application/x-latex", null, "*.latex", 1), 225["*.lit"] = new ContentTypeMapping("application/x-ms-reader", null, "*.lit", 1), 226["*.m13"] = new ContentTypeMapping("application/x-msmediaview", null, "*.m13", 1), 227["*.m14"] = new ContentTypeMapping("application/x-msmediaview", null, "*.m14", 1), 228["*.man"] = new ContentTypeMapping("application/x-troff-man", null, "*.man", 1), 229["*.manifest"] = new ContentTypeMapping("application/x-ms-manifest", null, "*.manifest", 1), 230["*.mdb"] = new ContentTypeMapping("application/x-msaccess", null, "*.mdb", 1), 231["*.me"] = new ContentTypeMapping("application/x-troff-me", null, "*.me", 1), 232["*.mht"] = new ContentTypeMapping("message/rfc822", null, "*.mht", 1), 233["*.mhtml"] = new ContentTypeMapping("message/rfc822", null, "*.mhtml", 1), 234["*.mmf"] = new ContentTypeMapping("application/x-smaf", null, "*.mmf", 1), 235["*.mny"] = new ContentTypeMapping("application/x-msmoney", null, "*.mny", 1), 236["*.mpp"] = new ContentTypeMapping("application/vnd.ms-project", null, "*.mpp", 1), 237["*.ms"] = new ContentTypeMapping("application/x-troff-ms", null, "*.ms", 1), 238["*.mvb"] = new ContentTypeMapping("application/x-msmediaview", null, "*.mvb", 1), 239["*.mvc"] = new ContentTypeMapping("application/x-miva-compiled", null, "*.mvc", 1), 240["*.nc"] = new ContentTypeMapping("application/x-netcdf", null, "*.nc", 1), 241["*.nws"] = new ContentTypeMapping("message/rfc822", null, "*.nws", 1), 242["*.oda"] = new ContentTypeMapping("application/oda", null, "*.oda", 1), 243["*.ods"] = new ContentTypeMapping("application/oleobject", null, "*.ods", 1), 244["*.ogx"] = new ContentTypeMapping("application/ogg", null, "*.ogx", 1), 245["*.one"] = new ContentTypeMapping("application/onenote", null, "*.one", 1), 246["*.onea"] = new ContentTypeMapping("application/onenote", null, "*.onea", 1), 247["*.onetoc"] = new ContentTypeMapping("application/onenote", null, "*.onetoc", 1), 248["*.onetoc2"] = new ContentTypeMapping("application/onenote", null, "*.onetoc2", 1), 249["*.onetmp"] = new ContentTypeMapping("application/onenote", null, "*.onetmp", 1), 250["*.onepkg"] = new ContentTypeMapping("application/onenote", null, "*.onepkg", 1), 251["*.osdx"] = new ContentTypeMapping("application/opensearchdescription+xml", null, "*.osdx", 1), 252["*.p10"] = new ContentTypeMapping("application/pkcs10", null, "*.p10", 1), 253["*.p12"] = new ContentTypeMapping("application/x-pkcs12", null, "*.p12", 1), 254["*.p7b"] = new ContentTypeMapping("application/x-pkcs7-certificates", null, "*.p7b", 1), 255["*.p7c"] = new ContentTypeMapping("application/pkcs7-mime", null, "*.p7c", 1), 256["*.p7m"] = new ContentTypeMapping("application/pkcs7-mime", null, "*.p7m", 1), 257["*.p7r"] = new ContentTypeMapping("application/x-pkcs7-certreqresp", null, "*.p7r", 1), 258["*.p7s"] = new ContentTypeMapping("application/pkcs7-signature", null, "*.p7s", 1), 259["*.pdf"] = new ContentTypeMapping("application/pdf", null, "*.pdf", 1), 260["*.pfx"] = new ContentTypeMapping("application/x-pkcs12", null, "*.pfx", 1), 261["*.pko"] = new ContentTypeMapping("application/vnd.ms-pki.pko", null, "*.pko", 1), 262["*.pma"] = new ContentTypeMapping("application/x-perfmon", null, "*.pma", 1), 263["*.pmc"] = new ContentTypeMapping("application/x-perfmon", null, "*.pmc", 1), 264["*.pml"] = new ContentTypeMapping("application/x-perfmon", null, "*.pml", 1), 265["*.pmr"] = new ContentTypeMapping("application/x-perfmon", null, "*.pmr", 1), 266["*.pmw"] = new ContentTypeMapping("application/x-perfmon", null, "*.pmw", 1), 267["*.pot"] = new ContentTypeMapping("application/vnd.ms-powerpoint", null, "*.pot", 1), 268["*.potm"] = new ContentTypeMapping("application/vnd.ms-powerpoint.template.macroEnabled.12", null, "*.potm", 1), 269["*.potx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.presentationml.template", null, "*.potx", 1), 270["*.ppam"] = new ContentTypeMapping("application/vnd.ms-powerpoint.addin.macroEnabled.12", null, "*.ppam", 1), 271["*.pps"] = new ContentTypeMapping("application/vnd.ms-powerpoint", null, "*.pps", 1), 272["*.ppsm"] = new ContentTypeMapping("application/vnd.ms-powerpoint.slideshow.macroEnabled.12", null, "*.ppsm", 1), 273["*.ppsx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.presentationml.slideshow", null, "*.ppsx", 1), 274["*.ppt"] = new ContentTypeMapping("application/vnd.ms-powerpoint", null, "*.ppt", 1), 275["*.pptm"] = new ContentTypeMapping("application/vnd.ms-powerpoint.presentation.macroEnabled.12", null, "*.pptm", 1), 276["*.pptx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.presentationml.presentation", null, "*.pptx", 1), 277["*.prf"] = new ContentTypeMapping("application/pics-rules", null, "*.prf", 1), 278["*.ps"] = new ContentTypeMapping("application/postscript", null, "*.ps", 1), 279["*.pub"] = new ContentTypeMapping("application/x-mspublisher", null, "*.pub", 1), 280["*.qtl"] = new ContentTypeMapping("application/x-quicktimeplayer", null, "*.qtl", 1), 281["*.rm"] = new ContentTypeMapping("application/vnd.rn-realmedia", null, "*.rm", 1), 282["*.roff"] = new ContentTypeMapping("application/x-troff", null, "*.roff", 1), 283["*.rtf"] = new ContentTypeMapping("application/rtf", null, "*.rtf", 1), 284["*.scd"] = new ContentTypeMapping("application/x-msschedule", null, "*.scd", 1), 285["*.setpay"] = new ContentTypeMapping("application/set-payment-initiation", null, "*.setpay", 1), 286["*.setreg"] = new ContentTypeMapping("application/set-registration-initiation", null, "*.setreg", 1), 287["*.sh"] = new ContentTypeMapping("application/x-sh", null, "*.sh", 1), 288["*.shar"] = new ContentTypeMapping("application/x-shar", null, "*.shar", 1), 289["*.sit"] = new ContentTypeMapping("application/x-stuffit", null, "*.sit", 1), 290["*.sldm"] = new ContentTypeMapping("application/vnd.ms-powerpoint.slide.macroEnabled.12", null, "*.sldm", 1), 291["*.sldx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.presentationml.slide", null, "*.sldx", 1), 292["*.spc"] = new ContentTypeMapping("application/x-pkcs7-certificates", null, "*.spc", 1), 293["*.spl"] = new ContentTypeMapping("application/futuresplash", null, "*.spl", 1), 294["*.src"] = new ContentTypeMapping("application/x-wais-source", null, "*.src", 1), 295["*.ssm"] = new ContentTypeMapping("application/streamingmedia", null, "*.ssm", 1), 296["*.sst"] = new ContentTypeMapping("application/vnd.ms-pki.certstore", null, "*.sst", 1), 297["*.stl"] = new ContentTypeMapping("application/vnd.ms-pki.stl", null, "*.stl", 1), 298["*.sv4cpio"] = new ContentTypeMapping("application/x-sv4cpio", null, "*.sv4cpio", 1), 299["*.sv4crc"] = new ContentTypeMapping("application/x-sv4crc", null, "*.sv4crc", 1), 300["*.swf"] = new ContentTypeMapping("application/x-shockwave-flash", null, "*.swf", 1), 301["*.t"] = new ContentTypeMapping("application/x-troff", null, "*.t", 1), 302["*.tar"] = new ContentTypeMapping("application/x-tar", null, "*.tar", 1), 303["*.tcl"] = new ContentTypeMapping("application/x-tcl", null, "*.tcl", 1), 304["*.tex"] = new ContentTypeMapping("application/x-tex", null, "*.tex", 1), 305["*.texi"] = new ContentTypeMapping("application/x-texinfo", null, "*.texi", 1), 306["*.texinfo"] = new ContentTypeMapping("application/x-texinfo", null, "*.texinfo", 1), 307["*.tgz"] = new ContentTypeMapping("application/x-compressed", null, "*.tgz", 1), 308["*.thmx"] = new ContentTypeMapping("application/vnd.ms-officetheme", null, "*.thmx", 1), 309["*.tr"] = new ContentTypeMapping("application/x-troff", null, "*.tr", 1), 310["*.trm"] = new ContentTypeMapping("application/x-msterminal", null, "*.trm", 1), 311["*.ttc"] = new ContentTypeMapping("application/x-font-ttf", null, "*.ttc", 1), 312["*.ttf"] = new ContentTypeMapping("application/x-font-ttf", null, "*.ttf", 1), 313["*.ustar"] = new ContentTypeMapping("application/x-ustar", null, "*.ustar", 1), 314["*.vdx"] = new ContentTypeMapping("application/vnd.ms-visio.viewer", null, "*.vdx", 1), 315["*.vsd"] = new ContentTypeMapping("application/vnd.visio", null, "*.vsd", 1), 316["*.vss"] = new ContentTypeMapping("application/vnd.visio", null, "*.vss", 1), 317["*.vst"] = new ContentTypeMapping("application/vnd.visio", null, "*.vst", 1), 318["*.vsto"] = new ContentTypeMapping("application/x-ms-vsto", null, "*.vsto", 1), 319["*.vsw"] = new ContentTypeMapping("application/vnd.visio", null, "*.vsw", 1), 320["*.vsx"] = new ContentTypeMapping("application/vnd.visio", null, "*.vsx", 1), 321["*.vtx"] = new ContentTypeMapping("application/vnd.visio", null, "*.vtx", 1), 322["*.wcm"] = new ContentTypeMapping("application/vnd.ms-works", null, "*.wcm", 1), 323["*.wdb"] = new ContentTypeMapping("application/vnd.ms-works", null, "*.wdb", 1), 324["*.wks"] = new ContentTypeMapping("application/vnd.ms-works", null, "*.wks", 1), 325["*.wmd"] = new ContentTypeMapping("application/x-ms-wmd", null, "*.wmd", 1), 326["*.wmf"] = new ContentTypeMapping("application/x-msmetafile", null, "*.wmf", 1), 327["*.wmlc"] = new ContentTypeMapping("application/vnd.wap.wmlc", null, "*.wmlc", 1), 328["*.wmlsc"] = new ContentTypeMapping("application/vnd.wap.wmlscriptc", null, "*.wmlsc", 1), 329["*.wmz"] = new ContentTypeMapping("application/x-ms-wmz", null, "*.wmz", 1), 330["*.wps"] = new ContentTypeMapping("application/vnd.ms-works", null, "*.wps", 1), 331["*.wri"] = new ContentTypeMapping("application/x-mswrite", null, "*.wri", 1), 332["*.wrl"] = new ContentTypeMapping("x-world/x-vrml", null, "*.wrl", 1), 333["*.wrz"] = new ContentTypeMapping("x-world/x-vrml", null, "*.wrz", 1), 334["*.x"] = new ContentTypeMapping("application/directx", null, "*.x", 1), 335["*.xaf"] = new ContentTypeMapping("x-world/x-vrml", null, "*.xaf", 1), 336["*.xaml"] = new ContentTypeMapping("application/xaml+xml", null, "*.xaml", 1), 337["*.xap"] = new ContentTypeMapping("application/x-silverlight-app", null, "*.xap", 1), 338["*.xbap"] = new ContentTypeMapping("application/x-ms-xbap", null, "*.xbap", 1), 339["*.xht"] = new ContentTypeMapping("application/xhtml+xml", null, "*.xht", 1), 340["*.xhtml"] = new ContentTypeMapping("application/xhtml+xml", null, "*.xhtml", 1), 341["*.xla"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xla", 1), 342["*.xlam"] = new ContentTypeMapping("application/vnd.ms-excel.addin.macroEnabled.12", null, "*.xlam", 1), 343["*.xlc"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xlc", 1), 344["*.xlm"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xlm", 1), 345["*.xls"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xls", 1), 346["*.xlsb"] = new ContentTypeMapping("application/vnd.ms-excel.sheet.binary.macroEnabled.12", null, "*.xlsb", 1), 347["*.xlsm"] = new ContentTypeMapping("application/vnd.ms-excel.sheet.macroEnabled.12", null, "*.xlsm", 1), 348["*.xlsx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", null, "*.xlsx", 1), 349["*.xlt"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xlt", 1), 350["*.xltm"] = new ContentTypeMapping("application/vnd.ms-excel.template.macroEnabled.12", null, "*.xltm", 1), 351["*.xltx"] = new ContentTypeMapping("application/vnd.openxmlformats-officedocument.spreadsheetml.template", null, "*.xltx", 1), 352["*.xlw"] = new ContentTypeMapping("application/vnd.ms-excel", null, "*.xlw", 1), 353["*.xof"] = new ContentTypeMapping("x-world/x-vrml", null, "*.xof", 1), 354["*.xps"] = new ContentTypeMapping("application/vnd.ms-xpsdocument", null, "*.xps", 1), 355["*.z"] = new ContentTypeMapping("application/x-compress", null, "*.z", 1), 356["*.zip"] = new ContentTypeMapping("application/x-zip-compressed", null, "*.zip", 1), 357["*.aaf"] = new ContentTypeMapping("application/octet-stream", null, "*.aaf", 1), 358["*.aca"] = new ContentTypeMapping("application/octet-stream", null, "*.aca", 1), 359["*.afm"] = new ContentTypeMapping("application/octet-stream", null, "*.afm", 1), 360["*.asd"] = new ContentTypeMapping("application/octet-stream", null, "*.asd", 1), 361["*.asi"] = new ContentTypeMapping("application/octet-stream", null, "*.asi", 1), 362["*.bin"] = new ContentTypeMapping("application/octet-stream", null, "*.bin", 1), 363["*.chm"] = new ContentTypeMapping("application/octet-stream", null, "*.chm", 1), 364["*.cur"] = new ContentTypeMapping("application/octet-stream", null, "*.cur", 1), 365["*.deploy"] = new ContentTypeMapping("application/octet-stream", null, "*.deploy", 1), 366["*.dsp"] = new ContentTypeMapping("application/octet-stream", null, "*.dsp", 1), 367["*.dwp"] = new ContentTypeMapping("application/octet-stream", null, "*.dwp", 1), 368["*.emz"] = new ContentTypeMapping("application/octet-stream", null, "*.emz", 1), 369["*.fla"] = new ContentTypeMapping("application/octet-stream", null, "*.fla", 1), 370["*.hhk"] = new ContentTypeMapping("application/octet-stream", null, "*.hhk", 1), 371["*.hhp"] = new ContentTypeMapping("application/octet-stream", null, "*.hhp", 1), 372["*.inf"] = new ContentTypeMapping("application/octet-stream", null, "*.inf", 1), 373["*.java"] = new ContentTypeMapping("application/octet-stream", null, "*.java", 1), 374["*.jpb"] = new ContentTypeMapping("application/octet-stream", null, "*.jpb", 1), 375["*.lpk"] = new ContentTypeMapping("application/octet-stream", null, "*.lpk", 1), 376["*.lzh"] = new ContentTypeMapping("application/octet-stream", null, "*.lzh", 1), 377["*.mdp"] = new ContentTypeMapping("application/octet-stream", null, "*.mdp", 1), 378["*.mix"] = new ContentTypeMapping("application/octet-stream", null, "*.mix", 1), 379["*.msi"] = new ContentTypeMapping("application/octet-stream", null, "*.msi", 1), 380["*.mso"] = new ContentTypeMapping("application/octet-stream", null, "*.mso", 1), 381["*.ocx"] = new ContentTypeMapping("application/octet-stream", null, "*.ocx", 1), 382["*.pcx"] = new ContentTypeMapping("application/octet-stream", null, "*.pcx", 1), 383["*.pcz"] = new ContentTypeMapping("application/octet-stream", null, "*.pcz", 1), 384["*.pfb"] = new ContentTypeMapping("application/octet-stream", null, "*.pfb", 1), 385["*.pfm"] = new ContentTypeMapping("application/octet-stream", null, "*.pfm", 1), 386["*.prm"] = new ContentTypeMapping("application/octet-stream", null, "*.prm", 1), 387["*.prx"] = new ContentTypeMapping("application/octet-stream", null, "*.prx", 1), 388["*.psd"] = new ContentTypeMapping("application/octet-stream", null, "*.psd", 1), 389["*.psm"] = new ContentTypeMapping("application/octet-stream", null, "*.psm", 1), 390["*.psp"] = new ContentTypeMapping("application/octet-stream", null, "*.psp", 1), 391["*.qxd"] = new ContentTypeMapping("application/octet-stream", null, "*.qxd", 1), 392["*.rar"] = new ContentTypeMapping("application/octet-stream", null, "*.rar", 1), 393["*.sea"] = new ContentTypeMapping("application/octet-stream", null, "*.sea", 1), 394["*.smi"] = new ContentTypeMapping("application/octet-stream", null, "*.smi", 1), 395["*.snp"] = new ContentTypeMapping("application/octet-stream", null, "*.snp", 1), 396["*.thn"] = new ContentTypeMapping("application/octet-stream", null, "*.thn", 1), 397["*.toc"] = new ContentTypeMapping("application/octet-stream", null, "*.toc", 1), 398["*.u32"] = new ContentTypeMapping("application/octet-stream", null, "*.u32", 1), 399["*.xsn"] = new ContentTypeMapping("application/octet-stream", null, "*.xsn", 1), 400["*.xtp"] = new ContentTypeMapping("application/octet-stream", null, "*.xtp", 1),
Microsoft.NET.Sdk.StaticWebAssets.Tests (3)
StaticWebAssets\ContentTypeProviderTests.cs (3)
121var customMapping = new ContentTypeMapping("text/html", "no-store, must-revalidate, no-cache", "*.html", 2); 138var customMapping = new ContentTypeMapping("text/html", "no-store, must-revalidate, no-cache", "*.html", 2); 155var customMapping = new ContentTypeMapping("text/javascript", "max-age=3600", "*.js", 3);
25 references to ContentTypeMapping
Microsoft.NET.Sdk.StaticWebAssets.Tasks (12)
Data\ContentTypeMapping.cs (1)
21internal static ContentTypeMapping FromTaskItem(ITaskItem contentTypeMappings) => new(
Data\ContentTypeProvider.cs (7)
13private static readonly Dictionary<string, ContentTypeMapping> _builtInMappings = 405private readonly Dictionary<string, ContentTypeMapping> _customMappings; 407public ContentTypeProvider(ContentTypeMapping[] customMappings) 410foreach (var mapping in customMappings) 424internal ContentTypeMapping ResolveContentTypeMapping(StaticWebAssetGlobMatcher.MatchContext context, TaskLoggingHelper log) 437if (TryGetMapping(context, log, relativePath, out var mapping)) 454private bool TryGetMapping(StaticWebAssetGlobMatcher.MatchContext context, TaskLoggingHelper log, ReadOnlySpan<char> relativePath, out ContentTypeMapping mapping)
DefineStaticWebAssetEndpoints.cs (4)
49private ContentTypeMapping[] CreateAdditionalContentTypeMappings() 55var result = new ContentTypeMapping[ContentTypeMappings.Length]; 59result[i] = ContentTypeMapping.FromTaskItem(contentTypeMapping); 207var mapping = contentTypeProvider.ResolveContentTypeMapping(matchContext, log);
Microsoft.NET.Sdk.StaticWebAssets.Tests (13)
StaticWebAssets\ContentTypeProviderTests.cs (13)
22var contentType = provider.ResolveContentTypeMapping(CreateContext("Fake-License.txt"), _log); 35var contentType = provider.ResolveContentTypeMapping(CreateContext("Components/Pages/Counter.razor.js"), _log); 57var contentType = provider.ResolveContentTypeMapping(CreateContext("wwwroot/exampleJsInterop.js.gz"), _log); 69var contentType = provider.ResolveContentTypeMapping(CreateContext("_content/RazorPackageLibraryDirectDependency/RazorPackageLibraryDirectDependency#[.{fingerprint}].bundle.scp.css.gz"), _log); 81var contentType = provider.ResolveContentTypeMapping(CreateContext("something.unknown"), _log); 96var contentType = provider.ResolveContentTypeMapping(CreateContext(path), _log); 111var contentType = provider.ResolveContentTypeMapping(CreateContext(path), _log); 121var customMapping = new ContentTypeMapping("text/html", "no-store, must-revalidate, no-cache", "*.html", 2); 125var contentType = provider.ResolveContentTypeMapping(CreateContext("index.html"), _log); 138var customMapping = new ContentTypeMapping("text/html", "no-store, must-revalidate, no-cache", "*.html", 2); 142var contentType = provider.ResolveContentTypeMapping(CreateContext("index.html.gz"), _log); 155var customMapping = new ContentTypeMapping("text/javascript", "max-age=3600", "*.js", 3); 159var contentType = provider.ResolveContentTypeMapping(CreateContext("app.js"), _log);