Skip to content

Commit

Permalink
fix: AvaloniaVS Intellisense (#14397)
Browse files Browse the repository at this point in the history
* fix: AvaloniaVS Intellisense

* fix: Address review
  • Loading branch information
workgroupengineering authored and maxkatz6 committed Apr 25, 2024
1 parent 9af0c13 commit 05f5e10
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/Avalonia/AvaloniaBuildTasks.targets
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,21 @@
<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 05f5e10

Please sign in to comment.