question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

T4 Templates unable to resolve LinqToDBT4OracleTemplatesDirectory

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
MaceWinducommented, Dec 26, 2019

~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 🤣

1reaction
MaceWinducommented, Dec 18, 2019

I’ll reopen it, as we should make sure 2.x branch still works

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found