mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
adaptions for nbgv
This commit is contained in:
parent
5d94d1f8d3
commit
033d42f91d
@ -18,9 +18,6 @@
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<RepositoryType>Git</RepositoryType>
|
||||
<PackageTags>capnp "Cap'n Proto" RPC serialization cerealization</PackageTags>
|
||||
<Version>1.3-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
|
||||
<FileVersion>1.3.0.0</FileVersion>
|
||||
<AssemblyVersion>1.3.0.0</AssemblyVersion>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
@ -3,9 +3,6 @@
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;netcoreapp2.1</TargetFrameworks>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
<Version>1.3.0.0</Version>
|
||||
<FileVersion>1.3.0.0</FileVersion>
|
||||
<AssemblyVersion>1.3.0.0</AssemblyVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -9,9 +9,6 @@
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
<AssemblyVersion>1.3.0.0</AssemblyVersion>
|
||||
<FileVersion>1.3.0.0</FileVersion>
|
||||
<Version>1.3-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm))</Version>
|
||||
|
||||
<NuspecFile>$(MSBuildThisFileDirectory)CapnpC.CSharp.MsBuild.Generation.nuspec</NuspecFile>
|
||||
<NuspecProperties>version=$(Version);configuration=$(Configuration)</NuspecProperties>
|
||||
|
23
appveyor.yml
23
appveyor.yml
@ -1,8 +1,3 @@
|
||||
environment:
|
||||
major: 1
|
||||
minor: 3
|
||||
patch: 0
|
||||
version: '$(major).$(minor).$(patch)+{build}'
|
||||
image: Visual Studio 2019
|
||||
# branches:
|
||||
# only:
|
||||
@ -14,21 +9,11 @@ install:
|
||||
- vcpkg integrate install
|
||||
- vcpkg install capnproto
|
||||
- cd %APPVEYOR_BUILD_FOLDER%
|
||||
- dotnet tool install -g . nbgv
|
||||
init:
|
||||
- cmd: set semver=%major%.%minor%.%patch%
|
||||
- cmd: set msasmver=%major%.%minor%.%APPVEYOR_BUILD_NUMBER%.%patch%
|
||||
- cmd: echo %semver%
|
||||
- cmd: echo %msasmver%
|
||||
# Good practise, because Windows line endings are different from Unix/Linux ones
|
||||
- cmd: nbgv cloud
|
||||
- cmd: git config --global core.autocrlf true
|
||||
dotnet_csproj:
|
||||
patch: true
|
||||
file: '**\*.csproj;**\*.props;**\*.fsproj;**\*.xml'
|
||||
version: '$(semver)'
|
||||
package_version: '$(semver)'
|
||||
assembly_version: '$(msasmver)'
|
||||
file_version: '$(msasmver)'
|
||||
informational_version: '{version}'
|
||||
before_build:
|
||||
- cmd: dotnet --version
|
||||
- cmd: msbuild -ver
|
||||
@ -43,10 +28,10 @@ before_build:
|
||||
- cmd: dotnet restore ./capnpc-csharp/capnpc-csharp.csproj --verbosity m
|
||||
build_script:
|
||||
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Debug"
|
||||
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Release"
|
||||
- cmd: msbuild ./Capnp.Net.sln /p:Configuration="Release" /p:PublicRelease=true
|
||||
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Debug"
|
||||
- cmd: msbuild ./CapnpCompatTest.sln /p:Configuration="Release"
|
||||
- ps: scripts\capnpc-csharp-pack.ps1 $env:semver
|
||||
- ps: scripts\capnpc-csharp-pack.ps1
|
||||
after_build:
|
||||
# For once the build has completed
|
||||
artifacts:
|
||||
|
@ -16,9 +16,6 @@
|
||||
<PackageProjectUrl>https://github.com/c80k/capnproto-dotnetcore</PackageProjectUrl>
|
||||
<RepositoryType>Git</RepositoryType>
|
||||
<PackageTags>capnp capnpc RPC serialization cerealization</PackageTags>
|
||||
<Version>1.3.0</Version>
|
||||
<FileVersion>1.3.0.0</FileVersion>
|
||||
<AssemblyVersion>1.3.0.0</AssemblyVersion>
|
||||
<Configurations>Debug;Release</Configurations>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -8,7 +8,7 @@ $csprojDir = "$scriptDir\..\capnpc-csharp"
|
||||
$csprojFile = "capnpc-csharp.csproj"
|
||||
$installDir = "$chocoDir\install"
|
||||
|
||||
dotnet build -c Release "$scriptDir\..\Capnp.Net.sln"
|
||||
dotnet build -c Release "$scriptDir\..\Capnp.Net.sln" /p:PublicRelease=true
|
||||
dotnet publish -c Release -r win-x86 --self-contained -o "$chocoDir\$id_win_x86\bin" "$csprojDir\$csprojFile"
|
||||
# dotnet publish -c Release -o "$chocoDir\$id\bin" "$csprojDir\$csprojFile"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "1.0-beta",
|
||||
"version": "1.3",
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/master$",
|
||||
"^refs/heads/v\\d+(?:\\.\\d+)?$"
|
||||
|
Loading…
x
Reference in New Issue
Block a user