Azure Devops extension (Build task) enable/disable or show/hide control based on user action

Azure Devops extension (Build task) enable/disable or show/hide control based on user action

Content Index :

Azure Devops extension (Build task) enable/disable or show/hide control based on user action
Tag : tfs , By : flesk
Date : November 24 2020, 05:47 AM

wish help you to fix your issue You're looking for the visibleRule property.
You could do it like so:
  "name": "defPath",
  "type": "boolean",
  "label": "Default path",
  "name": "customPathInput",
  "type": "string",
  "label": "Custom path",
  "visibleRule": "defPath = false"

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

Disable/enable Azure startup task based on build configuration

Tag : azure , By : s8k
Date : March 29 2020, 07:55 AM
will be helpful for those in need The answer by NR_Jacob inspired me, thanks! I found out that you could pass a setting of the role to the batch file. So you add a setting like this: And specify true or false for each individual Service Configuration.
Then in the ServiceDefinition.csdef you add the and lines:
<Task commandLine="newrelic.cmd" executionContext="elevated" taskType="simple">
        <Variable name="DisableNewRelic">
            <RoleInstanceValue xpath="/RoleEnvironment/CurrentInstance/ConfigurationSettings/ConfigurationSetting[@name='DisableNewRelic']/@value" />
IF "%DisableNewRelic%" == "true" (
    ECHO Found setting to disable New Relic, exiting... >> "%RoleRoot%\nr.log" 2>&1
    EXIT /B 0

how to enable control on form based on user action on user control without requiring post back

Tag : javascript , By : woxorz
Date : March 29 2020, 07:55 AM
it helps some times If you write java script in user control and try to get save button which is in web page then you will get button control on run time because your user control is part of your web page on run time.
so, Call one java script on radio button/combo box change event and enable/disable your button based on requirement.
<script type="text/javascript">
    function test() {
            document.getElementById("btnSave").disabled = true;
<asp:Button ID="btnSave" Text="save" runat="server" />

How to disable EditText control during activity load and enable it by user action

Tag : java , By : yarry
Date : March 29 2020, 07:55 AM
I wish this helpful for you I'll put the answer here as it seems this question is asked a lot and the answers are never really understood or clear.
This is the way that I did it without using XML
//Disable the itemName control

        //Disable the itemPrice control
//Enable the controls


Azure DevOps Set Build number variable in a Build Task

Tag : azure , By : dummyadresse
Date : March 29 2020, 07:55 AM
I hope this helps .
Is there a way I can have a Task in my Build to update that ProjectBuildNumber and update the Build number in Azure DevOps?
Write-Host "##vso[task.setvariable variable=ProjectBuildNumber;]YourUpdateValue"

Write-Host "##vso[build.updatebuildnumber]xxx.$(ProjectBuildNumber).xxx.xxx"
PUT https://dev.azure.com/{organization}/{project}/_apis/build/definitions/{definitionId}?api-version=5.0

How to build a VS extension on an Azure DevOps build agent?

Tag : azure-devops , By : Willem van Schevikho
Date : March 29 2020, 07:55 AM
it fixes the issue I'm note sure if this package contains the VS extension targets you are looking for. But by including a reference to it and restoring it you may be able to get the targets onto the agent and get your build working.
Additionally, you can probably create a package containing the targets you need with NuGet, publish it to a package repository and then restore that onto your agent during build time.
Related Posts Related QUESTIONS :
Privacy Policy - Terms - Contact Us © scrbit.com