You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
I found an edge case where the Solution Explorer context menu for 'Generate Code' can cause a null reference exception. Happens only before the extension is loaded, so it is rare. Steps to reproduce are:
Load solution with .efmodel file in it.
Immediately right-click on .efmodel file and select 'Generate Code'.
Fix:
private void OnMenuSolutionExplprerGenerateCode(object sender, EventArgs e)
{
if (solutionExplorerSelectedFileInfo == null)
{
solutionExplorerSelectedFileInfo = new FileInfo(CommandHelper.GetSingleFileSelectedPath());
}
CommandHelper.GenerateCode(solutionExplorerSelectedFileInfo.FullName);
}
I found an edge case where the Solution Explorer context menu for 'Generate Code' can cause a null reference exception. Happens only before the extension is loaded, so it is rare. Steps to reproduce are:
Fix:
in DslPackage\CustomCode\CommandSet.cs