Giter VIP home page Giter VIP logo

Comments (7)

sayedihashimi avatar sayedihashimi commented on August 24, 2024

@james1301 when you create files from the VS Add New Item Dialog, that file(s) should open in the editor without customizations. What behavior are you seeing? Please be specific.

from template-sample.

james1301 avatar james1301 commented on August 24, 2024

@sayedihashimi I right-click on my C# project, go to Add New Item, navigate to my item template and click Add. The new class gets added to my project but does not open up. If I do the standard class template it opens up as expected.

from template-sample.

james1301 avatar james1301 commented on August 24, 2024

Using latest non-preview Visual Studio 17.4.3.

from template-sample.

james1301 avatar james1301 commented on August 24, 2024

That link I sent, suggests that is how to do it for non-command line cases.

image

from template-sample.

sayedihashimi avatar sayedihashimi commented on August 24, 2024

@james1301 what version of Visual Studio are you using? FYI the whole team (me included) is on vacation so responses may be delayed.

Edit: I see your BS version in another comment.

@phenning is this a known issue?

from template-sample.

phenning avatar phenning commented on August 24, 2024

Actually, we do require the open post action to be present in the template.

@james1301 do you have the file generated by the template listed as a primary output?

If it is the only one, β€œfiles” in the post action should be set to 0 since it is a zero based index.

As an aside, it would be interesting to have item templates which generate a single file to not require a post action to open the file in Visual Studio. I think we’d need to have a way to have authors opt out, and they would need to have it anyway for older versions of VS and VSMac, or if there were multiple files you may not want to have them all opened.

from template-sample.

james1301 avatar james1301 commented on August 24, 2024

Thanks @phenning and @sayedihashimi I have got this working with adding the Primary output section, Maybe should have noticed that bit πŸ™‚. Yeah would be more simple for item templates to not need this.

Thanks again for all of your help, I think my templates are all how I want them for the moment πŸ™‚. Replaced our old template process which was terrible to update anything and unclear from source control point of view.

from template-sample.

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.