Giter Club home page Giter Club logo

Comments (4)

bhu1st avatar bhu1st commented on July 17, 2024

Version 0.8.2 build fine for Debug - Any CPU but getting following errors when building for x86 or x64

Rebuild started at 6:15 AM...
1>------ Rebuild All started: Project: MarkdownViewerPlusPlus, Configuration: Debug x64 ------
1> Transitive merge
1> Merged assemblies: C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\MarkdownViewerPlusPlus\obj\x64\Debug\MarkdownViewerPlusPlus.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\HtmlRenderer.Core.1.5.1-beta1\lib\net40-client\HtmlRenderer.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\HtmlRenderer.PdfSharp.1.5.1-beta1\lib\net40-client\HtmlRenderer.PdfSharp.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\HtmlRenderer.WinForms.1.5.1-beta1\lib\net40-client\HtmlRenderer.WinForms.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\Markdig.0.15.0\lib\net40\Markdig.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\PDFsharp.1.50.4000-beta3b\lib\net20\PdfSharp.Charting.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\PDFsharp.1.50.4000-beta3b\lib\net20\PdfSharp.dll;C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\packages\Svg.2.3.0\lib\net35\Svg.dll;
1>C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\MarkdownViewerPlusPlus\MarkdownViewerPlusPlus.csproj(278,5): error MSB4062: The "NppPlugin.DllExport.MSBuild.DllExportTask" task could not be loaded from the assembly C:\Users\dell\Desktop\MarkdownViewerPlusPlus-0.8.2\MarkdownViewerPlusPlus\PluginInfrastructure\DllExport\NppPlugin.DllExport.MSBuild.dll. Could not load file or assembly 'Microsoft.Build.Utilities, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
========== Rebuild completed at 6:15 AM and took 02.521 seconds ==========

from markdownviewerplusplus.

bhu1st avatar bhu1st commented on July 17, 2024

If anyone wants to try building MarkdownViewerPlusPlus on Visual Studio 2022 Community check this out:

Open Legacy Projects (4.5 Framework) In Visual Studio 2022
https://www.c-sharpcorner.com/article/open-legacy-projects-4-5-framework-in-visual-studio-2022/

from markdownviewerplusplus.

bhu1st avatar bhu1st commented on July 17, 2024

Another recommendation for ANSI issue:

NotePad++ Plugin - ANSI vs UNICODE
https://www.reddit.com/r/programminghelp/comments/1254kdv/notepad_plugin_ansi_vs_unicode/

From the reddit post:

Moments after posting this, I was able to find a hint from the internet (even though what seems like 100s of previous searches were dead ends...). The dll that I was using took a string as an input. If I convert that string to UTF8, then it no longer is upset about UNICODE vs. ANSI. I do have other problems, but this issue seems to be resolved.

byte[] bytes = Encoding.Default.GetBytes(myString);
myString = Encoding.UTF8.GetString(bytes);

from markdownviewerplusplus.

bhu1st avatar bhu1st commented on July 17, 2024

I was able to build 0.8.2 as well on Debug - Any CPU and Debug - x86 with the following settings:

  • SdkPath: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools

  • Installing .Net Framework 3.5 kbilsted/NotepadPlusPlusPluginPack.Net#31 (comment)

    Figured out the issue, needed to install .net 3.5 (including 2.0) because the NppPlugin.DllExport.MSBuild.dll is referencing msbuild v 2.0.0.0 instead of msbuild v 4.0.0.0

The ANSI error is gone and the the build is successful. I tested installing the plugin and it works!

from markdownviewerplusplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.