Move your .tt
file to the project where you want the generated files to be:
- Solution "MySolution"
|-> Project "DBProject"
| |-> MyModel.edmx
|
|-> Project "EnumsProject"
|-> References
| |-> DBProject.dll
|
|-> MyT4Template.tt
|-> Generatedfiles.cs
and then make sure you provide the proper path to the EDMX
file inside the T4 template so that it can read it properly:
var edmxPath = "..\DBProject\MyModel.Edmx";