- Rich
However I strongly recommend using a macro provided in the blog post you
referred to. The only thing about it, I would modify it to look like this:
Public Sub DebugAsHighRes()
' Path for 2nd Edition Resources. You may need to change this to match your
setup.
Dim SecondEditionResources As String = "C:\Program Files\Developer Resources
for Windows Mobile 2003 Second Edition\tools\"
Dim ActiveProject As Project =
DTE.Solution.Projects.Item(DTE.Solution.SolutionBuild.StartupProjects(0))
Dim Solution As SolutionBuild = DTE.Solution.SolutionBuild
' Create the command line for marking the output file as resolution aware
Dim ResFile As String = """" + SecondEditionResources + "\hidpi.res"""
Dim Params As String = " -r -c "
Dim Res2Exe As String = """" + SecondEditionResources + "\res2exe.exe"""
Dim OutputFile As String = """" +
ActiveProject.Properties.Item("LocalPath").Value + "\obj\Debug\" +
ActiveProject.Properties.Item("OutputFileName").Value + """"
Dim Command As String = Res2Exe + Params + ResFile + " " + OutputFile
' Build, mark has resolution aware, and then launch the debugger
Solution.BuildProject("Debug", ActiveProject.UniqueName, True)
Shell(Command, AppWinStyle.Hide, True)
DTE.Debugger.Go(False)
End Sub
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Rich M" <richar...@bigfoot.spamnot.com> wrote in message
news:uXkLpIGG...@TK2MSFTNGP15.phx.gbl...
I came up with a different solution. My project has a ClassLibrary and Setup
projects which only builds under the release configuration as described in
"Developing and Deploying Pocket PC Setup Applications" at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/netcfdeployment.asp.
After setting up the neccessary files for the debug configuration, now all I
need to do is enable the ClassLibrary project to build under this
configuration when I need to debug in hi-res mode. My obj\Debug\BuildCab.bat
that runs as the PreBuild event in the ClassLibrary project handles running
the res2exe command.
- Rich