XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.VSIX

【VSIX】XFEExtension的Visual Studio扩展

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.VSIX

新增 opp.snippet 代码片段并升级 VSIX 版本至 0.3.5

新增 opp.snippet 代码片段,支持生成带有 [ObservableProperty] 特性的可观察属性,便于使用 CommunityToolkit.Mvvm。已将该片段文件包含进 VSIX 包,并将扩展版本号从 0.3.4 升级到 0.3.5。

0fe6608
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

3 个文件 +47 -1
Added XFEExtension.NetCore.VSIX/XFEExtension CodeSnippets/XFEExtension CSharp/opp.snippet +42 -0
@@ -0,0 +1,42 @@
1 <?xml version="1.0" encoding="utf-8"?>
2 <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3 <CodeSnippet Format="1.0.0">
4 <Header>
5 <Title>opp</Title>
6 <Shortcut>opp</Shortcut>
7 <Description>Observable Partial Property Snippet</Description>
8 <Author>XFEstudio</Author>
9 <SnippetTypes>
10 <SnippetType>Expansion</SnippetType>
11 </SnippetTypes>
12 </Header>
13 <Snippet>
14 <References>
15 <Reference>
16 <Assembly>CommunityToolkit.Mvvm</Assembly>
17 </Reference>
18 </References>
19 <Imports>
20 <Import>
21 <Namespace>CommunityToolkit.Mvvm.ComponentModel</Namespace>
22 </Import>
23 </Imports>
24 <Declarations>
25 <Literal>
26 <ID>type</ID>
27 <ToolTip>Property Type</ToolTip>
28 <Default>int</Default>
29 </Literal>
30 <Literal>
31 <ID>name</ID>
32 <ToolTip>Property Name (start with upper letter)</ToolTip>
33 <Default>MyProperty</Default>
34 </Literal>
35 </Declarations>
36 <Code Language="csharp">
37 <![CDATA[[ObservableProperty]
38 public partial $type$ $name$ { get; set; }$end$]]>
39 </Code>
40 </Snippet>
41 </CodeSnippet>
42 </CodeSnippets>
Modified XFEExtension.NetCore.VSIX/XFEExtension.NetCore.VSIX.csproj +4 -0
@@ -128,6 +128,10 @@
128 128 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
129 129 <IncludeInVSIX>true</IncludeInVSIX>
130 130 </Content>
131 <Content Include="XFEExtension CodeSnippets\XFEExtension CSharp\opp.snippet">
132 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
133 <IncludeInVSIX>true</IncludeInVSIX>
134 </Content>
131 135 </ItemGroup>
132 136 <ItemGroup>
133 137 <Reference Include="PresentationCore" />
Modified XFEExtension.NetCore.VSIX/source.extension.vsixmanifest +1 -1
@@ -1,7 +1,7 @@
1 1 <?xml version="1.0" encoding="utf-8"?>
2 2 <PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
3 3 <Metadata>
4 <Identity Id="XFEExtension.NetCore.VSIX.26e90afd-9260-4229-819a-61538e0198f7" Version="0.3.4" Language="zh-CN" Publisher="XFEstudio" />
4 <Identity Id="XFEExtension.NetCore.VSIX.26e90afd-9260-4229-819a-61538e0198f7" Version="0.3.5" Language="zh-CN" Publisher="XFEstudio" />
5 5 <DisplayName>XFEExtension.NetCore.VSIX</DisplayName>
6 6 <Description xml:space="preserve">A Extension VSIX package based on the XFEExtenison.NetCore Nuget Package</Description>
7 7 <License>LICENSE.txt</License>