Describe the bug
When running a .NET 8 app using the .NET 9 SDK, I see this error in the console.
Expected to find a static method 'ClearCache' or 'UpdateApplication' on type 'Vite.AspNetCore.ViteTagHelperMonitor, Vite.AspNetCore, Version=2.3.0.0, Culture=neutral, PublicKeyToken=null' but neither exists.
This appears after a hot-reload when running the app via dotnet watch
To Reproduce
Steps to reproduce the behavior:
Add this library to an ASPNET Core app
Install the .NET 9 SDK
Run the app with dotnet watch
Perform a code update that would trigger a hot reload in a .cshtml file
See the warning in the console
Expected behavior
No warning
Screenshots
n/a
Device (please complete the following information):
Describe the bug When running a .NET 8 app using the .NET 9 SDK, I see this error in the console.
This appears after a hot-reload when running the app via
dotnet watch
To Reproduce Steps to reproduce the behavior:
dotnet watch
.cshtml
fileExpected behavior No warning
Screenshots n/a
Device (please complete the following information):
Additional context I found this article https://learn.microsoft.com/en-us/visualstudio/debugger/hot-reload-metadataupdatehandler?view=vs-2022#add-the-metadataupdatehandler and I think it applies to this file https://github.com/Eptagone/Vite.AspNetCore/blob/main/src/Vite.AspNetCore/Services/ViteTagHelperMonitor.cs