<?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[Help with Appveyor Plugin Build (C#)]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Just wondering if someone could be kind enough to help me out and show me what I’m doing wrong.<br />
I’m trying to setup AppVeyor to build my plugin (written in c#), and the build succeeds, but the artifacts don’t work in Notepad++. When I run the commands locally, it works perfectly.</p>
<p dir="auto">The build can be found at<br />
<a href="https://ci.appveyor.com/project/cpmcgrath/codealignment/build/14.0.63" rel="nofollow ugc">https://ci.appveyor.com/project/cpmcgrath/codealignment/build/14.0.63</a><br />
and it’s building off a test branch:<br />
<a href="https://github.com/cpmcgrath/codealignment/tree/test/appveyortest" rel="nofollow ugc">https://github.com/cpmcgrath/codealignment/tree/test/appveyortest</a></p>
<p dir="auto">My best guess is it’s something to do with<br />
<a href="https://github.com/cpmcgrath/codealignment/blob/test/appveyortest/DllExport/NppPlugin.DllExport.targets" rel="nofollow ugc">https://github.com/cpmcgrath/codealignment/blob/test/appveyortest/DllExport/NppPlugin.DllExport.targets</a></p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15042/help-with-appveyor-plugin-build-c</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 19:43:25 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15042.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Jan 2018 01:14:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Tue, 09 Jan 2018 12:15:02 GMT]]></title><description><![CDATA[<p dir="auto">I just retested and could confirm that. After unblocking the downloaded appveyor files are also functional.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29300</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29300</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Tue, 09 Jan 2018 12:15:02 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Tue, 09 Jan 2018 01:07:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I’ve figured it out. Basically it’s a security problem.<br />
For anyone interested here’s some further details:</p>
<blockquote>
<p dir="auto">System.IO.FileLoadException: Could not load file or assembly ‘CodeAlignment.Common, Version=14.0.0.19412, Culture=neutral, PublicKeyToken=ef66090a528beee6’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)</p>
<p dir="auto">File name: ‘CodeAlignment.Common, Version=14.0.0.19412, Culture=neutral, PublicKeyToken=ef66090a528beee6’ —&gt; System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See <a href="http://go.microsoft.com/fwlink/?LinkId=155569" rel="nofollow ugc">http://go.microsoft.com/fwlink/?LinkId=155569</a> for more information.<br />
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)<br />
at System.Reflection.Assembly.LoadFile(String path)<br />
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)</p>
</blockquote>
<p dir="auto">When you go into CodeAlignment.Common.dll’s properties you can click “Unblock” which fixes it. But I’m going to investigate the loadFromRemoteSources switch it  mentions</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29297</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29297</guid><dc:creator><![CDATA[cpmcgrath]]></dc:creator><pubDate>Tue, 09 Jan 2018 01:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 23:51:45 GMT]]></title><description><![CDATA[<p dir="auto">See <a href="https://ci.appveyor.com/project/chcg/codealignment/build/14.0.12" rel="nofollow ugc">https://ci.appveyor.com/project/chcg/codealignment/build/14.0.12</a>, but that seems to not fix the issue.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29296</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29296</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Mon, 08 Jan 2018 23:51:45 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 23:34:12 GMT]]></title><description><![CDATA[<p dir="auto">In appveyor.yml this one:</p>
<p dir="auto">init:<br />
- git config --global core.autocrlf true</p>
<p dir="auto">might help in this case.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29295</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29295</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Mon, 08 Jan 2018 23:34:12 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 21:59:17 GMT]]></title><description><![CDATA[<p dir="auto">Okay, I’ve figured out a bit more. CodeAlignmentNpp.dll where I assumed the problem was is fine. I use that one with the common dlls I built locally and we’re hunky dory. The problem is with CodeAlignment.Common.dll. For various reasons, I’m guessing this is classic git new line handling - my computer would be set to \r\n, while appveyor is set to just \n.</p>
<p dir="auto">No idea why the result works for both of you but not for me.</p>
<p dir="auto">Thanks again for all the help.</p>
<p dir="auto">P.S. If anyone knows how to change this in AppVeyor it would be appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29294</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29294</guid><dc:creator><![CDATA[cpmcgrath]]></dc:creator><pubDate>Mon, 08 Jan 2018 21:59:17 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 21:38:54 GMT]]></title><description><![CDATA[<p dir="auto">I just downloaded the portable zips for x86 and x64, and installed the plugins both still don’t work for me.<br />
Is there an error log I can check out which would have more information in it? I couldn’t find any details of anything like that.</p>
<p dir="auto">Also thanks for all the help, it’s really appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29293</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29293</guid><dc:creator><![CDATA[cpmcgrath]]></dc:creator><pubDate>Mon, 08 Jan 2018 21:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 13:28:47 GMT]]></title><description><![CDATA[<p dir="auto">The download from <a href="https://ci.appveyor.com/project/cpmcgrath/codealignment/build/14.0.63" rel="nofollow ugc">https://ci.appveyor.com/project/cpmcgrath/codealignment/build/14.0.63</a> is working fine also for me now with N++ 7.5.4. I think there was an issue in the communication with the plugins fixed, see <a href="https://notepad-plus-plus.org/download/v7.5.4.html:" rel="nofollow ugc">https://notepad-plus-plus.org/download/v7.5.4.html:</a></p>
<p dir="auto">Fix a crash bug due to disordered notifications sent to plugins.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29276</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29276</guid><dc:creator><![CDATA[chcg]]></dc:creator><pubDate>Mon, 08 Jan 2018 13:28:47 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 03:35:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10846">@cpmcgrath</a><br />
Retry of download of x86 archive succeeded and installed plugin seems to function fine.<br />
Really strange.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/29269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29269</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Mon, 08 Jan 2018 03:35:21 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 02:37:24 GMT]]></title><description><![CDATA[<p dir="auto">Strange, both zips download fine for me. I just tested the x64 one again on a different computer and got the same error I was getting before. I’ve got 7.5.4 x64 too.</p>
<blockquote>
<p dir="auto">C:\Program Files\Notepad++\plugins\CodeAlignmentNpp.dll</p>
<p dir="auto">Failed to load</p>
<p dir="auto">CodeAlignmentNpp.dll is not compatible with the current version of Notepad++.</p>
<p dir="auto">Do you want to remove this plugin from the plugins directory to prevent this message from the next launch?</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/29267</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29267</guid><dc:creator><![CDATA[cpmcgrath]]></dc:creator><pubDate>Mon, 08 Jan 2018 02:37:24 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Appveyor Plugin Build (C#) on Mon, 08 Jan 2018 02:19:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/10846">@cpmcgrath</a><br />
Downloaded both Npp artifacts, x86 archive does not open as a zip or a 7z file, x64 archive opens just fine. Installed x64 plugin, tried some alignments (examples taken from the website), seams to works just fine.</p>
<pre><code>Notepad++ v7.5.4   (64-bit)
Build time : Jan  1 2018 - 01:50:29
Path : C:\Program Files\Notepad++\Notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : CodeAlignmentNpp.dll ComparePlugin_64.dll DoxyIt_64.dll DSpellCheck_64.dll Exec_64.dll JSMinNPP_64.dll LuaScript_64.dll MarkdownViewerPlusPlus_64.dll PluginManager_64.dll SurroundSelection_64.dll XMLTools_64.dll 
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/29266</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/29266</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Mon, 08 Jan 2018 02:19:32 GMT</pubDate></item></channel></rss>