Code Monkey home page Code Monkey logo

Comments (7)

voieducode avatar voieducode commented on August 23, 2024

I have tried adding <#@ assembly name="NetStandard" #> and it seems to fix it at least for .NET Standard

from docopt.net.

voieducode avatar voieducode commented on August 23, 2024

I have initially tried to mitigate the problem by having the path correctly set in the NuGet install.ps1 script. The approach is brittle, but it provides some mitigation for the fresh package installs. Looking at this again, this is not supported anymore in VS 2017+ - I will dig a bit deeper.

from docopt.net.

atifaziz avatar atifaziz commented on August 23, 2024

I have tried adding <#@ assembly name="NetStandard" #> and it seems to fix it at least for .NET Standard

I wonder though how that'll sit with a non-SDK-style project that targets .NET Framework.

I do find what's being attempted with T4 is somewhat split & partial given that some code generation happens in the library:

public virtual string GenerateCode()
{
return "// No code for " + Name;
}

Perhaps it's time to look for a fresh approach to the problem? Perhaps something that's done via an MSBuild task? I don't have any proposal off the top of my head at the moment.

from docopt.net.

voieducode avatar voieducode commented on August 23, 2024

Yes I agree. I am a bit disconnected from the .net world. How popular is T4 nowadays?

from docopt.net.

atifaziz avatar atifaziz commented on August 23, 2024

How popular is T4 nowadays?

Can't speak for everyone, but I think it's fine if used in a limited way that's not connected to the IDE and works cross-platform via mono/t4. I think what people love about T4 is the quick inner dev loop with saving and seeing the generated code/text update almost immediately. I wish dotnet watch could make up for that, but I think it's somewhat limited to web development scenarios for now. I don't have the cycles to explore the options with MS Build because I'd rather channel my energies on exploring the source generator method in PR #77. If I get lightbulb moment for T4 part or a replacement, I'll drop a PR (no promises).

from docopt.net.

voieducode avatar voieducode commented on August 23, 2024

Yes I would rather invest in the source code generator as well.

from docopt.net.

atifaziz avatar atifaziz commented on August 23, 2024

Closing since T4 support was removed in PR #136.

from docopt.net.

Related Issues (20)

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.