|
116 | 116 | <Message>Copying the required libraries ...</Message> |
117 | 117 | </PostBuildEvent> |
118 | 118 | <PreBuildEvent> |
119 | | - <Command>call .GitInfo.cmd</Command> |
| 119 | + <Command>where /q git |
| 120 | +if errorlevel 1 ( |
| 121 | + echo git is not founded |
| 122 | + goto :EOF |
| 123 | +) |
| 124 | +echo git is founded |
| 125 | +call .GitInfo.cmd</Command> |
120 | 126 | </PreBuildEvent> |
121 | 127 | </ItemDefinitionGroup> |
122 | 128 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
|
132 | 138 | <Message>Copying the required libraries ...</Message> |
133 | 139 | </PostBuildEvent> |
134 | 140 | <PreBuildEvent> |
135 | | - <Command>call .GitInfo.cmd</Command> |
| 141 | + <Command>where /q git |
| 142 | +if errorlevel 1 ( |
| 143 | + echo git is not founded |
| 144 | + goto :EOF |
| 145 | +) |
| 146 | +echo git is founded |
| 147 | +call .GitInfo.cmd</Command> |
136 | 148 | </PreBuildEvent> |
137 | 149 | </ItemDefinitionGroup> |
138 | 150 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
|
151 | 163 | <Message>Copying the required libraries ...</Message> |
152 | 164 | </PostBuildEvent> |
153 | 165 | <PreBuildEvent> |
154 | | - <Command>call .GitInfo.cmd</Command> |
| 166 | + <Command>where /q git |
| 167 | +if errorlevel 1 ( |
| 168 | + echo git is not founded |
| 169 | + goto :EOF |
| 170 | +) |
| 171 | +echo git is founded |
| 172 | +call .GitInfo.cmd</Command> |
155 | 173 | </PreBuildEvent> |
156 | 174 | </ItemDefinitionGroup> |
157 | 175 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
|
167 | 185 | <Message>Copying the required libraries ...</Message> |
168 | 186 | </PostBuildEvent> |
169 | 187 | <PreBuildEvent> |
170 | | - <Command>call .GitInfo.cmd</Command> |
| 188 | + <Command>where /q git |
| 189 | +if errorlevel 1 ( |
| 190 | + echo git is not founded |
| 191 | + goto :EOF |
| 192 | +) |
| 193 | +echo git is founded |
| 194 | +call .GitInfo.cmd</Command> |
171 | 195 | </PreBuildEvent> |
172 | 196 | </ItemDefinitionGroup> |
173 | 197 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Mixed|Win32'"> |
|
185 | 209 | <Message>Copying the required libraries ...</Message> |
186 | 210 | </PostBuildEvent> |
187 | 211 | <PreBuildEvent> |
188 | | - <Command>call .GitInfo.cmd</Command> |
| 212 | + <Command>where /q git |
| 213 | +if errorlevel 1 ( |
| 214 | + echo git is not founded |
| 215 | + goto :EOF |
| 216 | +) |
| 217 | +echo git is founded |
| 218 | +call .GitInfo.cmd</Command> |
189 | 219 | </PreBuildEvent> |
190 | 220 | </ItemDefinitionGroup> |
191 | 221 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Mixed|x64'"> |
|
201 | 231 | <Message>Copying the required libraries ...</Message> |
202 | 232 | </PostBuildEvent> |
203 | 233 | <PreBuildEvent> |
204 | | - <Command>call .GitInfo.cmd</Command> |
| 234 | + <Command>where /q git |
| 235 | +if errorlevel 1 ( |
| 236 | + echo git is not founded |
| 237 | + goto :EOF |
| 238 | +) |
| 239 | +echo git is founded |
| 240 | +call .GitInfo.cmd</Command> |
205 | 241 | </PreBuildEvent> |
206 | 242 | </ItemDefinitionGroup> |
207 | 243 | <ItemGroup> |
|
0 commit comments