Skip to content

Commit

Permalink
Update AvaloniaBuildTasks.targets (#16427)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
  • Loading branch information
kekekeks and grokys committed Jul 25, 2024
1 parent ded5caa commit 15db5ee
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions packages/Avalonia/AvaloniaBuildTasks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@
Outputs="@(CompileAvaloniaXamlOutputs)"
Condition="'@(AvaloniaResource)@(AvaloniaXaml)' != '' AND $(DesignTimeBuild) != true AND $(EnableAvaloniaXamlCompilation) != false">

<!--
$(IntermediateOutputPath)/Avalonia/references is using from AvaloniaVS for retrieve library references.
-->
<WriteLinesToFile
File="$(IntermediateOutputPath)/Avalonia/references"
Lines="@(ReferencePathWithRefAssemblies)"
Overwrite="true" />

<CompileAvaloniaXamlTask
AssemblyFile="@(IntermediateAssembly)"
References="@(ReferencePathWithRefAssemblies)"
Expand Down Expand Up @@ -245,22 +253,4 @@
'$(SkipCopyBuildProduct)' != 'true'">
<Delete Files="$(TargetRefPath)" Condition="Exists('$(TargetRefPath)')" />
</Target>

<!--
$(IntermediateOutputPath)/Avalonia/references is using from AvaloniaVS for retrieve library references.
This target generate $(IntermediateOutputPath)/Avalonia/references for in xplat Template
(see: https://github.com/AvaloniaUI/avalonia-dotnet-templates/tree/e4a489ae828f005f625145c563785174403e267c/templates/csharp/xplat).
-->
<Target Name="GenerateIntellisenseReferences"
AfterTargets="AfterCompile"
Condition="('@(AvaloniaResource->Count())' == 0) and ('@(AvaloniaXaml->Count())' == 0)">
<PropertyGroup>
<AvaloniaXamlReferencesTemporaryFilePath Condition="'$(AvaloniaXamlReferencesTemporaryFilePath)' == ''">$(IntermediateOutputPath)/Avalonia/references</AvaloniaXamlReferencesTemporaryFilePath>
</PropertyGroup>
<WriteLinesToFile
Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'"
File="$(AvaloniaXamlReferencesTemporaryFilePath)"
Lines="@(ReferencePathWithRefAssemblies)"
Overwrite="true" />
</Target>
</Project>

0 comments on commit 15db5ee

Please sign in to comment.