Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TextTemplating93D6F136794E0F2DED98BBB434C0AB6B1BABD9986CF045D207B1349AA5C562DE7F6768CC72494F822CD0E8B6D07104A542507F67E73B56FFE45CC4AB1D75F16F.GeneratedTextTransformation.DynamicTextTransformation.get_GenerationEnvironment()
at Microsoft.VisualStudio.TextTemplating93D6F136794E0F2DED98BBB434C0AB6B1BABD9986CF045D207B1349AA5C562DE7F6768CC72494F822CD0E8B6D07104A542507F67E73B56FFE45CC4AB1D75F16F.GeneratedTextTransformation.EntityFrameworkTemplateFileManager..ctor(Object textTransformation)
at Microsoft.VisualStudio.TextTemplating93D6F136794E0F2DED98BBB434C0AB6B1BABD9986CF045D207B1349AA5C562DE7F6768CC72494F822CD0E8B6D07104A542507F67E73B56FFE45CC4AB1D75F16F.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.VsEntityFrameworkTemplateFileManager..ctor(Object textTemplating)
at Microsoft.VisualStudio.TextTemplating93D6F136794E0F2DED98BBB434C0AB6B1BABD9986CF045D207B1349AA5C562DE7F6768CC72494F822CD0E8B6D07104A542507F67E73B56FFE45CC4AB1D75F16F.GeneratedTextTransformation.EntityFrameworkTemplateFileManager.Create(Object textTransformation)
at Microsoft.VisualStudio.TextTemplating93D6F136794E0F2DED98BBB434C0AB6B1BABD9986CF045D207B1349AA5C562DE7F6768CC72494F822CD0E8B6D07104A542507F67E73B56FFE45CC4AB1D75F16F.GeneratedTextTransformation.TransformText() LIBRARY C:\Users\JD\Documents\Visual Studio 2022\Projects\ProjectName\LIBRARY\DBModel.tt 1
What is the solution to this error?