This repository was archived by the owner on Aug 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
WindowsSDK-10/bam/Scripts
WindowsSDK-8.1/bam/Scripts Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ public MetaData()
49
49
}
50
50
51
51
var installPath10 = key . GetValue ( "KitsRoot10" ) as string ;
52
+ if ( null == installPath10 )
53
+ {
54
+ throw new Bam . Core . Exception ( "Unable to locate the registry value {0}\\ KitsRoot10. Is the WindowsSDK 10 installed?" , key . Name ) ;
55
+ }
52
56
Bam . Core . Log . DebugMessage ( "Windows 10 SDK installation folder is {0}" , installPath10 ) ;
53
57
this . InstallDirSDK10 = Bam . Core . TokenizedString . CreateVerbatim ( installPath10 ) ;
54
58
@@ -57,6 +61,10 @@ public MetaData()
57
61
this . SpecificVersion10 = Bam . Core . TokenizedString . CreateVerbatim ( "10.0.10240.0" ) ;
58
62
59
63
var installPath81 = key . GetValue ( "KitsRoot81" ) as string ;
64
+ if ( null == installPath81 )
65
+ {
66
+ throw new Bam . Core . Exception ( "Unable to locate the registry value {0}\\ KitsRoot81. Is the WindowsSDK 8.1 installed?" , key . Name ) ;
67
+ }
60
68
Bam . Core . Log . DebugMessage ( "Windows 8.1 SDK installation folder is {0}" , installPath81 ) ;
61
69
this . InstallDirSDK81 = Bam . Core . TokenizedString . CreateVerbatim ( installPath81 ) ;
62
70
return ;
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ public MetaData()
50
50
}
51
51
52
52
installPath = key . GetValue ( "KitsRoot81" ) as string ;
53
+ if ( null == installPath )
54
+ {
55
+ throw new Bam . Core . Exception ( "Unable to locate the registry value {0}\\ KitsRoot81. Is the WindowsSDK 8.1 installed?" , key . Name ) ;
56
+ }
53
57
Bam . Core . Log . DebugMessage ( "Windows 8.1 SDK installation folder is {0}" , installPath ) ;
54
58
}
55
59
You can’t perform that action at this time.
0 commit comments