Skip to content

The function "IsWindows" on type "System.OperatingSystem" is not available for execution as an MSBuild property function. #4141

Closed
@DarthSonic

Description

@DarthSonic

Package

Sentry

.NET Flavor

.NET Framework

.NET Version

4.8.2

OS

Windows

OS Version

Windows Server 2022

Development Environment

Visual Studio v17.x

SDK Version

5.6.0

Self-Hosted Sentry Version

No response

Workload Versions

UseSentry or SentrySdk.Init call

Steps to Reproduce

Azure DevOps Pipeline Build

Expected Result

Actual Result

##[error]packages\Sentry.5.6.0\build\Sentry.targets(18,14): Error MSB4185: The function "IsWindows" on type "System.OperatingSystem" is not available for execution as an MSBuild property function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingWindows

    Type

    No type

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions