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

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
 
M

Mattias Sjögren

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
 
P

ping235

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top