AvaloniaUI/AvaloniaVS

Intellisense does not work

workgroupengineering opened this issue · 0 comments

Describe the bug

Intellisense does not work

To Reproduce

  • Create App from Avalonia from Cross Template name ATI
  • Set Target net8.0
  • Build
  • Try Intellisense

AvaloniaVS plugin version

4190a20

Avalonia version

11.0.7

Visual Studio version

No response

Relevant log output

var projDir = GetMSBuildProperty("MSBuildProjectDirectory", storage);

Extension try find `references` file in `ATI\ATI\ATI.Desktop\obj\Debug\net8.0\Avalonia` but does not exist.

Additional context

Workaround
Add following target at desktop project

  <Target Name="WA"
          AfterTargets="CompileAvaloniaXaml"
          >
    <PropertyGroup>
      <AvaloniaXamlReferencesTemporaryFilePath Condition="'$(AvaloniaXamlReferencesTemporaryFilePath)' == ''">$(IntermediateOutputPath)/Avalonia/references</AvaloniaXamlReferencesTemporaryFilePath>
    </PropertyGroup>
    <WriteLinesToFile
      Condition="'$(_AvaloniaForceInternalMSBuild)' != 'true'"
      File="$(AvaloniaXamlReferencesTemporaryFilePath)"
      Lines="@(ReferencePathWithRefAssemblies)"
      Overwrite="true" />
  </Target>