From 680da50cf7731aa692fd95fd5d6bee345791fbdc Mon Sep 17 00:00:00 2001
From: PTKu <61538034+PTKu@users.noreply.github.com>
Date: Tue, 3 Dec 2024 06:44:54 +0100
Subject: [PATCH] updates vulnerable depencencies, removes some warnigs from
CI/CD build
---
Directory.Packages.props | 5 +++-
NuGet.config | 20 ++++++++++++++++
cake/Program.cs | 8 +++++++
...XSharp.Presentation.Blazor.Controls.csproj | 5 +++-
.../AXSharp.Presentation.Blazor.csproj | 7 ++++--
.../AXSharp.RenderableContent.Tests.csproj | 9 ++++---
.../ComponentsExamples.csproj | 5 +++-
.../sandbox/IxBlazor.App/IxBlazor.App.csproj | 6 +++++
.../AXSharp.nuget.update.Tests.csproj | 14 ++++++-----
.../ix-integration-blazor.csproj | 3 ++-
.../ix-integration-library.csproj | 3 ++-
.../ix/.g/POCO/configuration.g.cs | 2 --
.../ix/.g/POCO/example.g.cs | 24 -------------------
.../ix/.g/POCO/measurement.g.cs | 9 -------
.../ix/.g/POCO/weatherBase.g.cs | 8 -------
.../.g/POCO/dataswapping/moster.g.cs | 4 ----
16 files changed, 69 insertions(+), 63 deletions(-)
create mode 100644 NuGet.config
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 2ea35cf5..ca8c75b0 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -31,13 +31,16 @@
+
+
+
-
+
diff --git a/NuGet.config b/NuGet.config
new file mode 100644
index 00000000..462922ec
--- /dev/null
+++ b/NuGet.config
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/cake/Program.cs b/cake/Program.cs
index 0f30fc2e..bd21b2ce 100644
--- a/cake/Program.cs
+++ b/cake/Program.cs
@@ -83,6 +83,12 @@ public sealed class ProvisionTask : FrostingTask
{
public override void Run(BuildContext context)
{
+ context.DotNetBuildSettings.MSBuildSettings.Properties.Add("NoWarn", new List()
+ { "1234;2345;8602;10012;8618;0162;8605;1416;3270;1504;8600;8618;" +
+ "CS0618;CS1591;BL0007;BL0005;CA1416;CA2200;CS0105;CS0108;CS0109;CS0162;CS0168;CS0169;CS219;CS0414;CS0436;CS0472;CS0618;CS1591;CS1998;CS8604;" +
+ "CS8601;SYSLIB0051;SYSLIB0014;CS8625;CS0219;CS8625;CS8625;CS8620;RZ2012;RZ10012;CS4014;CS8981;CS8603;CS8766;CS8619;CS0649;CS8321"
+ });
+
ProvisionProjectWideTools(context);
}
@@ -119,6 +125,7 @@ public sealed class BuildTask : FrostingTask
{
public override void Run(BuildContext context)
{
+
context.DotNetBuild(Path.Combine(context.ScrDir, "AXSharp.compiler\\src\\ixc\\AXSharp.ixc.csproj"), context.DotNetBuildSettings);
var axprojects = new List()
@@ -137,6 +144,7 @@ public override void Run(BuildContext context)
foreach (var axproject in axprojects)
{
context.DotNetRunSettings.WorkingDirectory = Path.Combine(context.ScrDir, axproject);
+
context.DotNetRun(Path.Combine(context.ScrDir, "AXSharp.compiler\\src\\ixc\\AXSharp.ixc.csproj"), context.DotNetRunSettings);
}
diff --git a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/AXSharp.Presentation.Blazor.Controls.csproj b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/AXSharp.Presentation.Blazor.Controls.csproj
index 28e99c2d..a3ed2a41 100644
--- a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/AXSharp.Presentation.Blazor.Controls.csproj
+++ b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/AXSharp.Presentation.Blazor.Controls.csproj
@@ -82,7 +82,10 @@
-
+
+
+
+
diff --git a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor/AXSharp.Presentation.Blazor.csproj b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor/AXSharp.Presentation.Blazor.csproj
index eef6f790..46acf5da 100644
--- a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor/AXSharp.Presentation.Blazor.csproj
+++ b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor/AXSharp.Presentation.Blazor.csproj
@@ -60,8 +60,11 @@
-
-
+
+
+
+
+
diff --git a/src/AXSharp.blazor/tests/sandbox/AXSharp.RenderableContent.Tests/AXSharp.RenderableContent.Tests.csproj b/src/AXSharp.blazor/tests/sandbox/AXSharp.RenderableContent.Tests/AXSharp.RenderableContent.Tests.csproj
index 7af1c768..26c5b155 100644
--- a/src/AXSharp.blazor/tests/sandbox/AXSharp.RenderableContent.Tests/AXSharp.RenderableContent.Tests.csproj
+++ b/src/AXSharp.blazor/tests/sandbox/AXSharp.RenderableContent.Tests/AXSharp.RenderableContent.Tests.csproj
@@ -7,9 +7,12 @@
-
-
-
+
+
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/AXSharp.blazor/tests/sandbox/ComponentsExamples/ComponentsExamples.csproj b/src/AXSharp.blazor/tests/sandbox/ComponentsExamples/ComponentsExamples.csproj
index fa906434..99772b48 100644
--- a/src/AXSharp.blazor/tests/sandbox/ComponentsExamples/ComponentsExamples.csproj
+++ b/src/AXSharp.blazor/tests/sandbox/ComponentsExamples/ComponentsExamples.csproj
@@ -12,7 +12,10 @@
-
+
+
+
+
diff --git a/src/AXSharp.blazor/tests/sandbox/IxBlazor.App/IxBlazor.App.csproj b/src/AXSharp.blazor/tests/sandbox/IxBlazor.App/IxBlazor.App.csproj
index 37ff149b..567c5ded 100644
--- a/src/AXSharp.blazor/tests/sandbox/IxBlazor.App/IxBlazor.App.csproj
+++ b/src/AXSharp.blazor/tests/sandbox/IxBlazor.App/IxBlazor.App.csproj
@@ -11,6 +11,12 @@
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.css.map" />
+
+
+
+
+
+
diff --git a/src/AXSharp.tools/tests/AXSharp.nuget.update.Tests/AXSharp.nuget.update.Tests.csproj b/src/AXSharp.tools/tests/AXSharp.nuget.update.Tests/AXSharp.nuget.update.Tests.csproj
index 0e402301..0d2b7839 100644
--- a/src/AXSharp.tools/tests/AXSharp.nuget.update.Tests/AXSharp.nuget.update.Tests.csproj
+++ b/src/AXSharp.tools/tests/AXSharp.nuget.update.Tests/AXSharp.nuget.update.Tests.csproj
@@ -6,16 +6,18 @@
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
+
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/sanbox/integration/ix-integration-blazor/ix-integration-blazor.csproj b/src/sanbox/integration/ix-integration-blazor/ix-integration-blazor.csproj
index ce7d4df6..498acd31 100644
--- a/src/sanbox/integration/ix-integration-blazor/ix-integration-blazor.csproj
+++ b/src/sanbox/integration/ix-integration-blazor/ix-integration-blazor.csproj
@@ -8,7 +8,8 @@
-
+
+
diff --git a/src/sanbox/integration/ix-integration-library/ix-integration-library.csproj b/src/sanbox/integration/ix-integration-library/ix-integration-library.csproj
index 7bb7a2a9..b16dacb7 100644
--- a/src/sanbox/integration/ix-integration-library/ix-integration-library.csproj
+++ b/src/sanbox/integration/ix-integration-library/ix-integration-library.csproj
@@ -13,7 +13,8 @@
-
+
+
diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/configuration.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/configuration.g.cs
index 08f96aee..4fc70f4b 100644
--- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/configuration.g.cs
+++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/configuration.g.cs
@@ -20,11 +20,9 @@ public partial class ix_integration_plcTwinController
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Weather in a tabs and grouped in group box")]
public Layouts.Tabbed.weather weather_tabbed { get; set; } = new Layouts.Tabbed.weather();
- [ReadOnce()]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Weather structure set to read once")]
public Layouts.Stacked.weather weather_readOnce { get; set; } = new Layouts.Stacked.weather();
- [ReadOnly()]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Weather structure set to read only")]
public Layouts.Stacked.weather weather_readOnly { get; set; } = new Layouts.Stacked.weather();
public example test_example { get; set; } = new example();
diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/example.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/example.g.cs
index 7811defa..ebe1de9a 100644
--- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/example.g.cs
+++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/example.g.cs
@@ -10,44 +10,20 @@ public example()
{
}
- [Container(Layout.Stack)]
public test_primitive primitives_stack { get; set; } = new test_primitive();
-
- [Container(Layout.Wrap)]
public test_primitive primitives_wrap { get; set; } = new test_primitive();
-
- [Container(Layout.Tabs)]
public test_primitive primitives_tabs { get; set; } = new test_primitive();
-
- [Container(Layout.UniformGrid)]
public test_primitive primitives_uniform { get; set; } = new test_primitive();
-
- [Container(Layout.Stack)]
- [Group(GroupLayout.GroupBox)]
public test_primitive test_groupbox { get; set; } = new test_primitive();
-
- [Container(Layout.Stack)]
- [Group(GroupLayout.Border)]
public test_primitive test_border { get; set; } = new test_primitive();
-
- [Container(Layout.Tabs)]
- [Group(GroupLayout.GroupBox)]
public groupbox testgroupbox { get; set; } = new groupbox();
public border testborder { get; set; } = new border();
public ixcomponent ixcomponent_instance { get; set; } = new ixcomponent();
public MySecondNamespace.ixcomponent ixcomponent_instance2 { get; set; } = new MySecondNamespace.ixcomponent();
public ThirdNamespace.ixcomponent ixcomponent_instance3 { get; set; } = new ThirdNamespace.ixcomponent();
-
- [Container(Layout.Stack)]
public compositeLayout compositeStack { get; set; } = new compositeLayout();
-
- [Container(Layout.Wrap)]
public compositeLayout compositeWrap { get; set; } = new compositeLayout();
-
- [Container(Layout.UniformGrid)]
public compositeLayout compositeUniform { get; set; } = new compositeLayout();
-
- [Container(Layout.Tabs)]
public compositeLayout compositeTabs { get; set; } = new compositeLayout();
}
}
\ No newline at end of file
diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs
index 3b290e92..8aab488f 100644
--- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs
+++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs
@@ -15,7 +15,6 @@ public Measurement()
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Minimum")]
public Single Min { get; set; }
- [ReadOnly()]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Measured")]
public Single Acquired { get; set; }
@@ -32,23 +31,15 @@ public Measurements()
{
}
- [Container(Layout.Stack)]
- [Group(GroupLayout.GroupBox)]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Stack panel")]
public MeasurementExample.Measurement measurement_stack { get; set; } = new MeasurementExample.Measurement();
- [Container(Layout.Wrap)]
- [Group(GroupLayout.GroupBox)]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Wrap panel")]
public MeasurementExample.Measurement measurement_wrap { get; set; } = new MeasurementExample.Measurement();
- [Container(Layout.UniformGrid)]
- [Group(GroupLayout.GroupBox)]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Grid")]
public MeasurementExample.Measurement measurement_grid { get; set; } = new MeasurementExample.Measurement();
- [Container(Layout.Tabs)]
- [Group(GroupLayout.GroupBox)]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Tabs")]
public MeasurementExample.Measurement measurement_tabs { get; set; } = new MeasurementExample.Measurement();
}
diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs
index 866acf99..39927dd2 100644
--- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs
+++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs
@@ -14,31 +14,23 @@ public weatherBase()
public Single Longitude { get; set; }
public Single Altitude { get; set; }
public string Description { get; set; } = string.Empty;
-
- [ReadOnly()]
public string LongDescription { get; set; } = string.Empty;
- [ReadOnce()]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "this has [ReadOnce()] attribute will be readon only once...")]
public Int16 StartCounter { get; set; }
- [RenderIgnore()]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore()] must not be displayed!")]
public string RenderIgnoreAllToghether { get; set; } = string.Empty;
- [RenderIgnore("Control")]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Control'')]")]
public string RenderIgnoreWhenControl { get; set; } = string.Empty;
- [RenderIgnore("Display")]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Display'')]")]
public string RenderIgnoreWhenDisplay { get; set; } = string.Empty;
- [RenderIgnore("Control", "ShadowControl")]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Control'', ''ShadowControl'')]")]
public string RenderIgnoreWhenControlAndShadow { get; set; } = string.Empty;
- [RenderIgnore("Display", "ShadowDisplay")]
[AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Display'', ''ShadowDisplay'')]")]
public string RenderIgnoreWhenDisplayAndShadow { get; set; } = string.Empty;
}
diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs
index 8fdaba4a..c80ac966 100644
--- a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs
+++ b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs
@@ -19,11 +19,7 @@ public MonsterBase()
public UInt64 Id { get; set; }
public Byte[] ArrayOfBytes { get; set; } = new Byte[4];
public MonsterData.DriveBase[] ArrayOfDrives { get; set; } = new MonsterData.DriveBase[4];
-
- [IgnoreOnPocoOperation()]
public MonsterData.DriveBase DriveBase_tobeignoredbypocooperations { get; set; } = new MonsterData.DriveBase();
-
- [IgnoreOnPocoOperation()]
public string Description_tobeignoredbypocooperations { get; set; } = string.Empty;
}