This is happening recently, I use not to have issues with migration before. When I publish the site to be uploaded to IIS, there is no migration script despite the fact that at least one migration was applied during development.
I use Visual Studio Community 2019 for an asp.net core razor pages web app with Microsoft SQL
Executing command: dotnet ef migrations script --no-build --idempotent --configuration Release --output
Why is this happening and how do I fix it. Thank you