Skip to content

Commit edf2516

Browse files
tsushitsushi
authored andcommitted
Adding test.cmd for Setup
1 parent 3cf1e9c commit edf2516

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirect/ConsoleRedirect.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
<Compile Include="ServiceEventSource.cs" />
7676
</ItemGroup>
7777
<ItemGroup>
78+
<None Include="PackageRoot\Code\scripts\test.cmd" />
7879
<None Include="PackageRoot\Config\Settings.xml" />
7980
<None Include="PackageRoot\ServiceManifest.xml" />
8081
<None Include="App.config" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@echo This is a test message

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirect/PackageRoot/ServiceManifest.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<ServiceManifest Name="ConsoleRedirectPkg"
3-
Version="1.0.0"
3+
Version="1.0.1"
44
xmlns="http://schemas.microsoft.com/2011/01/fabric"
55
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
66
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
@@ -11,7 +11,13 @@
1111
</ServiceTypes>
1212

1313
<!-- Code package is your service executable. -->
14-
<CodePackage Name="Code" Version="1.0.0">
14+
<CodePackage Name="Code" Version="1.0.1">
15+
<SetupEntryPoint>
16+
<ExeHost>
17+
<Program>scripts\test.cmd</Program>
18+
<ConsoleRedirection FileRetentionCount="5" FileMaxSizeInKb="2048"/>
19+
</ExeHost>
20+
</SetupEntryPoint>
1521
<EntryPoint>
1622
<ExeHost>
1723
<Program>ConsoleRedirect.exe</Program>

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirectTestApplication/ApplicationPackageRoot/ApplicationManifest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<ApplicationManifest ApplicationTypeName="ConsoleRedirectTestApplicationType"
3-
ApplicationTypeVersion="1.0.0"
4-
xmlns="http://schemas.microsoft.com/2011/01/fabric"
5-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<ApplicationManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ApplicationTypeName="ConsoleRedirectTestApplicationType" ApplicationTypeVersion="1.0.1" xmlns="http://schemas.microsoft.com/2011/01/fabric">
73
<Parameters>
84
<Parameter Name="ConsoleRedirect_InstanceCount" DefaultValue="-1" />
95
</Parameters>
106
<!-- Import the ServiceManifest from the ServicePackage. The ServiceManifestName and ServiceManifestVersion
117
should match the Name and Version attributes of the ServiceManifest element defined in the
128
ServiceManifest.xml file. -->
139
<ServiceManifestImport>
14-
<ServiceManifestRef ServiceManifestName="ConsoleRedirectPkg" ServiceManifestVersion="1.0.0" />
10+
<ServiceManifestRef ServiceManifestName="ConsoleRedirectPkg" ServiceManifestVersion="1.0.1" />
1511
<ConfigOverrides />
1612
</ServiceManifestImport>
1713
<DefaultServices>

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirectTestApplication/ApplicationParameters/Cloud.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Application Name="fabric:/ConsoleRedirectTestApplication" xmlns="http://schemas.microsoft.com/2011/01/fabric" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/ConsoleRedirectTestApplication" xmlns="http://schemas.microsoft.com/2011/01/fabric">
33
<Parameters>
44
<Parameter Name="ConsoleRedirect_InstanceCount" Value="-1" />
55
</Parameters>

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirectTestApplication/ApplicationParameters/Local.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Application Name="fabric:/ConsoleRedirectTestApplication" xmlns="http://schemas.microsoft.com/2011/01/fabric" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2+
<Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/ConsoleRedirectTestApplication" xmlns="http://schemas.microsoft.com/2011/01/fabric">
33
<Parameters>
44
<Parameter Name="ConsoleRedirect_InstanceCount" Value="1" />
55
</Parameters>

Chapter05/ConsoleRedirectTestApplication/ConsoleRedirectTestApplication/PublishProfiles/Local.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@
88
-->
99
<ClusterConnectionParameters />
1010
<ApplicationParameterFile Path="..\ApplicationParameters\Local.xml" />
11+
<UpgradeDeployment Mode="UnmonitoredAuto" Enabled="false">
12+
<Parameters UpgradeReplicaSetCheckTimeoutSec="1" Force="True" />
13+
</UpgradeDeployment>
1114
</PublishProfile>

0 commit comments

Comments
 (0)