Visual Studio 2017 IWizard ProjectFinishedGenerating project is null

1

I have the following code in my class that extends IWizard:

public void ProjectFinishedGenerating(Project project)
{
   MessageBox.Show(project.Name);
}

But it gives me the error:

System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object.
Saying that project is null. Which is right according to my debugger. However, what on earth causes this? I would've thought the method only gets called with a non-null project. How can I fix this?

c#
visual-studio-2017
nullreferenceexception
envdte
asked on Stack Overflow Jul 23, 2018 by stenlan • edited Jul 23, 2018 by stenlan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0