Giter Club home page Giter Club logo

Comments (7)

Prinsn avatar Prinsn commented on June 6, 2024

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.

atifaziz avatar atifaziz commented on June 6, 2024

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.

Prinsn avatar Prinsn commented on June 6, 2024

from t5.

mhutch avatar mhutch commented on June 6, 2024

@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.

Konard avatar Konard commented on June 6, 2024

@Prinsn did you see my answer mono/t4#57 (comment), does it help with your case?

from t5.

Prinsn avatar Prinsn commented on June 6, 2024

from t5.

atifaziz avatar atifaziz commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.