Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework

  • Thread starter Thread starter ping235
  • Start date Start date
P

ping235

Recently, i am busying myself on a project that support both .NET
Framework 2.0 and .NET Compact Framework 2.0, with the same set of c#
code, but have different project properties and references.

The question is how could I achieve this, should i create separate
project for each purpose?

The most simple approach is creating two separate projects, but i'll
must maintain two sets of codes.

Any other ideas?

Thanks,

ping235
 
The most simple approach is creating two separate projects, but i'll
must maintain two sets of codes.

Not at all. You can include the same source files in both projects.


Mattias
 
Hi Mattias,

Thanks, but there is a strange matter.
I layout my project directories as below:

--ProjectRoot <the root directory, all files placed in>
|--Common <place the common c# source files shared by both>
|--*.cs
|--ProjectForCE <place the *.csproj for WinCE>
|--CE.csproj
|--ProjectForPC <place the *.csproj for PC, Full .NET F>
|--PC.csproj

I tried to get the CE project and PC project to refer the common c#
files placed in Common folder, but strange things occurred, the VS2005
copy the whole Common folder into the project's own folder, doesn't
refer to the shared Common folder as i imagine.

So I think that maybe ms doesn't recommend this kind of directory
layout, but what is the legit?

ping235
 
Back
Top