Skip to content

Commit 15db5ee

Browse files
kekekeksgrokys
andcommitted
Update AvaloniaBuildTasks.targets (#16427)
Co-authored-by: Steven Kirk <[email protected]>
1 parent ded5caa commit 15db5ee

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

packages/Avalonia/AvaloniaBuildTasks.targets

+8-18
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@
135135
Outputs="@(CompileAvaloniaXamlOutputs)"
136136
Condition="'@(AvaloniaResource)@(AvaloniaXaml)' != '' AND $(DesignTimeBuild) != true AND $(EnableAvaloniaXamlCompilation) != false">
137137

138+
<!--
139+
$(IntermediateOutputPath)/Avalonia/references is using from AvaloniaVS for retrieve library references.
140+
-->
141+
<WriteLinesToFile
142+
File="$(IntermediateOutputPath)/Avalonia/references"
143+
Lines="@(ReferencePathWithRefAssemblies)"
144+
Overwrite="true" />
145+
138146
<CompileAvaloniaXamlTask
139147
AssemblyFile="@(IntermediateAssembly)"
140148
References="@(ReferencePathWithRefAssemblies)"
@@ -245,22 +253,4 @@
245253
'$(SkipCopyBuildProduct)' != 'true'">
246254
<Delete Files="$(TargetRefPath)" Condition="Exists('$(TargetRefPath)')" />
247255
</Target>
248-
249-
<!--
250-
$(IntermediateOutputPath)/Avalonia/references is using from AvaloniaVS for retrieve library references.
251-
This target generate $(IntermediateOutputPath)/Avalonia/references for in xplat Template
252-
(see: https://github.com/AvaloniaUI/avalonia-dotnet-templates/tree/e4a489ae828f005f625145c563785174403e267c/templates/csharp/xplat).
253-
-->
254-
<Target Name="GenerateIntellisenseReferences"
255-
AfterTargets="AfterCompile"
256-
Condition="('@(AvaloniaResource->Count())' == 0) and ('@(AvaloniaXaml->Count())' == 0)">
257-
<PropertyGroup>
258-
<AvaloniaXamlReferencesTemporaryFilePath Condition="'$(AvaloniaXamlReferencesTemporaryFilePath)' == ''">$(IntermediateOutputPath)/Avalonia/references</AvaloniaXamlReferencesTemporaryFilePath>
259-
</PropertyGroup>
260-
<WriteLinesToFile
261-
Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'"
262-
File="$(AvaloniaXamlReferencesTemporaryFilePath)"
263-
Lines="@(ReferencePathWithRefAssemblies)"
264-
Overwrite="true" />
265-
</Target>
266256
</Project>

0 commit comments

Comments
 (0)