Add automatic versioning to Connected.Common.Types.Clientfeatures/nuget_autobuild
parent
ee14cb99a0
commit
15c3cb55b9
@ -1,15 +1,45 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Connected.Common.Types</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Connected\src\Connected.Client\Connected.Client.csproj" />
|
||||
<ProjectReference Include="..\Connected.Common.Types.Model\Connected.Common.Types.Model.csproj" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>Connected.Common.Types</RootNamespace>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Title>$(AssemblyName)</Title>
|
||||
<Authors>Tom PIT ltd</Authors>
|
||||
<Copyright>2022 Tom PIT ltd</Copyright>
|
||||
<PackageProjectUrl>https://git.tompit.com/Connected/Info</PackageProjectUrl>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageTags>connected;platform;</PackageTags>
|
||||
<IncludeSymbols>True</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageOutputPath>$(OutputPath)</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Connected.Client" Version="1.0.*-*"/>
|
||||
<PackageReference Include="Connected.Common.Types.Model" Version="1.0.*-*"/>
|
||||
<PackageReference Include="Nerdbank.GitVersioning"
|
||||
Version="3.5.119"
|
||||
PrivateAssets="all"
|
||||
Condition="!Exists('packages.config')" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\..\LICENSE">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
<None Include="..\..\README.md">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyPackages" AfterTargets="Pack">
|
||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
Loading…
Reference in new issue