Browse Source
Update AvaloniaBuildTasks.targets (#16427)
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
pull/16461/head
Nikita Tsukanov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
18 deletions
-
packages/Avalonia/AvaloniaBuildTasks.targets
|
|
|
@ -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)" |
|
|
|
@ -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> |
|
|
|
|