Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin.Android.Build.Tasks:_Foo - Set Inputs and Outputs to fix .. #10

Merged
merged 1 commit into from
May 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="Xamarin.Android.Tools.BootstrapTasks.GenerateProfile" AssemblyFile="..\..\bin\Build$(Configuration)\Xamarin.Android.Tools.BootstrapTasks.dll" />
<Target Name="_Foo" BeforeTargets="CoreCompile">
<PropertyGroup>
<_GeneratedProfileClass>$(IntermediateOutputPath)Profile.g.cs</_GeneratedProfileClass>
</PropertyGroup>
<ItemGroup>
<SharedRuntimeBuildPath Include="..\..\bin\$(Configuration)\lib\xbuild-frameworks\MonoAndroid\" />
</ItemGroup>
<CreateItem Include="@(SharedRuntimeBuildPath->'%(Identity)\\v1.0\*.dll');@(SharedRuntimeBuildPath->'%(Identity)\\v6.0\*.dll')">
<Output TaskParameter="Include" ItemName="_SharedRuntimeAssemblies" />
</CreateItem>
<PropertyGroup>
<_SharedRuntimeBuildPath>..\..\bin\$(Configuration)\lib\xbuild-frameworks\MonoAndroid\</_SharedRuntimeBuildPath>
<_GeneratedProfileClass>$(IntermediateOutputPath)Profile.g.cs</_GeneratedProfileClass>
</PropertyGroup>
<ItemGroup>
<_SharedRuntimeAssemblies Include="$(_SharedRuntimeBuildPath)v1.0\*.dll;$(_SharedRuntimeBuildPath)$(AndroidFrameworkVersion)\*.dll"/>
</ItemGroup>

<Target Name="_GenerateProfileClass" BeforeTargets="CoreCompile"
Inputs="@(_SharedRuntimeAssemblies)"
Outputs="$(_GeneratedProfileClass)"
>
<GenerateProfile Files="@(_SharedRuntimeAssemblies)" OutputFile="$(_GeneratedProfileClass)" />
<ItemGroup>
<Compile Include="$(_GeneratedProfileClass)" />
Expand All @@ -20,4 +22,4 @@
Lines="$(_GeneratedProfileClass)"
Overwrite="false"/>
</Target>
</Project>
</Project>