Visual Studio code generation tool ... how do you know what is going on?

I am trying to create my own tool for generating code in Visual Studio 2010. First I will register it:

"$(FrameworkSDKDir)Bin\NETFX 4.0 Tools\gacutil.exe" /if "$(TargetPath)"

Then I add it through the reg key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\CLSID\{6A96476E-74F3-4AB3-9CCA-F15EC6104D84}]
"RuntimeVersion"="v4.0.30319"
"Class"="MapBuildTool.MapFileGenerator"
"Assembly"="MapBuildTool, Version=1.0.0.0, Culture=en-US, PublicKeyToken=7d8abca94a1e38ae"
"ThreadingModel"="Both"
"InprocServer32"="C:\\Windows\\SysWOW64\\mscoree.dll"
@="MapBuildTool"

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Generators\{FAE04EC1-301F-11D3-BF4B-00C04F79EFBC}\MapBuildTool]
"CLSID"="{6A96476E-74F3-4AB3-9CCA-F15EC6104D84}"
"GeneratesDesignTimeSource"=dword:00000001
@="MapBuildTool"

And then the visual studio says:

Cannot find custom tool 'MapBuildTool' on this system.

OK ... now what? Didn't he find a custom tool registry key? He found the key, but could not load the assembly? It loaded the assembly, but there were problems creating the class ...? What magazines / places are there where I can see what is wrong?

+5
source share
3 answers

, . . reg , Experimental Hive. VisualStudio.

, VisualStudio , - .

reset

devenv /setup

.

+11

:

Process Monitor, VS2010/COM/.NET/Fusion, , VS , NOTFOUND.

:

1:

:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\BindingPaths\<A new GUID>]
"<Path the the folder containing your DLL>"=""

2:

, , VS2010 (), .

gacutil, tlbexp, regasm. VS2010 DLL.

+6

, , : VS.NET
, :

COM-

GUID tlbexp.exe regasm.exe. , , GAC.

0

All Articles