In C++ I can autogenerate some classes and then modify an empty cpp file to
#include "myautoclass.cpp"
in the prebuild step and these classes will be compiled and linked. Is there a way to do this in C# in a prebuild step? I’m on VS2010. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way of generating classes (and any other files) is by using T4 templates.
An excellent set of tutorials can be found here.