How to override Ant Design select arrow over the project? - antd

There is Ant Design suffixIcon property which allows to customize select arrow icon in a single select. Is there any way to override suffixIcon for all selects over the whole project?

The only way I know to make changes in the whole project is via the Config Provider, but I can't find a specific config to change the suffixIcon

Related

MVC Shared layout between projects

I was wondering if there is a way to share the _layout.cshtml file across all projects. This way if I ever wanted to make a change to our companies page layout I only have to change it in one place. From the research I've seen so far people have made mention of possibly creating a .dll file. Also I'm not talking about areas in mvc. What I want is for all my separate applications to reference one shared layout page instead of each application having it's own layout.
Once pattern (which I've been involved in the implementation of) is to make a Nuget package containing the layout file (and anything else you want to share in common between all your sites, such as other CSS files, error handling routines, etc), and installing the package (from a private feed) into each project which requires it, thus overwriting the default layout file).
The source of the Nuget package is itself a C# MVC project with a custom nuget config which makes sure that it includes just the necessary content from the C# project into the distributable nuget file.
Apart from ease of installation and separation of concerns, another big advantage of distributing via Nuget is that if you make changes to the source files and update the package, each application which has the package installed can choose when would be a good time to update to the latest version (if at all), so you don't have issues where if you change one thing you have to change everything which depends on it all at the same time (For instance, the Add as Link option in Slappywag's answer would suffer from that problem - if you changed the layout file in that scenario it would immediately propagate to all the projects which use it, so if you wanted to make any other changes in that project you'd have to deal with any implications of the layout change before you could publish your other changes, which might not be desirable/convenient at the time.)
The way I've achieved this in the past is to use 'add as link'.
Firstly, add your layout files to a new library which can be shared between your different projects. Then in each of your projects which you want to use the layout page add the layout page as a link:
In solution explorer right click on the folder in whcih you want to place your layout file.
Click add existing, and select the layout file you want to use.
Click the little arrow on the right hand side of the 'Add' button, and select 'Add as link' from the dropdown. Your layout file will now be in place.
Depending on how your project is set up you may need to follow the steps in this answer to ensure your linked files are copied at build time. You may also want to make sure the copied files are being ignored by your source control.
Update your ViewStart to use the new layout file.
Any changes you need to make to the layout can be made to the original file, and on build changes will be picked up by your projects.

Add custom workflow to "Create project" screen

is there a way to add custom workflow to "Create new project" screen?
http://s13.postimg.org/f1acwcerr/Untitled_1.jpg - create new project screen
Or make my custom workflow to be default, but seems that it's not possible at the moment.
The problem is that I created a workflow that suits my needs better than those which are available by default at marketplace. I would like to use this workflow as default for all projects. Or have an easy way to create a new project based on my custom workflow.
Thanks
There is no way to set a user created workflow as the default but there is a issue opened with Atlassian created about it. (See JRA-9363)
Your only option would be to create the project and then immediately change over its Workflow Scheme to be that of your custom one that has the custom workflow associated to it.

TFS Sub-area name change

I would like to know if its possible to edit the name of a sub-area in TFS. I know I can create new areas and delete but I can't seem to find a way to rename. There might be implications around this that would keep someone from performing this task.
In TFS 2012, you should be able to go the same screen you create the areas and double click (or right click on select edit) on the area you want to rename. At that point, you should be able to modify the name accordingly.

How to set default compiler options for XE2?

I am unable to figure out how to change default build/compile settings. The little default checkbox in the lower left of the project options dialog is gone. The documentation states:
The Default checkbox that appeared at the lower edge of many Project Options pages has been removed from the product. If you want to specify options as the default for multiple projects, the suggested alternative is to use option sets instead.
I'm going round and round about "Options Sets", "Configuration Manager" etc.. Is this even possible? What does "specifying options as the default for multiple projects" mean? If I have multiple projects then that means those projects and their options exists, how can I set a default value to something already set? What about new projects?
That feature really has gone and there is nothing like it any more in the product, to the very best of my knowledge. I think the best you can do is as follows:
Create a new project.
Change the project settings to whatever you want them to be.
Change anything else in the default project that you don't like, for example { Private declarations }.
Add this project to the repository.
use File | New | Customize to move this project template onto the File | New menu for easy access.
Project->Options->Target. You can set up a base configuration, and then provide different options that differ from the base for Debug and Release. You can also create custom option sets, which means that they're different from the standard Debug and Release. You can also have different configurations based on different targets (VCL app's Debug build has different options than a FMX app's Debug build, etc.)
To change the default options first starts with defining "default". You can start as low as the "base configuration" through Project->Options->Delphi Compiler, and then choosing the All Configuration target. You can refine it somewhat by altering the base configuration for the Debug and Release configurations. You can also define your own option sets, using the Save button next to the Target list.
Your specific question about "specifying options as the default for multiple projects" means is the base configuration. From there, you refine those base options to give you debug settings and release settings (which can also be saved as your initial defaults, and refined on a per-project basis).
So, for a specific answer, you can change the default by modifying the base configuration, or by getting more specific by modifying the debug or release configurations that inherit from that base, depending on what your end result needs to be and what you're trying to accomplish.

Can I get the default template to not require items to build?

The Items to build being added as a requirement in the default template appears to be doing so in the editor for Activities.BuildSettings? since I don't see it anywhere in the xaml. Or perhaps I could do something in the metadata collection to override the setting?
I want to run a custom task whether or not there is something being built with msbuild. What are my options?
Add a dummy project for TFS to build.
You can specify a targets file in the items to build. This targets file is using the msbuild syntax. In there you can specify what you want.

Resources