Skip to content

Continuous writing/touching the AssemblyVersion causes Hot Reload to stop working #1325

Open
@msedi

Description

@msedi

Since we have changed to Microsoft.Build.Tasks.Git we have problems using Hot Reload.
It seems that Microsoft.Build.Tasks.Git is continuously touching/writing the AssemblyInfo during Visual Studio is running.

This leads to the problem that when starting the app in debug mode from Visual Studio , the source code has already changed or is changed when the application has started up. This leads to the problem that Visual Studio is complaining that the source has changed and reports that accordingly.

We have integrated Microsoft.Build.Tasks.Git in the project

    <PackageReference Include="Microsoft.Build.Tasks.Git" Version="8.0.0">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>

I think it has to do with the design time build. Is the problem that the analyzer is included as asset?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions