This repository has been archived by the owner on Apr 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
2,810 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Copyright (c) 2018-2023 Festo SE & Co. KG <https://www.festo.com/net/de_de/Forms/web/contact_international> | ||
Author: Michael Hoffmeister | ||
This source code is licensed under the Apache License 2.0 (see LICENSE.txt). | ||
This source code may use other Open Source software components (see LICENSE.txt). | ||
*/ | ||
using AdminShellNS.Exceptions; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace Extensions | ||
{ | ||
public static class ExtendReferenceList | ||
{ | ||
/// <summary> | ||
/// Useful, if the searched reference will have only on key (e.g. ECLASS properties) | ||
/// </summary> | ||
public static bool MatchesAnyWithExactlyOneKey(this List<IReference> reflist, IKey key, MatchMode matchMode = MatchMode.Strict) | ||
{ | ||
if (key == null || reflist == null || reflist.Count < 1) | ||
{ | ||
return false; | ||
} | ||
|
||
var found = false; | ||
foreach (var r in reflist) | ||
found = found || r.MatchesExactlyOneKey(key, matchMode); | ||
|
||
return found; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/AasxPluginAssetInterfaceDesc/AasxPluginAssetInterfaceDesc.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>net6.0-windows</TargetFramework> | ||
<OutputType>library</OutputType> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<UseWPF>true</UseWPF> | ||
|
||
<!-- force NuGet / Build to put required.dll and more to bin folder --> | ||
<!-- Drawback: puts all other *.dll as well :-( --> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Remove="Resources\logo-http.png" /> | ||
<None Remove="Resources\logo-modbus.png" /> | ||
<None Remove="Resources\logo-mqtt.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Update="AasxPluginMtpViewer.options.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Update="AasxPluginMtpViewer.plugin"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Resource Include="LICENSE.TXT" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Resources\LICENSE.TXT" /> | ||
<EmbeddedResource Include="Resources\logo-http.png" /> | ||
<EmbeddedResource Include="Resources\logo-modbus.png" /> | ||
<EmbeddedResource Include="Resources\logo-mqtt.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AasxIntegrationBaseGdi\AasxIntegrationBaseGdi.csproj" /> | ||
<ProjectReference Include="..\AasxIntegrationBaseWpf\AasxIntegrationBaseWpf.csproj" /> | ||
<ProjectReference Include="..\AasxIntegrationBase\AasxIntegrationBase.csproj" /> | ||
<ProjectReference Include="..\AasxPredefinedConcepts\AasxPredefinedConcepts.csproj" /> | ||
<ProjectReference Include="..\WpfMtpControl\WpfMtpControl.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Update="Opc.Ua.SampleClient.Config.xml"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="FluentModbus" Version="5.0.3" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.