Skip to content

Commit 844501b

Browse files
authored
Hide templates by default (but make it configurable) (#160)
1 parent c35988b commit 844501b

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/BuildAndPack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
jobs:
3131
ubuntu-latest:
3232
name: ubuntu-latest
33-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-22.04 # 24.04 can't run < net6.0
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-dotnet@v4
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ShowStronglyTypedIdTemplates>false</ShowStronglyTypedIdTemplates>
4+
</PropertyGroup>
5+
</Project>

src/StronglyTypedIds.Templates/StronglyTypedId.Templates.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<ItemGroup>
44
<AdditionalFiles Include="$(MSBuildThisFileDirectory)AdditionalFiles\**">
5-
<Visible>true</Visible>
5+
<Visible>$(ShowStronglyTypedIdTemplates)</Visible>
66
</AdditionalFiles>
77
</ItemGroup>
88
</Project>

src/StronglyTypedIds.Templates/StronglyTypedIds.Templates.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
<ItemGroup>
1212
<None Include="StronglyTypedId.Templates.targets" Pack="true" PackagePath="build" Visible="false" />
13+
<None Include="StronglyTypedId.Templates.props" Pack="true" PackagePath="build" Visible="false" />
1314
<None Include=".\*.typedid" Pack="true" PackagePath="build/AdditionalFiles" Visible="false" />
1415
</ItemGroup>
1516

0 commit comments

Comments
 (0)