Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
msedi opened this issue Dec 5, 2024 · 2 comments

Comments

@msedi
Copy link

msedi commented Dec 5, 2024

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?

@tmat
Copy link
Member

tmat commented Dec 5, 2024

Do you have the latest patch of the SDK 8? It has been fixed there.

How do you use Microsoft.Build.Tasks.Git? Not for Source Link?

@msedi
Copy link
Author

msedi commented Dec 6, 2024

We have installed NET8 SDK 8.0.404 but it still seems to be a problem. We will make further tests and clarify internally if we need the task at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants