Skip to content

Commit b4e1b9d

Browse files
authored
fix: Building the SDK on Windows (#2156)
1 parent 069bcbd commit b4e1b9d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Directory.Build.targets

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Expected to exist:
186186

187187
<!-- Downloads and sets up the Cocoa SDK: dotnet msbuild /t:SetupCocoaSDK src/Sentry.Unity -->
188188
<Target Name="SetupCocoaSDK"
189-
Condition="'$(MSBuildProjectName)' == 'Sentry.Unity'
189+
Condition="!$([MSBuild]::IsOSPlatform('Windows')) AND '$(MSBuildProjectName)' == 'Sentry.Unity'
190190
And (!Exists('$(SentryiOSArtifactsDestination)') Or !Exists('$(SentrymacOSArtifactsDestination)Sentry.dylib'))"
191191
BeforeTargets="BeforeBuild">
192192

@@ -609,7 +609,5 @@ void PrintFailedTests(XElement element)
609609
<!-- Download overwrites some files that then show up as changed in the IDE, even though there are no changes, e.g. only whitespace -->
610610
<Message Importance="High" Text="Restoring package-dev/Plugins to the latest git commit" />
611611
<Exec WorkingDirectory="$(RepoRoot)" Command="git restore package-dev/Plugins" />
612-
613-
614612
</Target>
615613
</Project>

0 commit comments

Comments
 (0)