Skip to content

Commit

Permalink
Add .svc extension to default items
Browse files Browse the repository at this point in the history
  • Loading branch information
CZEMacLeod committed Mar 13, 2022
1 parent 30ca616 commit 3f42bb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition="'$(EnableDefaultItems)'=='true'">

<!-- EnableWebFormsDefaultItems follows EnableSystemWebDefaultItems and adds WebForms items as content - Closes #24 -->
<PropertyGroup>
<EnableWebFormsDefaultItems Condition="'$(EnableWebFormsDefaultItems)'==''">$(EnableDefaultItems)</EnableWebFormsDefaultItems>
<EnableWebFormsDefaultItems Condition="'$(EnableWebFormsDefaultItems)'==''">true</EnableWebFormsDefaultItems> <!-- If $(EnableDefaultItems) is undefined-->
</PropertyGroup>

<ItemGroup Condition="'$(EnableWebFormsDefaultItems)'=='true'">
<Content Include="Web.config" />
<_WebConfigConfigurations Include="$(Configurations)" />
<None Update="@(_WebConfigConfigurations->'Web.%(Identity).config')">
Expand Down Expand Up @@ -53,11 +60,6 @@
<DefaultItemExcludes>$(DefaultItemExcludes);**\bower_components\**;bower_components\**</DefaultItemExcludes>
</PropertyGroup>

<!-- EnableWebFormsDefaultItems follows EnableDefaultItems and adds WebForms items as content - Closes #24 -->
<PropertyGroup>
<EnableWebFormsDefaultItems Condition="'$(EnableWebFormsDefaultItems)'==''">$(EnableDefaultItems)</EnableWebFormsDefaultItems>
</PropertyGroup>

<!-- Include WebForms items as content -->
<ItemGroup Condition="'$(EnableWebFormsDefaultItems)'=='true'">
<Content Include="**\*.asax" Exclude="$(DefaultWebFormsItemExcludes)" />
Expand All @@ -66,5 +68,6 @@
<Content Include="**\*.asmx" Exclude="$(DefaultWebFormsItemExcludes)" />
<Content Include="**\*.aspx" Exclude="$(DefaultWebFormsItemExcludes)" />
<Content Include="**\*.master" Exclude="$(DefaultWebFormsItemExcludes)" />
<Content Include="**\*.svc" Exclude="$(DefaultWebFormsItemExcludes)" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<DefaultItemExcludes>$(DefaultItemExcludes);**\*.asmx;*.asmx</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);**\*.aspx;*.aspx</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);**\*.master;*.master</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);**\*.svc;*.svc</DefaultItemExcludes>
<!-- DefaultWebFormsItemExcludes prevents including build and publish outputs - Closes #25 -->
<DefaultWebFormsItemExcludes Condition="'$(DefaultWebFormsItemExcludes)'!=''">$(DefaultWebFormsItemExcludes);</DefaultWebFormsItemExcludes>
<DefaultWebFormsItemExcludes>$(DefaultWebFormsItemExcludes)$([MSBuild]::EnsureTrailingSlash($(OutputPath)))**</DefaultWebFormsItemExcludes>
Expand Down

0 comments on commit 3f42bb4

Please sign in to comment.