-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate-wp81-project.bat
More file actions
193 lines (162 loc) · 4.84 KB
/
validate-wp81-project.bat
File metadata and controls
193 lines (162 loc) · 4.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
@echo off
REM CLRNet WP8.1 Sample App - Complete Validation Script
echo =========================================================
echo CLRNet Windows Phone 8.1 Sample App - Final Validation
echo =========================================================
cd /d "%~dp0\examples\WP81Integration"
echo Current directory: %CD%
echo.
REM Clean any previous build artifacts
echo Cleaning previous build artifacts...
if exist "bin" rmdir /s /q "bin" 2>nul
if exist "obj" rmdir /s /q "obj" 2>nul
echo ✓ Build artifacts cleaned
echo.
echo Validating project structure...
REM Validate core project files
set "VALIDATION_PASSED=1"
if not exist "CLRNetSampleApp.csproj" (
echo ❌ Missing: CLRNetSampleApp.csproj
set "VALIDATION_PASSED="
) else (
echo ✓ CLRNetSampleApp.csproj found
)
if not exist "Package.appxmanifest" (
echo ❌ Missing: Package.appxmanifest
set "VALIDATION_PASSED="
) else (
echo ✓ Package.appxmanifest found
)
if not exist "App.xaml" (
echo ❌ Missing: App.xaml
set "VALIDATION_PASSED="
) else (
echo ✓ App.xaml found
)
if not exist "App.xaml.cs" (
echo ❌ Missing: App.xaml.cs
set "VALIDATION_PASSED="
) else (
echo ✓ App.xaml.cs found
)
if not exist "MainPage.xaml" (
echo ❌ Missing: MainPage.xaml
set "VALIDATION_PASSED="
) else (
echo ✓ MainPage.xaml found
)
if not exist "MainPage.xaml.cs" (
echo ❌ Missing: MainPage.xaml.cs
set "VALIDATION_PASSED="
) else (
echo ✓ MainPage.xaml.cs found
)
REM Validate CLRNet runtime files
echo.
echo Validating CLRNet runtime files...
if not exist "CLRNet\CLRNetCore.dll" (
echo ❌ Missing: CLRNet\CLRNetCore.dll
set "VALIDATION_PASSED="
) else (
echo ✓ CLRNet\CLRNetCore.dll found
)
if not exist "CLRNet\CLRNetInterop.dll" (
echo ❌ Missing: CLRNet\CLRNetInterop.dll
set "VALIDATION_PASSED="
) else (
echo ✓ CLRNet\CLRNetInterop.dll found
)
if not exist "CLRNet\CLRNetSystem.dll" (
echo ❌ Missing: CLRNet\CLRNetSystem.dll
set "VALIDATION_PASSED="
) else (
echo ✓ CLRNet\CLRNetSystem.dll found
)
if not exist "CLRNet\CLRNetHost.exe" (
echo ❌ Missing: CLRNet\CLRNetHost.exe
set "VALIDATION_PASSED="
) else (
echo ✓ CLRNet\CLRNetHost.exe found
)
if not exist "SamplePlugin.dll" (
echo ❌ Missing: SamplePlugin.dll
set "VALIDATION_PASSED="
) else (
echo ✓ SamplePlugin.dll found
)
REM Validate asset files
echo.
echo Validating asset files...
if not exist "Assets\Logo.png" (
echo ❌ Missing: Assets\Logo.png
set "VALIDATION_PASSED="
) else (
echo ✓ Assets\Logo.png found
)
if not exist "Assets\SmallLogo.png" (
echo ❌ Missing: Assets\SmallLogo.png
set "VALIDATION_PASSED="
) else (
echo ✓ Assets\SmallLogo.png found
)
if not exist "Assets\SplashScreen.png" (
echo ❌ Missing: Assets\SplashScreen.png
set "VALIDATION_PASSED="
) else (
echo ✓ Assets\SplashScreen.png found
)
if not exist "Properties\AssemblyInfo.cs" (
echo ❌ Missing: Properties\AssemblyInfo.cs
set "VALIDATION_PASSED="
) else (
echo ✓ Properties\AssemblyInfo.cs found
)
if not exist "Properties\Default.rd.xml" (
echo ❌ Missing: Properties\Default.rd.xml
set "VALIDATION_PASSED="
) else (
echo ✓ Properties\Default.rd.xml found
)
echo.
echo Validating manifest content...
REM Check for problematic manifest elements
findstr /C:"Extension" Package.appxmanifest >nul 2>&1
if not errorlevel 1 (
echo ⚠️ Warning: Manifest contains Extension elements (may cause validation errors)
)
findstr /C:"InProcessServer" Package.appxmanifest >nul 2>&1
if not errorlevel 1 (
echo ⚠️ Warning: Manifest contains InProcessServer elements (not supported in WP8.1)
)
findstr /C:"PhoneCapability" Package.appxmanifest >nul 2>&1
if not errorlevel 1 (
echo ⚠️ Warning: Manifest contains PhoneCapability elements (may cause validation errors)
)
findstr /C:"DeviceCapability" Package.appxmanifest >nul 2>&1
if not errorlevel 1 (
echo ⚠️ Warning: Manifest contains DeviceCapability elements (check for proper schema)
) else (
echo ✓ No problematic DeviceCapability elements found
)
echo.
if defined VALIDATION_PASSED (
echo ✅ PROJECT VALIDATION PASSED!
echo.
echo All required files are present and the project structure is correct.
echo The CLRNet Windows Phone 8.1 Sample App is ready for compilation.
echo.
echo Next steps:
echo 1. Open CLRNetSampleApp.csproj in Visual Studio 2013
echo 2. Build for Windows Phone 8.1 ARM platform
echo 3. Deploy to device or emulator
echo.
echo Build command: msbuild CLRNetSampleApp.csproj /p:Platform=ARM /p:Configuration=Release
) else (
echo ❌ PROJECT VALIDATION FAILED!
echo.
echo Some required files are missing. Please check the errors above.
echo Run the build setup scripts to create missing files.
)
echo.
echo Validation completed.
pause