Skip to content

Commit

Permalink
Default AndroidUseIntermediateDesignerFile to true based on
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Aug 19, 2019
1 parent 3300481 commit ede9692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@
<PropertyGroup>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v5.0</TargetFrameworkVersion>
<AndroidUseLatestPlatformSdk Condition="'$(AndroidUseLatestPlatformSdk)' == ''">false</AndroidUseLatestPlatformSdk>
<_SdkSetAndroidResgenFile Condition="'$(AndroidResgenFile)' == ''">true</_SdkSetAndroidResgenFile>
<AndroidResgenFile Condition="'$(AndroidResgenFile)' == ''">$(IntermediateOutputPath)$(TargetFramework)\Resource.Designer$(_SdkLanguageExtension)</AndroidResgenFile>
<!-- This is here to prevent a warning in the Xamarin.Android.Common.Debugging.targets when a blank is passed into _GetPrimaryCpuAbi -->
<AdbTarget Condition="'$(AdbTarget)' == ''">none</AdbTarget>
<AndroidClassParser Condition="'$(AndroidClassParser)' == ''">class-parse</AndroidClassParser>
<AndroidUseIntermediateDesignerFile Condition=" '$(AndroidUseIntermediateDesignerFile)' == '' ">True</AndroidUseIntermediateDesignerFile>
</PropertyGroup>

<ItemGroup>
<Compile Include="$(AndroidResgenFile)" Condition="'$(_SdkSetAndroidResgenFile)' == 'true'" Visible="false" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions Tests/ClasslibraryAsSdk/Class.monoandroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace MSBuild.Sdk.Extras.Tests
{
/// <summary>
///
/// </summary>
public class ClassMono
{
int SomeMethod(int a, int b) => a + b;
Expand Down

0 comments on commit ede9692

Please sign in to comment.