Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
QuestionPerformance question when generating a large batch file Pin
Dan Neely19-Sep-07 8:52
Dan Neely19-Sep-07 8:52 
AnswerRe: Performance question when generating a large batch file Pin
Dave Kreskowiak19-Sep-07 8:58
mveDave Kreskowiak19-Sep-07 8:58 
GeneralRe: Performance question when generating a large batch file Pin
Luc Pattyn19-Sep-07 9:49
sitebuilderLuc Pattyn19-Sep-07 9:49 
GeneralRe: Performance question when generating a large batch file Pin
Dave Kreskowiak19-Sep-07 10:03
mveDave Kreskowiak19-Sep-07 10:03 
GeneralRe: Performance question when generating a large batch file Pin
Dan Neely19-Sep-07 11:06
Dan Neely19-Sep-07 11:06 
GeneralRe: Performance question when generating a large batch file Pin
Luc Pattyn19-Sep-07 11:18
sitebuilderLuc Pattyn19-Sep-07 11:18 
QuestionPages file attribute. Pin
Lord_Veralix19-Sep-07 7:43
Lord_Veralix19-Sep-07 7:43 
AnswerRe: Pages file attribute. Pin
Dave Kreskowiak19-Sep-07 8:52
mveDave Kreskowiak19-Sep-07 8:52 
QuestionRe: Pages file attribute. Pin
Lord_Veralix19-Sep-07 9:25
Lord_Veralix19-Sep-07 9:25 
AnswerRe: Pages file attribute. Pin
Dave Kreskowiak19-Sep-07 10:05
mveDave Kreskowiak19-Sep-07 10:05 
AnswerRe: Pages file attribute. Pin
Lord_Veralix20-Sep-07 16:48
Lord_Veralix20-Sep-07 16:48 
GeneralRe: Pages file attribute. Pin
Dave Kreskowiak20-Sep-07 17:16
mveDave Kreskowiak20-Sep-07 17:16 
GeneralRe: Pages file attribute. Pin
Lord_Veralix20-Sep-07 17:27
Lord_Veralix20-Sep-07 17:27 
GeneralRe: Pages file attribute. Pin
Dave Kreskowiak20-Sep-07 17:55
mveDave Kreskowiak20-Sep-07 17:55 
AnswerRe: Pages file attribute. Pin
Big Daddy Farang20-Sep-07 6:44
Big Daddy Farang20-Sep-07 6:44 
QuestionForm Styles.. Pin
Dio2219-Sep-07 7:03
Dio2219-Sep-07 7:03 
AnswerRe: Form Styles.. Pin
Luc Pattyn19-Sep-07 7:36
sitebuilderLuc Pattyn19-Sep-07 7:36 
GeneralRe: Form Styles.. Pin
Dio2219-Sep-07 8:43
Dio2219-Sep-07 8:43 
QuestionMonthCalendar refresh problem Pin
DeepToot19-Sep-07 5:35
DeepToot19-Sep-07 5:35 
AnswerRe: MonthCalendar refresh problem Pin
DeepToot20-Sep-07 3:34
DeepToot20-Sep-07 3:34 
QuestionC# - Sharing assembly between projects? Pin
wbjohnson19-Sep-07 5:24
wbjohnson19-Sep-07 5:24 
AnswerRe: C# - Sharing assembly between projects? Pin
Patrick Etc.19-Sep-07 15:51
Patrick Etc.19-Sep-07 15:51 
Hi Will,

Create a new Smart Device (PDA) class library project in your solution.

Right-click the project and select Add->Existing Items. Navigate to the directory that contains your library files, and select them. In the navigation window, rather than clicking the "Add" button, click the small dropdown arrow on the side of the "Add" button. It will show a menu that says "Add as Link." Select that option.

You'll see the files show up in your project with small shortcut icons attached to them. When you compile this project, it will compile the files using the Compact Framework compiler to this Smart Device project's output directory (not to the original WinForms project's directory).

This way, you have two separate projects with the same source files, that will compile to their respective target frameworks. Making edits in the files will show up in both projects.

NOTE:
If you open the files from the desktop project, you will get Intellisense for the full framework. If you open the files from the PDA project, you will get Intellisense for the Compact Framework. Even though it is exactly the same files, Visual Studio will determine which editing environment to use based on which project opened the files.

ALSO:
If you need code specific to either framework, define a symbol in your Compact Framework project properties that you can use for #if..#endif pragmas. This way you can add custom code for each framework that won't interfere with the compiled code in the other framework.

For example:

Say you define a symbol "NET_CF" in your Compact Framework project. In your code you can do something like this:

#if NET_CF
... CF code...
#else
... Desktop code...
#endif

Hope this helps



The early bird who catches the worm works for someone who comes in late and owns the worm farm. -- Travis McGee

GeneralRe: C# - Sharing assembly between projects? Pin
wbjohnson19-Sep-07 21:14
wbjohnson19-Sep-07 21:14 
GeneralRe: C# - Sharing assembly between projects? Pin
Patrick Etc.20-Sep-07 3:53
Patrick Etc.20-Sep-07 3:53 
QuestionSplitting strings while taking escaped characters into account Pin
martin_hughes19-Sep-07 5:16
martin_hughes19-Sep-07 5:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.