Visualstudio-docs: What is the default mime type for this file?

Created on 12 Jul 2019  Â·  2Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cba support-request visual-studio-windowprod vs-ide-sdtech

Most helpful comment

FWIW it appears that you need the UTF-8 BOM as well as a Newline otherwise the overlay will not work. Some tooling (such as the dotnet sln tool) will insert the UTF-8 BOM when you use it to modify solutions. However if you are missing the newline you will not get the same overlay as you would had you created this file via Visual Studio. See https://github.com/dotnet/cli/pull/8199

All 2 comments

@johnnyasantoss text/plain should work, since it is a text-based config file.

Please comment below if there are issues.

FWIW it appears that you need the UTF-8 BOM as well as a Newline otherwise the overlay will not work. Some tooling (such as the dotnet sln tool) will insert the UTF-8 BOM when you use it to modify solutions. However if you are missing the newline you will not get the same overlay as you would had you created this file via Visual Studio. See https://github.com/dotnet/cli/pull/8199

Was this page helpful?
0 / 5 - 0 ratings

Related issues

suhailmahmood picture suhailmahmood  Â·  3Comments

nitinjs picture nitinjs  Â·  3Comments

tpodolak picture tpodolak  Â·  3Comments

Crono1981 picture Crono1981  Â·  3Comments

michael-hawker picture michael-hawker  Â·  4Comments