<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings</link><description>Hi. 
 I am looking for a way to have a build directory name regardless of the directory name given by the user. 
 I can access the project folder by this generic command but this is easy because the project name is not changed(at least frequently) 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Nov 2023 19:20:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings" /><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/453841?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 19:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d2689e2-329b-4a66-b875-8cbcd1a057ca</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;Ok, thank you so much for your information. I will keep an eye on this ticket if you could share any updates with us&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/453758?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 13:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b1616c6-1c58-425e-a9d6-3ac61af9c11e</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;I spoke to the team again, and it appears that you are correct, and there is no way to accomplish what you are looking for at the moment. They let me know that they will look into the viability of supporting this feature, so it may be added in a future update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/452837?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 15:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b51c98a-aa5f-46aa-b466-908f91667bbf</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81283" url="~/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings/452601"]&lt;p&gt;Please try this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="evolution-code-editor theme-clouds"&gt;&lt;a href="#" class="fullscreen"&gt;&lt;/a&gt;&lt;/div&gt;[/quote]
&lt;p&gt;ok this one is for task binding, how about the task side?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
	&amp;quot;version&amp;quot;: &amp;quot;2.0.0&amp;quot;,
	&amp;quot;tasks&amp;quot;:[
		{
			&amp;quot;label&amp;quot;: &amp;quot;Board Flash&amp;quot;,
			&amp;quot;type&amp;quot;: &amp;quot;shell&amp;quot;,
			&amp;quot;command&amp;quot;: &amp;quot;west flash --runner=jlink -d build_nrf_t/  --hex-file   ${workspaceFolder:custom-prj}/build_nrf_t/zephyr/merged.hex&amp;quot;,
			&amp;quot;presentation&amp;quot;: {
			&amp;quot;clear&amp;quot;: true,
			&amp;quot;reveal&amp;quot;: &amp;quot;always&amp;quot;
			}
        }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it didn&amp;#39;t work when I use&amp;nbsp;&amp;quot;${activeConfig}&amp;quot; instead of &lt;em&gt;build_nrf_t&lt;/em&gt; directory&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="gtx-trans" style="left:476px;position:absolute;top:409px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/452601?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 13:06:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373e0d3d-1033-4920-91e8-75a742048fa6</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;I&amp;#39;ve heard back from the team. A generic macro for addressing all build folders seems to be difficult, but there exists a macro for addressing the currently active build configuration, which may work in its place.&lt;/p&gt;
&lt;p&gt;Please try this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;quot;flash&amp;quot;: [
    {
        &amp;quot;taskName&amp;quot;: &amp;quot;Board Flash&amp;quot;,
        &amp;quot;buildConfigs&amp;quot;: [
            &amp;quot;${activeConfig}&amp;quot;
        ]
    }
]&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/452249?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 11:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df2c5408-efe3-4c93-963a-4c328c36e8b3</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;not most recently built/created, whatever I select, I can switch between these configs depending on what I need to work on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example. I have 3 different build configs, right?, and all these can have their own task binding, So,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in these cases, I have to specify the build directory name for each like this manually.&lt;/p&gt;
&lt;p&gt;&amp;quot;flash&amp;quot;: [&lt;br /&gt; {&lt;br /&gt; &amp;quot;taskName&amp;quot;: &amp;quot;Board Flash&amp;quot;,&lt;br /&gt; &amp;quot;buildConfigs&amp;quot;: [&lt;br /&gt; &amp;quot;${workspaceFolder:customproject}\\build_lp&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;${workspaceFolder:customproject}\\build&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;${workspaceFolder:customproject}\\build_1&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; ]&lt;br /&gt; }&lt;br /&gt; ]&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1698234054972v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But i dont want to do it. Id like to have&amp;nbsp;a representation of this custom build directory name&amp;nbsp;like ${build_dir}&lt;/p&gt;
&lt;p&gt;please have a look at this:&amp;nbsp;&lt;a id="" href="https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html"&gt;https://nrfconnect.github.io/vscode-nrf-connect/guides/build_bind_tasks.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/452093?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 21:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbf36bfc-7e21-4db8-a120-b0c5d49337ca</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ok, so since there are multiple build directories present, am I correct in assuming that the task binding should always be the most recently built build directory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/452050?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 16:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfc56cd7-a11d-4af6-9014-2c190619d611</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/oivind"&gt;Øivind&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote userid="81283" url="~/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings/451963"] Will there be multiple build folders present with different names?[/quote]
&lt;p&gt;Yes definitely, i.e asset tracker v2, id like to have a new build config directory for low power configs, debug configs, aws etc...&lt;/p&gt;
&lt;p&gt;you know, when you click the application on the nrf extension. it allows you to create a new build configuration. and you can give a build directory name.&lt;/p&gt;
[quote userid="81283" url="~/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings/451963"]Could I also ask why the name of the build folder is inconsistent?[/quote]
&lt;p&gt;Well, I am not quite sure, because it is specific to the build configuration I&amp;nbsp;have. that is good to have an inconsistent folder name which I can give a name whatever I want.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am just wondering how can I represent the build directory name during task binding regardless of the build directory name. I mentioned it here.&lt;/p&gt;
[quote userid="117272" url="~/f/nordic-q-a/104963/get-buil-directory-name-for-nrf-connect-taskbindings"]&lt;p&gt;For example. here what can I use instead of&lt;em&gt;&lt;strong&gt; \\build&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="content-scrollable-wrapper" style="max-width:100%;overflow:auto;max-height:none;"&gt;&lt;div class="evolution-code-editor theme-clouds"&gt;&lt;a href="#" class="fullscreen"&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/451963?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b61585-8949-45d2-aad9-7e49f831cdf5</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;How do you envision the directory layout to be? Could you give me an example? Will there be multiple build folders present with different names?&lt;/p&gt;
&lt;p&gt;Could I also ask why the name of the build folder is inconsistent? So that I can better relay your use case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get buil directory name for nrf-connect.taskBindings</title><link>https://devzone.nordicsemi.com/thread/451951?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 11:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f57b2f35-741c-42e0-b5a9-c0ef873a476b</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will ask the team responsible for the VS Code extension about this and get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>