更新时间:2023-01-26 09:22:43
奇怪的事情(它只涉及 WP8.1 Silverlight),但我已经检查过,可以添加 FileType Associations通过 xaml 编辑器:右键单击 package.appxmanifest 文件,选择 查看代码 F7.在
部分(可能就在 之后)并添加第一个 手动关联文件类型:
Strange thing (it concerns only WP8.1 Silverlight), but as I've checked, it is possible to add FileType Associations via xaml editor: right click on package.appxmanifest file, select View code F7. Find section <Extensions>
in your <Application
(probably just after </m3:VisualElements>
) and add the first FileType Association manually:
</m3:VisualElements>
<Extensions>
<Extension Category="windows.fileTypeAssociation">
<FileTypeAssociation Name=".mp3">
<DisplayName>mp3</DisplayName>
<SupportedFileTypes>
<FileType ContentType="audio/mp3">.mp3</FileType>
</SupportedFileTypes>
</FileTypeAssociation>
</Extension>
// other extensions
</Extensions>
添加第一个后,您将能够通过 GUI 添加下一个文件类型关联 - 从现在起,它将在支持的声明中可用.
Once you add the first, the next FileType Associations you will be able to add via GUI - from now it will be available in Supported Declarations.