<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Post build event problem in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598691#M7329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me and two other developers have been pulling our hairs for 4 hours to find out where this post build event was coming from and the above reply is definitely not helping.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 13:05:02 GMT</pubDate>
    <dc:creator>Ceesvan_Altena</dc:creator>
    <dc:date>2016-12-12T13:05:02Z</dc:date>
    <item>
      <title>Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598689#M7327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got a project that was created with ArcGIS Runtime for .NET (Windows). The project comes with the following post-build event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;REM copy runtime deployment folder to output directory
pushd $(MSBuildThisFileDirectory)..\..\sdk\net45\
for /d %%i in (arcgisruntime*) do (
&amp;nbsp; xcopy "%%i" "$(TargetDir)%%i\" /S /Y
)
popd
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried replacing it with my own commands but, not only doesn't my code work, even if I remove all of the post-build event code and save and exit, the Esri post-build event code always comes back as shown above. My code works fine in other projects. It's just the project that was created with ArcGIS Runtime for .NET. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598689#M7327</guid>
      <dc:creator>RonVincent</dc:creator>
      <dc:date>2021-12-12T01:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598690#M7328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you run the script separately from visual studio, does it work / what is the error message you get?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you should create deployment folder to the bin folder using &lt;A href="https://developers.arcgis.com/net/desktop/guide/deployment.htm" title="https://developers.arcgis.com/net/desktop/guide/deployment.htm"&gt;Create an ArcGIS Runtime deployment—ArcGIS Runtime SDK for .NET | ArcGIS for Developers tool &lt;/A&gt;after that it should be simple copy full folder structure (including arcgisruntimexxxx folder) to the new location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 12:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598690#M7328</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-09-21T12:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598691#M7329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Me and two other developers have been pulling our hairs for 4 hours to find out where this post build event was coming from and the above reply is definitely not helping.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 13:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598691#M7329</guid>
      <dc:creator>Ceesvan_Altena</dc:creator>
      <dc:date>2016-12-12T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598692#M7330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Could you describe what is the exact issue that you are running with? Which SDK version you are using and are you using nuget / install approach?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 13:30:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598692#M7330</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2016-12-12T13:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598693#M7331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The post build event is in the nuget package (look for the .targets file). This is a required step, or your app won't run, since it deploys required native libraries and resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The post above doesn't say what the issue with this is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 18:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598693#M7331</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2016-12-12T18:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598694#M7332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are also encountering this problem.&lt;/P&gt;&lt;P&gt;To be clear, the code that is added to the postbuild event works.&lt;/P&gt;&lt;P&gt;The problem is that we need to add extra code and that is not possible.&lt;/P&gt;&lt;P&gt;Any changes that are made to the postbuild event are ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2019 01:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598694#M7332</guid>
      <dc:creator>AndrewWilcockson</dc:creator>
      <dc:date>2019-06-06T01:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598695#M7333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;To be clear, the code that is added to the postbuild event works.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;gt; The problem is that we need to add extra code and that is not possible.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Could you be more specific?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;v100.x runtime never used to set (or override) the postbuild setting (poor wording used in my earlier response). In v100.0 it defined a target that was dependent on the build. Since v100.1, it instead&amp;nbsp;accomplished this&amp;nbsp;by adding the files as contents instead of using a copy script, so this shouldn't be an issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2019 02:46:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598695#M7333</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2019-06-09T02:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Post build event problem</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598696#M7334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...I just went all the way back to v10.2.7. Yeah. That's bad. Like really bad. I have no idea what we were thinking &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can however work around it. Instead of setting the post build, append to it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PostBuildEvent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
   $(PostBuildEvent)
   REM My other postbuild event stuff here
&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PostBuildEvent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or declare your own post-build event target (which is what the 10.2.x package probably should have done):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Target&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;Name&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;MyPostBuildEvent&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;AfterTargets&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;Build&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
   &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PropertyGroup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
      &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;MyPostBuildEventCommand&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
	   REM Run my script here
      &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;MyPostBuildEventCommand&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
   &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PropertyGroup&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;  
   &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Exec&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;Command&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;$(MyPostBuildEventCommand)&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Target&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/post-build-event-problem/m-p/598696#M7334</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-12T01:42:24Z</dc:date>
    </item>
  </channel>
</rss>

