c# - Visual Studio VSPackage / Single File Generator - Log Message to Error List -
i'm working on creating visual studio vspackage containing single file generator (ivssinglefilegenerator
) , want able log events visual studio error list (http://msdn.microsoft.com/en-us/library/33df3b7a(v=vs.110).aspx)
i using example base classes microsoft visual studio sdk (http://code.msdn.microsoft.com/windowsdesktop/single-file-generator-94d856d4). these classes have methods:
public class basecodegenerator : ivssinglefilegenerator { void generatorerror(uint level, string message, uint line, uint column); void generatorwarning(uint level, string message, uint line, uint column); }
this lets me make errors , warnings, not messages. methods call ivsgeneratorprogress.generateerror
(http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivsgeneratorprogress.generatorerror(v=vs.90).aspx). method doesn't seem let me wire 'message'.
i have tried trying find reference error list window in visual studio write directly it, didn't see in vsconstants
(http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.vsconstants(v=vs.80).aspx).
anyone know how log message visual studio error list?
not direct answer don't think ever solved either. chose create , write new output window. should of you, see writeline method @ bottom of source: http://code.google.com/p/csharptest-net/source/browse/src/tools/cmdtool/vsinterop/basecodegeneratorwithsite.cs
i think outputtaskitemstring might asking.
Comments
Post a Comment