Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 27f77aa

Browse files
committed
Merge pull request #2620 from JeremyKuhne/UnixPath
When building other platforms, skip tests
2 parents d1423ab + bb58ec8 commit 27f77aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dir.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@
235235
<TargetsUnix Condition="'$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true' or '$(TargetsFreeBSD)' == 'true'">true</TargetsUnix>
236236
</PropertyGroup>
237237

238+
<PropertyGroup>
239+
<!-- Don't run tests if we're building another platform's binaries on Windows -->
240+
<SkipTests Condition="'$(SkipTests)'=='' and ('$(OsEnvironment)'=='Windows_NT' and '$(TargetsWindows)'!='true')">true</SkipTests>
241+
</PropertyGroup>
242+
238243
<PropertyGroup>
239244
<!-- Work around known Dev14 bug - see
240245
https://connect.microsoft.com/VisualStudio/feedback/details/1000796/connect-file-uap-props-not-found-cant-build-a-portable-lib-on-vs14

0 commit comments

Comments
 (0)