Skip to content

Commit bcadb41

Browse files
committed
Only check for broken Ubuntu .NET SDK install on Linux systems
fixes 697cf25
1 parent f736c6e commit bcadb41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MainSlnCommon.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<Compile Remove="$(MSBuildProjectDirectory)/debug/**/*" />
5252
</ItemGroup>
5353
<Target Name="UbuntuMispackagedSDKCheck" BeforeTargets="Build">
54-
<Error Condition=" !Exists('$(MSBuildSDKsPath)/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets') "
54+
<Error Condition=" '$(OS)' != 'Windows_NT' && !Exists('$(MSBuildSDKsPath)/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets') "
5555
Text="Microsoft.NET.Sdk.WindowsDesktop is missing—if you're on Ubuntu, DON'T install the .NET SDK from the official repos" />
5656
</Target>
5757
</Project>

0 commit comments

Comments
 (0)