Skip to content

Commit

Permalink
Only include the AndroidResgenFile file if it exists.
Browse files Browse the repository at this point in the history
Fixes #174
  • Loading branch information
Oren Novotny committed Aug 19, 2019
1 parent 3300481 commit ed2681b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="$(AndroidResgenFile)" Condition="'$(_SdkSetAndroidResgenFile)' == 'true'" Visible="false" />
<Compile Include="$(AndroidResgenFile)" Condition="'$(_SdkSetAndroidResgenFile)' == 'true' AND Exists('$(AndroidResgenFile)') " 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 ed2681b

Please sign in to comment.