Add automatic versioning to Connected.Restfeatures/nuget_autobuild
parent
0fde9d5425
commit
1e17b9dcb5
@ -1,37 +1,63 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
|
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
|
||||||
</PropertyGroup>
|
<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>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
|
<PackageReference Include="Connected.Configuration" Version="1.0.*-*" />
|
||||||
|
<PackageReference Include="Connected.Interop" Version="1.0.*-*" />
|
||||||
|
<PackageReference Include="Connected.Net" Version="1.0.*-*" />
|
||||||
|
<PackageReference Include="Connected.Services" Version="1.0.*-*" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.*-*" />
|
||||||
|
<PackageReference Include="Nerdbank.GitVersioning"
|
||||||
|
Version="3.5.119"
|
||||||
|
PrivateAssets="all"
|
||||||
|
Condition="!Exists('packages.config')" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\..\Connected\src\Connected\Connected.csproj" />
|
<Compile Update="SR.Designer.cs">
|
||||||
<ProjectReference Include="..\Connected.Configuration\Connected.Configuration.csproj" />
|
<DesignTime>True</DesignTime>
|
||||||
<ProjectReference Include="..\Connected.Interop\Connected.Interop.csproj" />
|
<AutoGen>True</AutoGen>
|
||||||
<ProjectReference Include="..\Connected.Net\Connected.Net.csproj" />
|
<DependentUpon>SR.resx</DependentUpon>
|
||||||
<ProjectReference Include="..\Connected.Services\Connected.Services.csproj" />
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="SR.Designer.cs">
|
<EmbeddedResource Update="SR.resx">
|
||||||
<DesignTime>True</DesignTime>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
<AutoGen>True</AutoGen>
|
<LastGenOutput>SR.Designer.cs</LastGenOutput>
|
||||||
<DependentUpon>SR.resx</DependentUpon>
|
</EmbeddedResource>
|
||||||
</Compile>
|
</ItemGroup>
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Update="SR.resx">
|
<None Include="..\..\LICENSE">
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Pack>True</Pack>
|
||||||
<LastGenOutput>SR.Designer.cs</LastGenOutput>
|
<PackagePath>\</PackagePath>
|
||||||
</EmbeddedResource>
|
</None>
|
||||||
</ItemGroup>
|
<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>
|
</Project>
|
||||||
|
Loading…
Reference in new issue