SVG in 2.0

I read in another post that there was a bug with GoSvgWriter and .NET 2.0. I’m wondering if that bug has been fixed. If not then I think I’m running into it here.

[code]private void mnuFileExport_Click(object sender, EventArgs e)
GoView view = GetCurrentGoView();

if (view != null)
SaveFileDialog dlg = new SaveFileDialog();
Bitmap bmView;
dlg.OverwritePrompt = true;
dlg.ValidateNames = true;
dlg.Filter = “JPeg Image|.jpg|Bitmap Image|.bmp|Gif Image|.gif|PNG|.png|Scalable Vector Graphics|*.svg”;
dlg.Title = “Export Template”;
if (dlg.FileName != “”)
bmView = view.GetBitmap();
System.IO.FileStream fs = (System.IO.FileStream)dlg.OpenFile();
switch (dlg.FilterIndex)
case 1:
bmView.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg);
case 2:
bmView.Save(fs, System.Drawing.Imaging.ImageFormat.Bmp);
case 3:
bmView.Save(fs, System.Drawing.Imaging.ImageFormat.Gif);
case 4:
bmView.Save(fs, System.Drawing.Imaging.ImageFormat.Png);
case 5:
GoSvgWriter gsw = new GoSvgWriter();
gsw.View = view;

The bold and underlined line is where I get an error of "Object reference not set to an instance of an object."

Yes, there’s a problem with GoSvg that applies only to version – i.e. the version compiled for .NET 2.0. (This is due to an incompatibility in System.Xml behavior in .NET 2.0, when dealing with XML namespaces.)

Here are some replacement assemblies: [edit: obsolete]