Closed astrohart closed 3 years ago
Never mind. I think I found the issue. I had an XML documentation tag that said <param product="sender">Reference to the instance of the object that raised the event.</param>
.
I found this out by erasing my .cs files and adding things in a bit at a time and building/rebuilding in between to see when the Object reference not set to the instance of an object
message would show. Obviously, it should be <param name="sender">...</param>
not <param product="sender">...</param>
.
I am utilizing VS 2019 Community, latest update. Last night,
Vsxmd
was working fine with the configuration below. Now, it will not create a.md
documentation file all of a sudden.My
packages.config
file says:My .csproj is:
I have done a
Restore NuGet Packages in Solution
on my .sln file in Solution Explorer.As you can see, there is a line
<None Include="MyProject.md" />
. And, indeed, when zero C# classes or interfaces (except for the one generated by theResources.resx
file inResources.Designer.cs
) are in the file, theMyProject.md
is spat out just perfectly. However, once I paste in some source files for C# event args class and a delegate, then I get an error in the Output window.My C# class and delegate are standard
*EventArgs
and apublic delegate void MyEvent(object sender, MyEventArgs e);
with well-formed XML docs and cross-references. My project builds perfectly.The project builds just fine but then there is an error
Object reference not set to an instance of an object.
in the Output window, which I assume is coming fromVsxmd
. I assume this, because if I go into NuGet Package Manager and Uninstall theVsxmd
package, the project still builds as previously, but the messageObject reference not set to an instance of an object.
does not appear anymore. Therefore, my assumption is that when Vsxmd is installed, it is causing theObject reference not set to an instance of an object.
error.Here's the text of my Output window when
Vsxmd
is installed:Names of my username on the computer and the github name and my project's name have been changed to protect the guilty ;-) or innocent :-D.