Skip to content

Commit

Permalink
build: add properties to projects
Browse files Browse the repository at this point in the history
  • Loading branch information
phmatray committed Nov 26, 2023
1 parent 8c745a3 commit 85f170f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 28 deletions.
30 changes: 30 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
<Project>

<!-- Project -->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NullableReferenceTypes>true</NullableReferenceTypes>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>

<!-- General -->
<PropertyGroup>
<Authors>Philippe Matray</Authors>
<Description>
TaLibStandard is a modern interpretation of the widely used [TA-Lib](https://ta-lib.org),
reimagined in C# 12. It is designed to be reliable, efficient, and user-friendly for developers
performing financial market analysis.
</Description>
</PropertyGroup>

<!-- NuGet Package -->
<PropertyGroup>
<PackageProjectUrl>https://github.com/phmatray/TaLibStandard</PackageProjectUrl>
<PackageLicenseExpression>GPL-3.0</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>Technical Analysis, TA-Lib, Finance, Trading, Stocks, Forex, Cryptocurrencies</PackageTags>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -36,4 +55,15 @@
</PackageReference>
</ItemGroup>

<ItemGroup>
<None
Include="..\..\icon.png"
Pack="true"
PackagePath=""/>
<None
Include="..\..\README.md"
Pack="true"
PackagePath=""/>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- General -->
<PackageId>Atypical.TechnicalAnalysis.Candles</PackageId>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DefaultDocumentationFolder>../../docs/candles</DefaultDocumentationFolder>
<DefaultDocumentationLinksOutputFile>../../docs/links</DefaultDocumentationLinksOutputFile>
<DefaultDocumentationAssemblyPageName>TechnicalAnalysis.Candles</DefaultDocumentationAssemblyPageName>
<DefaultDocumentationAssemblyPageName>Atypical.TechnicalAnalysis.Candles</DefaultDocumentationAssemblyPageName>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion src/TechnicalAnalysis.Common/TechnicalAnalysis.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- General -->
<PackageId>Atypical.TechnicalAnalysis.Common</PackageId>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DefaultDocumentationFolder>../../docs/common</DefaultDocumentationFolder>
<DefaultDocumentationLinksOutputFile>../../docs/links</DefaultDocumentationLinksOutputFile>
<DefaultDocumentationAssemblyPageName>TechnicalAnalysis.Common</DefaultDocumentationAssemblyPageName>
<DefaultDocumentationAssemblyPageName>Atypical.TechnicalAnalysis.Common</DefaultDocumentationAssemblyPageName>
</PropertyGroup>

<!-- Development dependencies -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- General -->
<PackageId>Atypical.TechnicalAnalysis.Functions</PackageId>
<!-- Documentation -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DefaultDocumentationFolder>../../docs/functions</DefaultDocumentationFolder>
<DefaultDocumentationLinksOutputFile>../../docs/links</DefaultDocumentationLinksOutputFile>
<DefaultDocumentationAssemblyPageName>TechnicalAnalysis.Functions</DefaultDocumentationAssemblyPageName>
<DefaultDocumentationAssemblyPageName>Atypical.TechnicalAnalysis.Functions</DefaultDocumentationAssemblyPageName>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

Expand Down
26 changes: 1 addition & 25 deletions src/TechnicalAnalysis/TechnicalAnalysis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,10 @@
<!-- General -->
<IsPackable>false</IsPackable>
<PackageId>Atypical.TechnicalAnalysis</PackageId>
<Authors>Philippe Matray</Authors>
<Description>
TaLibStandard is a modern interpretation of the widely used [TA-Lib](https://ta-lib.org),
reimagined in C# 12. It is designed to be reliable, efficient, and user-friendly for developers
performing financial market analysis.
</Description>
<!-- Documentation -->
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<!-- NuGet -->
<PackageProjectUrl>https://github.com/phmatray/TaLibStandard</PackageProjectUrl>
<PackageLicenseExpression>GPL-3.0</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageIcon>icon.png</PackageIcon>

<PackageTags>Technical Analysis, TA-Lib, Finance, Trading, Stocks, Forex, Cryptocurrencies</PackageTags>

<!-- Meziantou's package validation -->
<EnablePackageValidation>true</EnablePackageValidation>
</PropertyGroup>

Expand All @@ -44,15 +31,4 @@
</PackageReference>
</ItemGroup>

<ItemGroup>
<None
Include="..\..\icon.png"
Pack="true"
PackagePath=""/>
<None
Include="..\..\README.md"
Pack="true"
PackagePath=""/>
</ItemGroup>

</Project>

0 comments on commit 85f170f

Please sign in to comment.