Skip to content

Commit

Permalink
Share package icon between src and templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Mar 15, 2024
1 parent c58ddb6 commit 2467088
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 12 additions & 0 deletions PackageIcon.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<PropertyGroup Condition="'$(Configuration)' == 'Release'" >
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'" >
<None Include="$(MSBuildThisFileDirectory)assets\$(PackageIcon)">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>
9 changes: 2 additions & 7 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<Import Project="..\Directory.Build.props" />

<Import Project="..\PackageIcon.props" />

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks Condition="'$(Configuration)'=='Release'">netstandard2.1;net5.0;net6.0;net7.0;$(TargetFrameworks)</TargetFrameworks>
Expand All @@ -24,22 +25,16 @@
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'" >
<PackageIcon>icon.png</PackageIcon>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageTags>Gremlin;Tinkerpop;CosmosDB;JanusGraph;Neptune;Graph;GraphDB;</PackageTags>
<PackageIconUrl />
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'" >
<None Include="$(MSBuildThisFileDirectory)..\assets\$(PackageIcon)">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="$(SolutionDir)LICENSE.md">
<Pack>True</Pack>
<PackagePath></PackagePath>
Expand Down
1 change: 1 addition & 0 deletions templates/ExRam.Gremlinq.Templates.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\PackageIcon.props" />

<PropertyGroup>
<!-- The package metadata. Fill in the properties marked as TODO below -->
Expand Down

0 comments on commit 2467088

Please sign in to comment.