Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ping235 - 21 May 2007 10:26 GMT
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
Mattias Sjögren - 21 May 2007 19:36 GMT
>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

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

ping235 - 22 May 2007 02:35 GMT
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

>> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.