Skip to content

Commit

Permalink
Add ProjectSchemaDefinitions for VS
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Dec 11, 2024
1 parent e37f872 commit 81eb578
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = crlf

[*.{cs,csx,xaml,cake,tt}]
[*.{cs,csx,cake,tt}]
indent_size = 4
indent_style = space

[*.{config,nuspec,resx}]
[*.{config,nuspec,resx,xaml}]
indent_size = 2
indent_style = space

Expand Down
4 changes: 0 additions & 4 deletions src/RazorBlade/RazorBlade.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<EnableDefaultRazorBladeItems Condition="'$(EnableDefaultRazorBladeItems)' == ''">true</EnableDefaultRazorBladeItems>
</PropertyGroup>

<ItemGroup>
<AvailableItemName Include="RazorBlade" />
</ItemGroup>

<ItemGroup Condition="'$(EnableDefaultItems)' == 'true' and '$(EnableDefaultRazorBladeItems)' == 'true'">
<RazorBlade Include="**/*.cshtml" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/RazorBlade/RazorBlade.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
</ItemGroup>

<ItemGroup>
<AvailableItemName Include="RazorBlade" />
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)RazorBlade.xaml" Context="File;BrowseObject" />

<CompilerVisibleProperty Include="RazorBladeEmbeddedLibrary" />
<CompilerVisibleItemMetadata Include="AdditionalFiles" MetadataName="IsRazorBlade" />
<CompilerVisibleItemMetadata Include="AdditionalFiles" MetadataName="Namespace" />
Expand Down
5 changes: 5 additions & 0 deletions src/RazorBlade/RazorBlade.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ProjectSchemaDefinitions xmlns="http://schemas.microsoft.com/build/2009/properties">
<ContentType Name="RazorBlade" DisplayName="RazorBlade template" ItemType="RazorBlade" />
<ItemType Name="RazorBlade" DisplayName="RazorBlade template" />
<FileExtension Name=".cshtml" ContentType="RazorBlade" />
</ProjectSchemaDefinitions>

0 comments on commit 81eb578

Please sign in to comment.