Skip to content

Commit

Permalink
Only none-include if default compile items are off
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Sep 1, 2018
1 parent bc948cc commit 22607fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -32,7 +32,7 @@
<_SdkMinVersionWithNoneIssue>2.1.300</_SdkMinVersionWithNoneIssue>
</PropertyGroup>

<ItemGroup Condition="'$([System.Version]::Parse($(_SdkNETCoreSdkVersion)))' >= '$([System.Version]::Parse($(_SdkMinVersionWithNoneIssue)))'">
<ItemGroup Condition="'$(EnableDefaultCompileItems)' == 'false' and '$([System.Version]::Parse($(_SdkNETCoreSdkVersion)).CompareTo($([System.Version]::Parse($(_SdkMinVersionWithNoneIssue)))))' &gt;= '0'" >
<None Include="**\*$(DefaultLanguageSourceExtension)" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Tests/ClasslibraryAsSdk/ClasslibraryAsSdk.csproj
Expand Up @@ -29,7 +29,7 @@

<ItemGroup Condition="'$(TargetFramework)' == 'xamarin.mac20'">
<Reference Include="System.Xml" />
</ItemGroup>
</ItemGroup>

<Import Project="$(MSBuildThisFileDirectory)..\..\Source\MSBuild.Sdk.Extras\Sdk\Sdk.targets" />
<Import Project="..\Test.targets" />
Expand Down

0 comments on commit 22607fc

Please sign in to comment.