Re: Code Gen tool and the InitializeCompo nent() method
Thanks for the follow-up.
Please feel free to let me know if there's any update on this issue.
Regards,
Walter Wang (wawang@online. microsoft.com, remove 'online.')
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Code Gen tool and the InitializeComponent() method
Collapse
This topic is closed.
X
X
-
Guest replied -
Code Gen tool and the InitializeComponent() method
I'm made a RAD code generation tool that (among many other things) makes WPF
UserControls. It creates all the XAML and codebehind just fine (i.e.:
mycontrol.xaml and mycontrol.xaml. cs)
However, I also need to generate the mycontrol.g.cs file which will be
located in the obj/Debug folder.
The biggest obstacle in creating this file is the first line of code in it
which is something like this:
#pragma checksum "..\..\mycontro l.xaml"
"{406ea660-64cf-4c82-b6f0-42d48172a799}" "4809B608A4C9A3 D0764E1AD5BFEDE 59A"
Is there an API I can call to create this file. What options do I have
other than going into VS and manually creating the user control by the
correct name, and then coping all of my code-gen code into it? I will have
100s of user controls and don't want to do this manually as it goes against
to reason for having code gen tools.
Thanks.
--
moondaddy@newsg roup.nospam
Tags: None
Leave a comment: