Skip to content

Commit b1f0b43

Browse files
committed
fix template build
1 parent 7e60a97 commit b1f0b43

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

cake/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ public override void Run(BuildContext context)
127127
Path.Combine(context.ScrDir, "sanbox\\integration\\ix-integration-plc\\"),
128128
Path.Combine(context.ScrDir, "AXSharp.examples\\hello.world.console\\hello.world.console.plc"),
129129
Path.Combine(context.ScrDir, "AXSharp.connectors\\tests\\ax-test-project\\"),
130-
Path.Combine(context.ScrDir, "tests.integrations\\integrated\\src\\ax\\")
130+
Path.Combine(context.ScrDir, "tests.integrations\\integrated\\src\\ax\\"),
131+
Path.Combine(context.TemplatesDir, "working\\templates\\axsharpblazor\\ax\\")
131132
};
132133

133134

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"OutputProjectFolder":"..\\axsharpblazor.twin","UseBase":false,"NoDependencyUpdate":false,"ProjectFile":"axsharpblazor.csproj"}
1+
{"OutputProjectFolder":"..\\axsharpblazor.twin","UseBase":false,"NoDependencyUpdate":false,"IgnoreS7Pragmas":false,"ProjectFile":"axsharpblazor.csproj"}

templates/working/templates/axsharpblazor/ax/src/configuration.st

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ CONFIGURATION MyConfiguration
22
TASK Main(Interval := T#10ms, Priority := 1);
33
PROGRAM P1 WITH Main: MyProgram;
44

5-
VAR_GLOBAL
5+
VAR_GLOBAL
6+
{S7.extern=ReadWrite}
67
counters : counters;
78
END_VAR
89
END_CONFIGURATION

templates/working/templates/axsharpblazor/ax/src/counters.st

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
{S7.extern=ReadWrite}
23
CLASS Counters
34
VAR PUBLIC
45
{#ix-attr:[Container(Layout.Wrap)]}
@@ -12,6 +13,7 @@ CLASS Counters
1213
END_VAR
1314
END_CLASS
1415

16+
{S7.extern=ReadWrite}
1517
CLASS PUBLIC Counter
1618
VAR PUBLIC
1719
{#ix-set:AttributeName = "Number of revolutions"}

0 commit comments

Comments
 (0)