I have the same project that needs to be compiled with .NET and Compact.NET Framework.
- Can I create a C # compiler that compiles my project from both sides?
Some functions are missing in the CF.NET Framework, so I created it (creating classes that have exactly the same name and options as in the .NET Framework. If I destroy these classes with an attribute like [CF35], you can analyze the project and:
- Use this class when compiling a project using CF.NET
- Ignore this class when compiling a project using .NET
?
Thanks for all the constructive answers.
[EDIT]
I know a solution that consists of creating two projects that reference the same files. The problem is that you have to make up both manually each time. Moreover, when you add a file to one file, you need to open the second one and refer to it too, that it just went too far, and according to the fact that we are working a lot on the same project, I would like to do this part automatically.
Seems possible?
[EDIT 2] Everything works fine except for ... resource files!
So, to resume work, I have three projects:
- development project (CF.NET)
- release project (CF.NET 3.5), including all files through ""
- release project (NET 3.5), including all files through ""
As said, everything works fine, but now my problem is to use resource files.
How to apply a method to use it?
- When I use a development project, the resource file is correctly extracted
- When I use two other projects, ResourceManager raises MissingManifestResourceException
Any idea?
Arnaud F.
source share