<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Visual Studio Code C# - Error MSB4062]]></title><description><![CDATA[<p dir="auto">Hello everyone, some time ago I am trying to develop a plugin for Notepad++.  But unfortunately without much success.<br />
Before giving up I would like to share my problem with you. Maybe they can give me a hand.</p>
<p dir="auto">My goal is to develop it with Visual Studio Code in C#. As a basis for may project I have downloaded the following Pack <a href="https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases" rel="nofollow ugc">NotepadPlusPlusPluginPack.Net</a> (I don´t know if there is a more updated version).</p>
<p dir="auto">However, when I complie the project I get the following error :<br />
<img src="/assets/uploads/files/1586895400076-09b2ab42-ebcb-4a07-8655-1ae18936e765-image.png" alt="09b2ab42-ebcb-4a07-8655-1ae18936e765-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">How can i solve this error?</p>
<p dir="auto">Iteresting is that the *.dll Library is generated. However this is not compatible with Notepad++</p>
<p dir="auto"><img src="/assets/uploads/files/1586895684360-a002edb3-e345-4b17-bfa9-7d3866739d23-image.png" alt="a002edb3-e345-4b17-bfa9-7d3866739d23-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The same question (with some extra details) I have posted in <a href="https://stackoverflow.com/questions/61197067/plugin-for-notepad-with-visual-studio-code-c-sharp-error-msb4062" rel="nofollow ugc">Stackoverflow</a>.</p>
<p dir="auto">I would be happy receive any questions, suggestions or comments.<br />
Many thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19230/visual-studio-code-c-error-msb4062</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 01:21:40 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19230.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2020 20:31:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Thu, 08 Feb 2024 07:45:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dgutierrez3" aria-label="Profile: DGutierrez3">@<bdi>DGutierrez3</bdi></a><br />
i face the exact same issue you mention on top when i migrate my development environment to new PC with fresh intallation of visual studio. 1st i thought would be due to newer version of visual studio but its not.</p>
<p dir="auto">later on i found the solution for this, not sure if you still need it, keep a record here in case anyone else face the same issue.</p>
<p dir="auto">Solution:<br />
this was due to missing .net framework 3.5, just need to manually install .net framework 3.5 solve my compilation issue. Guess .net 3.5 only come with VS 2015 or older, VS 2017 onwards come with newer .net framework</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92766</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92766</guid><dc:creator><![CDATA[Skycc Lim]]></dc:creator><pubDate>Thu, 08 Feb 2024 07:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Wed, 15 Apr 2020 11:58:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/52623">Visual Studio Code C# - Error MSB4062</a>:</p>
<blockquote>
<p dir="auto">That might have been better as a “black” code box,</p>
</blockquote>
<p dir="auto">Your definitely correct.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52624</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52624</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 15 Apr 2020 11:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Wed, 15 Apr 2020 11:56:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a></p>
<p dir="auto">That might have been better as a “black” code box, as I was about to ask where to see <code>PyInit_Npp</code></p>
<p dir="auto">Only almost just before posting did I notice the scroll bar on the far right.  :-)</p>
<p dir="auto">Good info, though; I guess we all learned something.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52623</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52623</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 15 Apr 2020 11:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Wed, 15 Apr 2020 11:35:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dail" aria-label="Profile: dail">@<bdi>dail</bdi></a> - thank you.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dgutierrez3" aria-label="Profile: DGutierrez3">@<bdi>DGutierrez3</bdi></a><br />
to make sure that the functions are exported you can use<br />
a visual studio command prompt and call <code>dumpbin /exports YOUR_PLUGIN.dll</code></p>
<p dir="auto">something like</p>
<pre><code class="language-z">dumpbin /exports PySnack.dll

Microsoft (R) COFF/PE Dumper Version 14.16.27038.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file PySnack.dll

File Type: DLL

  Section contains the following exports for Npp.cp37-win_amd64.pyd

    00000000 characteristics
    FFFFFFFF time date stamp
        0.00 version
           1 ordinal base
           7 number of functions
           7 number of names

    ordinal hint RVA      name

          1    0 00367360 PyInit_Npp
          2    1 003A4760 beNotified
          3    2 003A8F50 getFuncsArray
          4    3 003A7970 getName
          5    4 003A4660 isUnicode
          6    5 003A46E0 messageProc
          7    6 003A79F0 setInfo

  Summary

       5F000 .data
        D000 .pdata
       64000 .rdata
        3000 .reloc
        1000 .rsrc
      4C2000 .text
</code></pre>
<p dir="auto">Forget about the PyInit_Npp, this is specific to my plugin but<br />
the other 6 must be there.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52622</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 15 Apr 2020 11:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Wed, 15 Apr 2020 00:18:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> And just an FYI this error message from Notepad++ is a little too general. It usually isnt specific just for that function (though it is possible I guess), but at least it does indicate something is wrong with the DLL such as not having the correct symbols exported.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52612</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52612</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Wed, 15 Apr 2020 00:18:41 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Tue, 14 Apr 2020 22:14:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dgutierrez3" aria-label="Profile: DGutierrez3">@<bdi>DGutierrez3</bdi></a></p>
<p dir="auto">And since your plugin contains that function, you should be easily able to set it to return true!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52604</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52604</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 14 Apr 2020 22:14:09 GMT</pubDate></item><item><title><![CDATA[Reply to Visual Studio Code C# - Error MSB4062 on Tue, 14 Apr 2020 22:02:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dgutierrez3" aria-label="Profile: DGutierrez3">@<bdi>DGutierrez3</bdi></a></p>
<p dir="auto">If you get back that this is an ANSI version then the call to IsUnicode does not return True.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52602</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52602</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 14 Apr 2020 22:02:12 GMT</pubDate></item></channel></rss>