M
moondaddy
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 "..\..\mycontrol.xaml"
"{406ea660-64cf-4c82-b6f0-42d48172a799}" "4809B608A4C9A3D0764E1AD5BFEDE59A"
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.
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 "..\..\mycontrol.xaml"
"{406ea660-64cf-4c82-b6f0-42d48172a799}" "4809B608A4C9A3D0764E1AD5BFEDE59A"
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.