Skip to content

Commit

Permalink
ref - Add D.B.props
Browse files Browse the repository at this point in the history
---

Type: ref
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Apr 27, 2024
1 parent c1e830c commit 226e8c2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 31 deletions.
22 changes: 22 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project>
<PropertyGroup>
<Version>1.0.0.1</Version>
<Authors>Aptivi</Authors>
<Company>Aptivi</Company>
<Copyright>Copyright (c) 2021-2024 Aptivi</Copyright>
<LangVersion>latest</LangVersion>
<DebugType>portable</DebugType>
<SignAssembly>True</SignAssembly>
<RootPath>$(MSBuildThisFileDirectory)</RootPath>
<AssemblyOriginatorKeyFile>$(RootPath)\aptivi_snk.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
</Project>
11 changes: 0 additions & 11 deletions VisualCard.ShowContacts/VisualCard.ShowContacts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>OfficialAppIcon-VisualCard.ico</ApplicationIcon>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\aptivi_snk.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,15 +14,6 @@
<ProjectReference Include="..\VisualCard\VisualCard.csproj" />
</ItemGroup>

<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Update="TestFiles\*.vcf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
4 changes: 3 additions & 1 deletion VisualCard.Tests/VisualCard.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<TargetFrameworks>net8.0;net48</TargetFrameworks>
<LangVersion>latest</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\aptivi_snk.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>$(RootPath)\aptivi_snk.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Shouldly" Version="4.2.1" />

<PackageReference Remove="Microsoft.SourceLink.GitHub" />
</ItemGroup>

<ItemGroup>
Expand Down
16 changes: 0 additions & 16 deletions VisualCard/VisualCard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<AssemblyTitle>Aptivi</AssemblyTitle>
<AssemblyDescription>vCard Parsing Library</AssemblyDescription>
<Description>A C# library that allows you to parse vCard files in different formats, such as vCard 2.1, 3.0, 4.0, and 5.0.</Description>
<Version>1.0.0.1</Version>
<Authors>Aptivi</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<DebugType>portable</DebugType>
<PackageIcon>OfficialAppIcon-VisualCard-512.png</PackageIcon>
Expand All @@ -17,14 +15,9 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Company>Aptivi</Company>
<Copyright>Copyright (c) 2021-2024 Aptivi</Copyright>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
<LangVersion>latest</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\aptivi_snk.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<ItemGroup>
Expand All @@ -46,13 +39,4 @@
<PackageReference Include="Textify.Offline" Version="1.5.0" />
</ItemGroup>

<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion tools/docgen-pack.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@echo off

REM This script builds KS documentation and packs the artifacts. Use when you have VS installed.
for /f "tokens=* USEBACKQ" %%f in (`type version`) do set ksversion=%%f
for /f "tokens=*" %%g in ('findstr "<Version>" ..\Directory.Build.props') do (set MIDVER=%%g)
for /f "tokens=1 delims=<" %%a in ("%MIDVER:~9%") do (set ksversion=%%a)

:pack
echo Packing documentation...
Expand Down
2 changes: 1 addition & 1 deletion tools/docgen-pack.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# This script builds KS and packs the artifacts. Use when you have MSBuild installed.
ksversion=$(cat version)
ksversion=$(grep "<Version>" ../Directory.Build.props | cut -d "<" -f 2 | cut -d ">" -f 2)

# Check for dependencies
zippath=`which zip`
Expand Down
1 change: 0 additions & 1 deletion tools/version

This file was deleted.

0 comments on commit 226e8c2

Please sign in to comment.