T4 Templates unable to resolve LinqToDBT4OracleTemplatesDirectory
See original GitHub issueI’m creating a .NET Core 3.1 Console Application in Visual Studio 2019. I have added the nuget package linq2db.Oracle.Managed (2.9.4). I have copied LinqToDB.Templates\CopyMe.Oracle.tt.txt to .\DataModels\CopyMe.Oracle.tt. Running TextTemplatingFilePreprocessor with .\DataModels\CopyMe.Oracle.tt doesn’t work:
error : Failed to resolve include text for file: C:\...\$(LinqToDBT4OracleTemplatesDirectory)LinqToDB.Oracle.Tools.ttinclude
It seams that linq2db.Oracle.Managed.props is not compiled or included in the project.
Environment details
linq2db version: 2.9.4 Database Server: Oracle Database Provider: Oracle.ManagedDataAccess.Core (2.18.3) Operating system: Windows 10 .NET Framework:.NET Core 3.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
T4 Models
Templates folder in your project, this folder contains all needed T4 stuff to generate your model. To create a data model template copy...
Read more >Issue with LinqToDb T4 templates for a SqlLite database ...
I'm trying to use a local SqlLite database (in my app_data) folder with LinqToDb. Anybody an idea why LinqToDb cannot work with the...
Read more >linq2db.t4models 5.2.2
This nuget package contains database scaffolding T4 templates to generate POCO classes from your database. You can read about T4 templates options here....
Read more >Transform all t4 templates not working after updating from ...
Transform all t4 templates was working fine in 15.8.1 and after updating to 15.8.2 I am getting the following error: Error Running transformation:...
Read more >The Fastest Way To Mock a Database for Unit Testing
Once that's done, we need to modify the T4 template for our needs. Here are the steps to modify the template: Open the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
~For some yet unknown reason, changing custom tool doesn’t fix SDK project (old netfx projects handle it properly) - probably
TextTemplatingFilePreprocessor
changes something in project properties so it cannot recover after it 😄~reason found: I’m stupid 🤣
I’ll reopen it, as we should make sure 2.x branch still works