Skip to content

Commit

Permalink
Plugin version for PACTware 6 (#40)
Browse files Browse the repository at this point in the history
Added plugin version for PACTware 6
Upgraded cake build to use cake frosting
Usage of PackageReferences & editorconfig file header
  • Loading branch information
jjell committed Dec 21, 2023
1 parent f8beae0 commit 6bb1f6d
Show file tree
Hide file tree
Showing 153 changed files with 4,127 additions and 5,538 deletions.
37 changes: 34 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,34 @@ root = true
insert_final_newline = true
indent_style = space
indent_size = 4
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_namespace_match_folder = true:suggestion

[project.json]
indent_size = 2

# C# files
[*.cs]

file_header_template = Copyright (c) 2019-2023 wetcon gmbh. All rights reserved.\n\nWetcon provides this source code under a dual license model \ndesigned to meet the development and distribution needs of both \ncommercial distributors (such as OEMs, ISVs and VARs) and open \nsource projects.\n\nFor open source projects the source code in this file is covered \nunder GPL V2. \nSee https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html\n\nOEMs (Original Equipment Manufacturers), ISVs (Independent Software \nVendors), VARs (Value Added Resellers) and other distributors that \ncombine and distribute commercially licensed software with this \nsource code and do not wish to distribute the source code for the \ncommercially licensed software under version 2 of the GNU General \nPublic License (the "GPL") must enter into a commercial license \nagreement with wetcon.\n\nThis source code is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY, without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# New line preferences
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
Expand Down Expand Up @@ -50,7 +72,7 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
# name all constant fields using PascalCase
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style

dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
Expand All @@ -60,7 +82,7 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# static fields should have s_ prefix
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style

dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static
Expand All @@ -71,7 +93,7 @@ dotnet_naming_style.static_prefix_style.capitalization = camel_case
# internal and private fields should be _camelCase
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style

dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
Expand Down Expand Up @@ -135,6 +157,15 @@ csharp_space_between_square_brackets = false
# Xml project files
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
indent_size = 2
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent

# Xml build files
[*.builds]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bld/

# Tools directory
/tools
/build/tools

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand Down Expand Up @@ -326,4 +327,4 @@ ASALocalRun/
*.binlog

# Auto-Generated Solution Information
SolutionInfo.cs
SolutionInfo.cs
31 changes: 22 additions & 9 deletions .vsts-ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
resources:
- repo: self
queue:
name: Hosted VS2017
demands: DotNetFramework
pool:
vmImage: 'windows-2019'

steps:
- task: NuGetCommand@2
inputs:
vstsFeed: '73b462b3-f7d1-4d50-afc6-4c357fefba75'
# - task: NuGetCommand@2
# inputs:
# vstsFeed: '73b462b3-f7d1-4d50-afc6-4c357fefba75'

- task: DownloadSecureFile@1
inputs:
secureFile: wetcon_codesign_July_2021.pfx

- powershell: |
$env:SignCertPath=$env:DOWNLOADSECUREFILE_SECUREFILEPATH
./build.ps1 --Target Build --Sign
./build.PW5.ps1 --Target Build --Sign
displayName: Build with cake
env:
SignCertPassword: $(SignCertPassword)
SignCertTimeStampUri: $(SignCertTimeStampUri)

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'artifacts/Wetcon.PactwarePlugin.OpcUaServer.Setup/PW5'
ArtifactName: SetupPW5
publishLocation: Container

- powershell: |
$env:SignCertPath=$env:DOWNLOADSECUREFILE_SECUREFILEPATH
./build.PW6.ps1 --Target Build --Sign
displayName: Build with cake
env:
SignCertPassword: $(SignCertPassword)
SignCertTimeStampUri: $(SignCertTimeStampUri)

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: 'artifacts/Wetcon.PactwarePlugin.OpcUaServer.Setup'
ArtifactName: Setup
PathtoPublish: 'artifacts/Wetcon.PactwarePlugin.OpcUaServer.Setup/PW6'
ArtifactName: SetupPW6
publishLocation: Container

47 changes: 47 additions & 0 deletions Build.PW5.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW5", "src\Wetcon.PactwarePlugin.OpcUaServer.Plugin\Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW5.csproj", "{884780DC-0864-40CE-AD60-D7C2EE426DA0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW5.Tests", "tests\Wetcon.PactwarePlugin.OpcUaServer.Plugin.Tests\Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW5.Tests.csproj", "{C985CAE0-1878-47B9-A9A1-C29D04362678}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{6494E4CF-9644-457A-8241-2F3B510B899D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build.PW5", "build\Build.PW5.csproj", "{C7CFDABD-2F2A-43BC-B7ED-E6E646186D61}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.OpcUaClient.Base", "src\Wetcon.OpcUaClient.Base\Wetcon.OpcUaClient.Base.csproj", "{430EA390-C214-4870-8F38-A298EE389898}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|Any CPU.ActiveCfg = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|Any CPU.Build.0 = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|Any CPU.ActiveCfg = Release|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|Any CPU.Build.0 = Release|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|Any CPU.ActiveCfg = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|Any CPU.Build.0 = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|Any CPU.ActiveCfg = Release|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|Any CPU.Build.0 = Release|x86
{C7CFDABD-2F2A-43BC-B7ED-E6E646186D61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C7CFDABD-2F2A-43BC-B7ED-E6E646186D61}.Release|Any CPU.ActiveCfg = Release|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Debug|Any CPU.Build.0 = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|Any CPU.ActiveCfg = Release|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C985CAE0-1878-47B9-A9A1-C29D04362678} = {6494E4CF-9644-457A-8241-2F3B510B899D}
{430EA390-C214-4870-8F38-A298EE389898} = {6494E4CF-9644-457A-8241-2F3B510B899D}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {40D688D0-D99C-4FD6-8289-0C1A91E02B0A}
EndGlobalSection
EndGlobal
65 changes: 65 additions & 0 deletions Build.PW6.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34330.188
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{6494E4CF-9644-457A-8241-2F3B510B899D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.OpcUaClient.Base", "src\Wetcon.OpcUaClient.Base\Wetcon.OpcUaClient.Base.csproj", "{430EA390-C214-4870-8F38-A298EE389898}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW6.Tests", "tests\Wetcon.PactwarePlugin.OpcUaServer.Plugin.Tests\Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW6.Tests.csproj", "{C985CAE0-1878-47B9-A9A1-C29D04362678}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Build.PW6", "build\Build.PW6.csproj", "{EF71B005-7033-4973-80F9-348F3CCBEACA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW6", "src\Wetcon.PactwarePlugin.OpcUaServer.Plugin\Wetcon.PactwarePlugin.OpcUaServer.Plugin.PW6.csproj", "{884780DC-0864-40CE-AD60-D7C2EE426DA0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{430EA390-C214-4870-8F38-A298EE389898}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Debug|Any CPU.Build.0 = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Debug|x86.ActiveCfg = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Debug|x86.Build.0 = Debug|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|Any CPU.ActiveCfg = Release|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|Any CPU.Build.0 = Release|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|x86.ActiveCfg = Release|Any CPU
{430EA390-C214-4870-8F38-A298EE389898}.Release|x86.Build.0 = Release|Any CPU
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|Any CPU.ActiveCfg = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|Any CPU.Build.0 = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|x86.ActiveCfg = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Debug|x86.Build.0 = Debug|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|Any CPU.ActiveCfg = Release|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|Any CPU.Build.0 = Release|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|x86.ActiveCfg = Release|x86
{C985CAE0-1878-47B9-A9A1-C29D04362678}.Release|x86.Build.0 = Release|x86
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Debug|x86.ActiveCfg = Debug|Any CPU
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Debug|x86.Build.0 = Debug|Any CPU
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Release|x86.ActiveCfg = Release|Any CPU
{EF71B005-7033-4973-80F9-348F3CCBEACA}.Release|x86.Build.0 = Release|Any CPU
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|Any CPU.ActiveCfg = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|Any CPU.Build.0 = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|x86.ActiveCfg = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Debug|x86.Build.0 = Debug|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|Any CPU.ActiveCfg = Release|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|Any CPU.Build.0 = Release|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|x86.ActiveCfg = Release|x86
{884780DC-0864-40CE-AD60-D7C2EE426DA0}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{430EA390-C214-4870-8F38-A298EE389898} = {6494E4CF-9644-457A-8241-2F3B510B899D}
{C985CAE0-1878-47B9-A9A1-C29D04362678} = {6494E4CF-9644-457A-8241-2F3B510B899D}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {40D688D0-D99C-4FD6-8289-0C1A91E02B0A}
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wetcon OPC UA Server PACTware Plugin
Copyright (c) 2019 wetcon gmbh. All rights reserved.
Copyright (c) 2019-2023 wetcon gmbh. All rights reserved.

Wetcon provides its OPC UA Server PACTware Plugin under a dual license model designed to meet the development and distribution needs of both commercial distributors (such as OEMs, ISVs and VARs) and open source projects.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Wetcon OPC UA for PACTware

This repository contains
* the [OPC UA Server PACTware Plugin](https://github.com/wetcon/OPCUA4PACTware/tree/master/src/Wetcon.PactwarePlugin.OpcUaServer.Plugin) for [PACTware 5.0](https://pactware.com/) which implements an OPC UA server to provide DI compatible access to Device DTMs
* the [OPC UA Server PACTware Plugin](https://github.com/wetcon/OPCUA4PACTware/tree/master/src/Wetcon.PactwarePlugin.OpcUaServer.Plugin) for [PACTware 5.0 and 6.0](https://pactware.com/) which implements an OPC UA server to provide DI compatible access to Device DTMs
* a [sample console application](https://github.com/wetcon/OPCUA4PACTware/tree/master/src/Wetcon.OpcUaClient.2AzureIOT) that demonstrates how to read device parameters from the OPC UA Server and publish them to [Azure IoT Central](https://azure.microsoft.com/en-us/services/iot-central/).
* a [sample console application](https://github.com/wetcon/OPCUA4PACTware/tree/master/src/Wetcon.OpcUaClient.2AWSIOT) that demonstrates how to read device parameters from the OPC UA Server and publish them to [AWS IoT](https://aws.amazon.com/iot/).

Expand Down
Loading

0 comments on commit 6bb1f6d

Please sign in to comment.