This project is read-only.

Support for Visual Studio 2012

Oct 12, 2012 at 7:58 AM
Edited Oct 12, 2012 at 7:59 AM


We are planning to move to Visual Studion 2012. Is there any plan to support it?

many thanks,


Oct 15, 2012 at 9:20 AM

For what it's worth, I found you can reference the projects in your own code and write an exe to generate the contract code.

If the generated code works in 2012, you could write an exe that takes command line params and put it in your project as a pre-build event.





Example code to trigger code generation:

        static void Main(string[] args)
            CodeGenerator cg = new CodeGenerator();

            cg.GenerateCode(new CodeGenerationOptions()
                AdjustCasing = true,
                ClrNamespace = "Test",
                ConcurrencyMode = "Single",
                ConfigurationFile = "output.config",
                DataContractFiles = null,
                EnableDataBinding = false,
                EnableWsdlEndpoint = false,
                FormatSoapActions = true,
                GenerateAsyncCode = false,
                GenerateCollections = false,
                GenerateDataContracts = false,
                GenerateOrderIdentifiers = false,
                GenerateProperties = true,
                GenerateSeparateFiles = false,
                GenerateService = true,
                GenerateSvcFile = true,
                GenerateTypedLists = true,
                InstanceContextMode = "PerCall",
                Language = CodeLanguage.CSharp,
                MetadataLocation = @"E:\Schemas\WCFTest.wsdl",
                MethodImplementation = MethodImplementation.PartialClassMethodCalls,
                OutputFileName = "Test.cs",
                OutputLocation = @"E:\built",
                OverwriteExistingFiles = true,
                Password = null,
                ProjectDirectory = @"E:\built",
                Username = null,
                UseSynchronizationContext = true,
                VirtualProperties = false,


Oct 16, 2012 at 9:54 AM
Edited Oct 16, 2012 at 9:57 AM

1) Go to "C:\Program Files (x86)\thinktecture\"

2) Copy "" and rename the copy to ""

3) Open "" with a text editor (eg Notepad++)

4) Change the host application's version number from 10.0 to 11.0 as follows:

        <Name>Microsoft Visual Studio</Name>

5) If the path "C:\Program Files (x86)\thinktecture\\" is not added in Visual Studio 2012 addin file-paths list, go in Visual Studio 2012's menu: Tools->Options->Environment->Add-in Security and then add the path

6) Restart the Visual Studio 2012 IDE

Oct 16, 2012 at 12:00 PM


I have tried to follow you description. However, the Visual Studio does not recognise it (I did the point 5 and 6).

I have Visual Studio professional 2012 and installed the latest CPT.


Thanks a lot!

Oct 17, 2012 at 9:11 AM

What do you mean "I did the point 5 and 6"? It will not work without the point 4, for example. I have Visual Studio Premium 2012, but I don't think this is so important. You need to go through all the steps. Hope it works!

Dec 7, 2012 at 2:53 AM

I was successful!!  Can generate the proxy class,but report a error:


styem.Runtime.InteropSerices.ComException(0x80004005):Unspeceified errir(Exceotion HRWSUL T:0x8004005(E_FAIL)) atVSLongpro.References.Add(string bstrPath)


at Thinkecture.Tool.web.Service

Dec 8, 2012 at 4:19 PM


It works perfectly, I have VS 2012 Premium in Win7 32bit, thank you Corneliu, as you sad one needs to do all the steps!

Feb 3, 2014 at 9:57 AM
Note for VS2013 the version is 12 in place of 11