Comments (7)
I cloned the repo and just set the args and it no longer complains about the lack of input file, but does give other error messages.
Inlined args of above
args = new[]{
@"root\proj\Web\CodeGen\test.ttx",
@"-o root\proj\Web\ClientApp\src\testing\httpMock\test.tt",
@"-r Web.dll",
@"-P=root\proj\Web\bin\Debug\netcoreapp2.2",
@"-P=root\proj\Web\bin\Release\netcoreapp2.2",
@"-u=Web",
@"-u=CodeGen",
};
Output
(0,0): ERROR The type or namespace name 'Web' could not be found(are you missing a using directive or an assembly reference?)
(0,0): ERROR The type or namespace name 'Web' could not be found(are you missing a using directive or an assembly reference?)
~root\proj\Web\CodeGen\test.ttx(10,15): ERROR The name 'BlackMagic' does not exist in the current context
~root\proj\Web\CodeGen\test.ttx(11,15): ERROR The type or namespace name 'BlackMagic' could not be found(are you missing a using directive or an assembly reference?)
from t5.
Can you try with dotnet-t4-project-tool? Do you get the same results.
T5 was created as a stopgap measure when Mono.TextTemplating didn't support .NET Core. Now that it does, I have no motivation/desire/itch for maintaining a separate fork. I would encourage you to use Mono.TextTemplating (actively maintained by @mhutch) and report the issue there if it still exists.
from t5.
from t5.
@Prinsn the dotnet-t4
package is a global tool (dotnet install -g dotnet-t4
). For installing the tool into the project as a DotNetCliToolReference
, use dotnet-t4-project-tool
. Please note that dotnet-t4
currently targets .NET Core 2.1 and dotnet-t4-project-tool
targets .NET Core 2.0, so you may have problems referencing assemblies that target 2.2.
(The need to have two different packages should go away soon, with .NET Core 3.0 local tools superseding DotNetCliToolReference
)
from t5.
@Prinsn did you see my answer mono/t4#57 (comment), does it help with your case?
from t5.
from t5.
but the attempts to solve the problem with some form of t4 were abandoned for lack of progress
Closing this on basis of the above and that Mono.TextTemplating is where this discussion should be happening anyway. Thanks all!
from t5.
Related Issues (12)
- Template using VB fails with compilation errors HOT 1
- Publish as a .NET Core (2.1) Global Tool HOT 5
- compilation err HOT 1
- Critical Memory Leak HOT 3
- Generation error if parameter directive is used HOT 6
- Does this support VS 2017 IntelliSense or syntax highlighting? HOT 1
- Tools HOT 1
- Tools HOT 1
- Tools HOT 1
- Tools HOT 1
- Tools HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from t5.