You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,6 +96,16 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
81
96
});
82
97
}
83
98
99
+
if(!this.hostInfo.isWindows){
100
+
result.push({
101
+
message:
102
+
"Local builds for Windows can be executed only on a Windows system. To build for Windows on a different operating system, you can use the NativeScript cloud infrastructure.",
103
+
additionalInformation: "",
104
+
platforms: [Constants.WINDOWS_PLATFORM_NAME],
105
+
type: Constants.INFO_TYPE_NAME,
106
+
});
107
+
}
108
+
84
109
returnresult;
85
110
}
86
111
@@ -280,6 +305,37 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
280
305
returnresult;
281
306
}
282
307
308
+
privategetWindowsInfos(
309
+
sysInfoData: NativeScriptDoctor.ISysInfoData,
310
+
): NativeScriptDoctor.IInfo[]{
311
+
letresult: NativeScriptDoctor.IInfo[]=[];
312
+
if(this.hostInfo.isWindows){
313
+
result=result.concat(
314
+
this.processSysInfoItem({
315
+
item: sysInfoData.dotNetSdkVer,
316
+
infoMessage: `The .NET SDK ${sysInfoData.dotNetSdkVer} is installed.`,
317
+
warningMessage: "The .NET SDK is not installed.",
318
+
additionalInformation:
319
+
`You will not be able to build your projects for Windows.${EOL}`+
320
+
`Download and install the .NET SDK from https://dotnet.microsoft.com/download${EOL}`+
321
+
`For more information visit: ${Constants.SYSTEM_REQUIREMENTS_LINKS}`,
322
+
platforms: [Constants.WINDOWS_PLATFORM_NAME],
323
+
}),
324
+
this.processSysInfoItem({
325
+
item: sysInfoData.windowsAppSdkWorkloadInstalled,
326
+
infoMessage: "The Windows App SDK dotnet workload is installed.",
327
+
warningMessage: "The Windows App SDK dotnet workload is not installed.",
328
+
additionalInformation:
329
+
`You will not be able to build your projects for Windows.${EOL}`+
330
+
`Run: dotnet workload install windows${EOL}`+
331
+
`For more information visit: ${Constants.SYSTEM_REQUIREMENTS_LINKS}`,
0 commit comments