Re: Dual Platform Development

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks Paul,

Yes -- it all works great with Solutions in the same folder and all of the
same files except for the Solution files.
...... until image files are added to the Resources.

Then the file My Project\Resources.Designer.vb proves to be incompatible
between platforms:

The CE platform creates the Resources.Designer.vb file with:
...
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
Friend Module Resources
...
But the Desktop platform creates the file with:
...
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder",
"2.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
Friend Module Resources
...

The CE platform produces Build errors with the Desktop file. The Desktop
file will build, but produces runtime errors when any image resource is
called.

So, for now, I have to keep switching the Resources.Designer.vb file every
time I want to switch platforms.



"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:Oj0se$oQIHA.5136@xxxxxxxxxxxxxxxxxxxxxxx
I think you need to go back and verify that the sln files are really in the
same folder. If they are, there should be no copying of files when you add
them to a different project. My guess is that there's a subdirectory
containing your second project (just because you don't create a directory
for the solution doesn't mean that the whole project doesn't get one, named
the same as the project; it just means that there's not another layer below
that which has the solution in it).

Paul T.

"hs1290" <alw@xxxxxxxxxxxxx> wrote in message
news:ua9I9toQIHA.3516@xxxxxxxxxxxxxxxxxxxxxxx
I want to develop two VS2005 projects -- one for a CE device and one for
the desktop -- that will share the same code, albeit with many #IF
WINDOWSCE / #ELSE sections.

Project 1 is created as a Visual Basic/Windows/Windows Application
(Creating its own directory). Just the Form1 with no additions or
changes.

Project 2 is created as Smart Device/Windows CE 5.0/Device Application
with a different name, but in the same folder (NOT creating its own
directory).
I delete Form1 from Project 2 and, in its place, I add the existing Form
from Project 1.

When I try to build Project 2 (CE Project), I get an error: "error
BC30456: 'Font' is not a member of
'System.Windows.Forms.AutoScaleMode'." -- which I can fix by adding #IF
WINDOWSCE / #ELSE to the Form1.designer.vb file.

BUT ........ in any case, Project 2 just COPIES the files from Project
1 -- it doesn't SHARE the same files.

How can I create my two projects that will SHARE the same code files, so
that I don't have to copy every modification to two code files in
different locations ??





.



Relevant Pages

  • Re: Connectivity Options never opens
    ... I don't have Platform Builder 6.00. ... re-install 5.0 two days ago and I still don't have that folder. ... * I have tried this same thing under Admin. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Debugging DAT file failures
    ... \Windows folder, SYSGENED my platform to make sure I was clean, check ed the ... re-checking and it seems that on this platform, it doesn't create any of the ... Chris Tacke, Embedded MVP ... having it as a separate drive anyway). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: PB5.0: Difficulty cloning USB function client driver (ufnmdd.dll)
    ... Since that is just a LIB, not a dll, all you need to do is copy the folder ... to your platform. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Dual Platform Development
    ... there are certainly things that are different on each platform. ... allowing you to have a separate folder for desktop and device ... until image files are added to the Resources. ... How can I create my two projects that will SHARE the same code files, ...
    (microsoft.public.windowsce.platbuilder)