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 4d63077 commit 9099675
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9099675

Please sign in to comment.