Coder Social home page Coder Social logo

autot4's People

Contributors

bennor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

autot4's Issues

Request : Set Custom Tool to TextTemplatingFileGenerator

In code generation scenarios files are copied in to project directories, including *.tt files. Upon loading a solution, (at least in VS2017) new files added into a project folder are added in to the project file in Visual Studio. However, those files with a .tt extension do not have the Customer Tool property set.

It would be extremely useful to have this property set on all .tt files where it is blank.

Thanks!

How does this works?

Hi,

I installed this, and I have a EF edmx file in my solution with POCO generators.
However, when I build my solution, my generators are not triggered, I have mo manually open EF model and save it for generators to generate the POCO classes

Do I miss anything on setting this up?

Thanks

How to specify which TT files to run. I.e. exclude TT files from being AutoTransformed

This tool works (only too well). I've tried others that throw an error trying to transform my TT files.

However, I need to be able to specify which files should be Transformed so that this tool doesn't blanket transform all my TT files upon build.

One suggestion would be to check the 'Build Action' on the TT file, and only transform if it is set to 'None' this way I could selectively set the TT files I don't want transformed to 'Content' and have them skipped.

Add an option to add a list of dependent projects for templates.

When you have another project that is scanned by a template and that project contains modified source code, it would be nice to set the template has dependent of the other project build.

It would be similar to AutoRunCustomTool but for dependent projects of a template execution.

All templates could have a list of dependent projects.

  • When an active project is built, we can run templates in dependent projects. Then scan all solution for T4 that contains that project name in their dependent projects list and run those templates if they are not in effectively built projects (they have not changed). So they can be executed if they have not changed and are referenced by the project, or are not referenced by the project.
  • When the solution is built, we can scan all solution for T4 that contains project name of each effectively built projects (they have changed). We can then run those templates if they are not in effectively built projects (they have not changed). So they can be executed if they have not changed.

This will ensure that unchanged built projects templates are always executed.

PS : Everything will be simpler in code, the explanation is for what will happen only.

Can not install on VS2013

When I try to install the extension from VS gallery or inside VS I always get the same error:

"The extension 'AutoT4' requires a version of the .NET Framework that is not installed"

I have .NET4.5 and ._NET4.5.1

Which version do I need?

Using template as link in multiple projects, get 'This document is opened by another project.'

I manage an internal framework which is currently has multiple projects. The version for the projects come from a single solution item called CommonAssemblyInfo.cs, which has been added as a link to each project.

I would like to add a build number to the version by using a .tt file in the same way. It would be a solution item which is added as a link in each project. I'm using AutoT4 to generate the .cs file from the .tt file at build time.

It seems to be working just fine except when I do a build I get an pop-up error "This document is opened by another project." I would guess that AutoT4 is trying to execute the template in each project that is using it, and then having a collision.

Can you tell me if that is the case and if there's anyway around it?

Using VS2015

Request : Can AutoT4 watch a file and when this file is changed, trigger template execution

I use a local file (EntityList.txt) in my solution which contains a list of entities. When I change this file I want my templates to run so they generate the appropriate code if I change this file content.

Perhaps we could have an AutoT4Settings.json file alongside the solution that could control AutoT4 behaviours such as this. We could have solution dependant behaviours then as well as version control applied.

Thanks!

ExecuteOnBuild File Property

Love this extension... thank you! I was curious if you could possibly add an extension property on the files property list (call it ExecuteOnBuild) that allows you to turn on/off template execution on build on a file-by-file basis.

Support VS 2013

At least one person wants this, so I might as well make it happen.

Rebuild Solution does not compile tt files

When an individual project changes, this compiles the tt files reliably. However, if I right-click "rebuild solution" tt files on projects with no changes are not rebuilt. Is this by design? I feel like forcing a rebuild should cause the tt files to be rebuilt too.

Support for .tt files in new .csproj projects

As described here on Stack Overflow:

I migrated a project.json/.xproj project to the newer CS2017 .csproj format.

The project contains a T4 (.tt) template file.

It doesn't regenerate its output on save or build. The output .cs file isn't nested below the .tt file either.

Is there something I have to do to get this working?

I installed AutoT4 1.2.1 and restarted VS, but it doesn't seem to update the output .cs file. Does this extension work with the newer .csproj project format?

2 questions

  1. Does this work on VS2017?
  2. Can I use this to do ALL of the following?
    a) Run all T4 templates ONLY on demand (from the VS toolbar button "transform" all t4 templates, and NOT concurrent with a build)
    b) AND excluding 1 particular template?

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.