English 中文(简体)
How can I install WTL 8.0 Project Wizards in VS 2010?
原标题:

I ve downloaded the WTL 8.0 package and come to find the scripts to install App Wizards don t support VS 2010.

Does anyone know of updates scripts to support installation in VS 2010?

Thank you!

最佳回答

WTL 8.0 was released in june 2007 so couldn t possibly support VS 2010.

You may download the current work in progress WTL 8.1 AppWizard from http://wtl.svn.sourceforge.net/viewvc/wtl/trunk/wtl/Wizards/AppWiz.tar.gz?view=tar and the matching library files from /include.tar.gz?view=tar.

问题回答

The AppWizard for VS2010 above has two small glitches (however they might deter people from using WTL with VS2010). These are very easy to fix:

1) [Output Directory] and [Intermediate Directory] in new project properties are not followed by a backslash ( ).

To fix: file: .AppWizFilesScripts1033default.js

I have replaced:

            if(bDebug)
        {
            config.IntermediateDirectory =  Debug ;
            config.OutputDirectory =  Debug ;
            config.ATLMinimizesCRunTimeLibraryUsage = false;
        }
        else
        {
            config.IntermediateDirectory =  Release\ ;
            config.OutputDirectory =  Release\ ;
            config.ATLMinimizesCRunTimeLibraryUsage = true;
        }

with

        // Add generic configuration details
        config.IntermediateDirectory =  $(SolutionDir)$(Configuration)\ ;
        config.OutputDirectory =  $(Configuration)\ ;

        config.ATLMinimizesCRunTimeLibraryUsage = !bDebug;

2) Some WTL headers are missing in newly created projects.

The symbol WTL_USE_CPP_FILES seems to be missing when the template stdafx.h file is parsed, as a result a bunch of header files are not included in new projects.

Again in .AppWizFilesScripts1033default.js, I have added:

        // Add WTL_USE_CPP_FILES to all projects
    wizard.AddSymbol("WTL_USE_CPP_FILES", true)

just below line 41 (so that the lines are always included). This seems to do the trick.

I ve never looked at VS appWizards before (or js for that matter), so I can t guarantee the workarounds are concrete. It seems pretty straighforward though & I ve been using WTL with VS2010 with no problems since I ve made those changes...

WTL is awesome btw - many thanks to the folks who still maintain it!

Cheers, Yiannis





相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

热门标签