Skip to content
Permalink
Browse files

Build nuget packages for MetriCam2[.Controls], and both Kinect cameras.

  • Loading branch information...
f00f authored and sisiplac committed Oct 2, 2019
1 parent d5ccada commit 6c44644829d42be9d0efe490ca707c5e6235cb1a
@@ -2,16 +2,18 @@
<PropertyGroup>
<RootNamespace>MetriCam2.Cameras</RootNamespace>
<AssemblyName>MetriCam2.Cameras.Kinect2</AssemblyName>
<Description>Wrapper for Kinect2 camera</Description>
<Product>MetriCam2: Microsoft Kinect2 wrapper</Product>
<Description>Wrapper for Microsoft Kinect for Windows v2 camera</Description>
<Product>MetriCam2: Microsoft Kinect for Windows v2 wrapper</Product>
<TargetFrameworks>net472;net45</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Kinect">
<HintPath>Z:\external-libraries\Microsoft\Kinect2\v2.0_1409\Assemblies\Microsoft.Kinect.dll</HintPath>
</Reference>
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
@@ -22,6 +24,14 @@
<ItemGroup>
<EmbeddedResource Include="KinectIcon.ico" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Kinect" Version="2.0.1410.19000" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\MetriCam2\MetriCam2.csproj" />
</ItemGroup>
@@ -1,13 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>MetriCam2.Cameras</RootNamespace>
<AssemblyName>MetriCam2.Cameras.Kinect4Azure</AssemblyName>
<AssemblyName>MetriCam2.Cameras.AzureKinect</AssemblyName>
<Description>Wrapper for Microsoft Azure Kinect (K4A) cameras</Description>
<Product>MetriCam2: Microsoft Azure Kinect wrapper</Product>
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
<Platforms>x64</Platforms>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
@@ -18,6 +25,11 @@
<ItemGroup>
<EmbeddedResource Include="MSIcon.ico" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Kinect.Sensor" Version="1.2.0" />
</ItemGroup>

This file was deleted.

@@ -1,7 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;net45</TargetFrameworks>
<Description>WinForms controls for MetriCam2</Description>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
@@ -97,6 +105,7 @@
<None Include="..\.licenseheader">
<Link>.licenseheader</Link>
</None>
<None Include="..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>
<ItemGroup>
<None Remove="Resources\ConnectedOverlay.ico" />
@@ -3,6 +3,12 @@
<TargetFrameworks>net472;net45;netstandard2.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseFile>License.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\DefaultIcon.ico" />
</ItemGroup>
@@ -13,6 +19,7 @@

<ItemGroup>
<None Include="..\.licenseheader" Link=".licenseheader" />
<None Include="..\License.txt" Pack="true" PackagePath="$(PackageLicenseFile)" />
</ItemGroup>

<ItemGroup>
@@ -125,8 +125,6 @@ pipeline {
copy /Y \"BetaCameras\\OrbbecOpenNI\\MetriCam2.Orbbec.props\" \"${releaseDirectory}\"
if errorlevel 1 GOTO StepFailed
copy /Y \"BetaCameras\\Kinect4Azure\\MetriCam2.Kinect4Azure.props\" \"${releaseDirectory}\"
if errorlevel 1 GOTO StepFailed
exit /b 0
:StepFailed
@@ -139,6 +137,10 @@ pipeline {
copy \"License.txt\" \"${releaseDirectory}\"
if errorlevel 1 GOTO StepFailed
@echo Publishing nuget packages locally...
copy \"bin\\Release\\*.nupkg\" \"${releaseDirectory}\"
if errorlevel 1 GOTO StepFailed
exit /b 0
:StepFailed
@@ -166,12 +168,27 @@ pipeline {
}

stage('Tag') {
environment {
NUGET_API_KEY = credentials('nuget-api-key')
}
when {
expression {
return currentBranch == 'stable';
}
}
steps {
bat """
@echo Pushing nuget packages to nuget.org...
set DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet nuget push \"bin\\Release\\*.nupkg\" --api-key ${NUGET_API_KEY} --source https://api.nuget.org/v3/index.json --no-symbols 1
if errorlevel 1 GOTO StepFailed
exit /b 0
:StepFailed
echo The step failed
exit /b 1
"""

bat """
echo Tagging the Git Repository ...
\"Scripts\\Create Git Release Tag.bat\" v.${releaseVersion}

0 comments on commit 6c44644

Please sign in to comment.
You can’t perform that action at this time.