I am using TFS2018 and I have saved a build definition template. Is there a way to edit the template?
Not directly using the website.
You could do 2 things:
a) Create new Build from the existing template, edit and save as Template.
This can be done with the website.
b) Use the rest-api to update your template: Create or update a build definition template - visualstudio.com
Related
I have an existing project that is running Umbraco 7.10
Whenever we create a new view, the template is not created in Umbraco (but new Partials are) when we deploy to existing environments
We are not using uSync at present and the umbracoSettings.config template section is set to Mvc rather than WebForms
What is stopping the template being present in Umbraco? is it something I am missing in the cmsTemplate table?
Many thanks
You need to create the template in Umbraco and then manually include in your VS project not the other way around.
There is a db component to a template/view which only gets created if you do things from Umbraco rather than VS. Partials do not have a db component and are simply read from the file system.
uSync would be a good move if you have separate databases for different environments otherwise you will have to add the template to each Umbraco instance.
Have followed the documentation
https://enupal.com/craft-plugins/stripe-payments/docs/plugin-development/template-overrides
Created a folder in my templates folder
templates/_stripe/donations/_frontend/[all the folders within frontend folder]
How can I include this in my template?
You only need to add the next path under the Templates Folder input on your payment form:
_stripe/donations/_frontend
And don't forget to enable the Custom templates lightswitch
Then display your payment form as usual (it will take your template override folder)
{{ craft.enupalStripe.paymentForm('handle') }}
TFS 2018 on-premise.
I have created a new Work Template for bugs from /_admin/_work?type=Bug&_a=templates which pre-populates a number of fields on a new bug when clicked-through via a URL posted elsewhere.
What I'd like to be able to do is create the new work item based on the template from the + button on the kanban board.
How do I bind that + > Bug link to my Work Template?
Sorry it's not able to do this.
Q: How do I set a default template for a team?
A: The feature to set a default template for a team isn't a supported
feature at this time.
You could only
Adding a work item using a template is to open the template link
within a browser window
Apply a template to new or existing work item(s)
The + Bug will only open a Bug work item with default template. Then you could choose the template later.
More detail please kind refer our official doc here: Use templates to add and update work items
I'm developing a plugin based application using MEF and Asp.NET MVC 3 and I want to create a custom project template to give third party developers when creating new plugins for application.
I can easily export it as a project template but since the host is developed in ASP.NET MVC 3, It seems more logical to be inside new Asp.Net MVC 3 project dialog.
Any ideas?
After some digging and 'reflecting', I got a template to successfully show up in the dialog. Most of the credit goes to this post: Add custom viewengine to New project dialog?
The key to getting it working on my machine (64bit) was the registry path mentioned in the answer in that post. I also found via Reflector there is a SupportsHTML5 key too, if you need that.
Here is a screen shot of my template:
and here are the registry keys (there is also a title and description at the MyOwnTemplate node)
If you look up your template directory for Visual Studio, and check out the template:
MvcWebApplicationProjectTemplatev3.0.cs.zip
(VS Install dir)\Common7\IDE\ProjectTemplates\CSharp\Web\1033
The thing to look at here is this line:
<WizardExtension>
<Assembly>Microsoft.VisualStudio.Web.Mvc.3.0, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</Assembly>
<FullClassName>Microsoft.VisualStudio.Web.Mvc.UserInterface.MvcTemplateWizard</FullClassName>
</WizardExtension>
So they have got a custom Wizard working here.
these questions look to be similar:
Blank Asp.net MVC template
How to write an MVC3 Project Template that will offer option Razor or .aspx views
Basically, they say the wizard isn't open source but you could potentially write your own custom wizard.
EDIT:
here are a couple of page that tell you how to create your own wizard:
http://msdn.microsoft.com/en-us/library/ms185301.aspx
http://www.codeproject.com/KB/system/create_VS_wizard.aspx
I just wrote a blog post that covers how to do this and provides a zip file and a batch file with an example.
http://haacked.com/archive/2011/06/06/creating-a-custom-asp-net-mvc-project-template.aspx
I started downloading the MVC Template, and created a new project using this template. I Compiled the application, and everything went fine so far.
My question is, where could i find the new sonic.exe file that generates the MVC DAL?
Is that the old sonic.exe?
So long as you're not using Express then the classes are created when you build your applicaion. Sometimes this doesn't work and you'll need to right click on the Models/Classes.tt and choose 'Run custom tool'.
You should then have a Classes.cs file nested under the Classes.tt file and the DAL objects are defined in there.