Skip to content

Commit

Permalink
Copy license file on publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinematics committed Sep 8, 2024
1 parent 79e4ce2 commit 626be25
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NetTally.Avalonia/NetTally.Avalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@
<ItemGroup>
<UpToDateCheckInput Remove="Views\ReorderTasks.axaml" />
</ItemGroup>

<Target Name="CopyLicense" AfterTargets="Publish">
<Copy SourceFiles="$(SolutionDir)LICENSE.txt" DestinationFolder="$(PublishDir)" />
</Target>
</Project>
10 changes: 8 additions & 2 deletions NetTally.Console/NetTally.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<ProjectReference Include="..\NetTally.Core\NetTally.Core.csproj" />
</ItemGroup>

<!--
<Target Name="CreateBuildBin" AfterTargets="Build">
<MakeDir Directories="$(TargetDir)bin" Condition="!Exists('$(TargetDir)bin')" />
</Target>
Expand All @@ -55,7 +56,7 @@
<Move SourceFiles="$(TargetDir)Nito.AsyncEx.Tasks.dll" DestinationFolder="$(TargetDir)bin/Nito.AsyncEx.Tasks/5.1.2/lib/netstandard2.0" />
<Move SourceFiles="$(TargetDir)Nito.Collections.Deque.dll" DestinationFolder="$(TargetDir)bin/Nito.Collections.Deque/1.1.1/lib/netstandard2.0" />
<Move SourceFiles="$(TargetDir)Nito.Disposables.dll" DestinationFolder="$(TargetDir)bin/Nito.Disposables/2.2.1/lib/netstandard2.1" />
<!-- <Move SourceFiles="$(TargetDir)System.Xml.XPath.XmlDocument.dll" DestinationFolder="$(TargetDir)bin/System.Xml.XPath.XmlDocument/4.3.0/lib/netstandard1.3" /> -->
//<Move SourceFiles="$(TargetDir)System.Xml.XPath.XmlDocument.dll" DestinationFolder="$(TargetDir)bin/System.Xml.XPath.XmlDocument/4.3.0/lib/netstandard1.3" />
</Target>
Expand All @@ -79,6 +80,11 @@
<Move SourceFiles="$(PublishDir)Nito.AsyncEx.Tasks.dll" DestinationFolder="$(PublishDir)bin/Nito.AsyncEx.Tasks/5.1.2/lib/netstandard2.0" />
<Move SourceFiles="$(PublishDir)Nito.Collections.Deque.dll" DestinationFolder="$(PublishDir)bin/Nito.Collections.Deque/1.1.1/lib/netstandard2.0" />
<Move SourceFiles="$(PublishDir)Nito.Disposables.dll" DestinationFolder="$(PublishDir)bin/Nito.Disposables/2.2.1/lib/netstandard2.1" />
<!-- <Move SourceFiles="$(PublishDir)System.Xml.XPath.XmlDocument.dll" DestinationFolder="$(PublishDir)bin/System.Xml.XPath.XmlDocument/4.3.0/lib/netstandard1.3" /> -->
//<Move SourceFiles="$(PublishDir)System.Xml.XPath.XmlDocument.dll" DestinationFolder="$(PublishDir)bin/System.Xml.XPath.XmlDocument/4.3.0/lib/netstandard1.3" />
</Target>
-->

<Target Name="CopyLicense" AfterTargets="Publish">
<Copy SourceFiles="$(SolutionDir)LICENSE.txt" DestinationFolder="$(PublishDir)" />
</Target>
</Project>
4 changes: 4 additions & 0 deletions NetTally/NetTally.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@
<TrimmerRootAssembly Include="System" />
<TrimmerRootAssembly Include="PresentationFramework-SystemXmlLinq" />
</ItemGroup>

<Target Name="CopyLicense" AfterTargets="Publish">
<Copy SourceFiles="$(SolutionDir)LICENSE.txt" DestinationFolder="$(PublishDir)" />
</Target>
</Project>

0 comments on commit 626be25

Please sign in to comment.