471,598 Members | 1,153 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

c# precompiler

Hello all,
Has anyone written a project/code/document on a possible implementation for
a c# precompiler?

I want to build a precompiler that will modify attributed code, then submit
the on-the-fly modified code to the actual c# compiler.

I want to integrate this into the MSBuild process.

If you have done something similar or have some ideas, please let me know.

Jan 27 '06 #1
2 3154
Carlos De Matos wrote:
Hello all,
Has anyone written a project/code/document on a possible
implementation for a c# precompiler?

I want to build a precompiler that will modify attributed code, then
submit the on-the-fly modified code to the actual c# compiler.

I want to integrate this into the MSBuild process.

If you have done something similar or have some ideas, please let me
know.


Isn't that hard to debug? Wouldn't it be better to have a code
generator you could call from an msbuild task, which generates code in
a partial class file ?

FB

--
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------
Jan 27 '06 #2
Hi Carlos,

If you decide to go the route of creating a custom task, you may find
the following link helpful. I am building custom tasks, and ran across
these during my research.

http://www.tod1d.net/blog/2006/01/ms...rite-task.html

I also have compiled a list of MSBuild resources you might find
helpful:

http://www.tod1d.net/blog/2005/12/ms...resources.html

--
Tod Birdsall, MCSD for .Net
software blog: http://tod1d.net

Jan 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.