Skip to content

Commit b4339fb

Browse files
committed
Converted to net standard 2.0
1 parent 67d2cc2 commit b4339fb

File tree

2 files changed

+19
-56
lines changed

2 files changed

+19
-56
lines changed

Diff for: 3DconnexionDriver.csproj

+5-56
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,8 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>8.0.30703</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{9B78C331-7940-45C7-AAF9-E98270462BD4}</ProjectGuid>
9-
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>_3DconnexionDriver</RootNamespace>
12-
<AssemblyName>3DconnexionDriver</AssemblyName>
13-
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<TargetFrameworkProfile />
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
166
</PropertyGroup>
17-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<DebugType>pdbonly</DebugType>
28-
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release\</OutputPath>
30-
<DefineConstants>TRACE</DefineConstants>
31-
<ErrorReport>prompt</ErrorReport>
32-
<WarningLevel>4</WarningLevel>
33-
</PropertyGroup>
34-
<ItemGroup>
35-
<Reference Include="System" />
36-
<Reference Include="System.Core" />
37-
<Reference Include="System.Xml.Linq" />
38-
<Reference Include="System.Data.DataSetExtensions" />
39-
<Reference Include="Microsoft.CSharp" />
40-
<Reference Include="System.Data" />
41-
<Reference Include="System.Xml" />
42-
</ItemGroup>
43-
<ItemGroup>
44-
<Compile Include="DeviceChangeEventArgs.cs" />
45-
<Compile Include="MotionEventArgs.cs" />
46-
<Compile Include="Siapp.cs" />
47-
<Compile Include="_3DconnexionDevice.cs" />
48-
<Compile Include="Properties\AssemblyInfo.cs" />
49-
<Compile Include="_3DxException.cs" />
50-
</ItemGroup>
51-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
52-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
53-
Other similar extension points exist, see Microsoft.Common.targets.
54-
<Target Name="BeforeBuild">
55-
</Target>
56-
<Target Name="AfterBuild">
57-
</Target>
58-
-->
7+
598
</Project>

Diff for: JenkinsFile

+14
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,20 @@ pipeline {
5454
archiveArtifacts artifacts: 'bin/Release/3DconnexionDriver.dll'
5555
}
5656
}
57+
stage('Pack and Publish Package on Public NuGet'){
58+
when { allOf {buildingTag() ; tag pattern: "[1-9][0-9]*\\.[0-9]+\\.[0-9]+", comparator: "REGEXP"} }
59+
steps {
60+
script {
61+
// Run the NuGet Publisher Worker Job to pack and publish the artifacts (only, if this build is tagged)
62+
build job:'_worker-NuGet-Publisher', parameters: [
63+
string(name: 'WS_PATH', value: "${WORKSPACE}"),
64+
string(name: 'PRJ_FILE', value: "3DconnexionDriver.csproj" ),
65+
string(name: 'VERSION', value: "${TAG_NAME}" ),
66+
booleanParam(name: 'USE_DMXC_NUGET', value: false),
67+
[$class: 'NodeParameterValue', name: 'BUILD_NODE', labels: ["${env.NODE_NAME}"], nodeEligibility: [$class: 'AllNodeEligibility']]]
68+
}
69+
}
70+
}
5771
}
5872
post {
5973
always {

0 commit comments

Comments
 (0)