Giter Site home page Giter Site logo

Using mdXaml in VSIX extension about mdxaml HOT 4 OPEN

cpgames avatar cpgames commented on July 22, 2024
Using mdXaml in VSIX extension

from mdxaml.

Comments (4)

whistyun avatar whistyun commented on July 22, 2024

I tried to create a VSIX extension with MdXaml. And it seems to work.

Can I look your project?




.

from mdxaml.

cpgames avatar cpgames commented on July 22, 2024

Sorry for late update, my project is https://github.com/cpgames/RefactorGraph I've had to explicitly include MdXaml.dll and ICSharpCode.AvalonEdit.dll to my project with a 'copy to output directory' flag set to get this working. It seems to work, but it would be nice if it could get the NuGet package to download automatically.

from mdxaml.

whistyun avatar whistyun commented on July 22, 2024

I have used VS 2022 Community, which is added visual studio extension development toolset, in freshly installed windows 10.
I have tried building and running your project without the DLL copy settings and it seems to work. NuGet download MdXaml and AvalonEdit automatically, and both dlls are copied to the bin directory at build time.

I don't know what's going on, but it looks like something may be wrong with your visual studio.

from mdxaml.

adospace avatar adospace commented on July 22, 2024

Hi, seems that if only use the control from XAML it throws an exception complaining that it can't find the DLL. I think your example works because you actually create it in code.

I solved it in my case by just creating a fake new viewer just before the InitializeComponent():

var _ = new MdXaml.MarkdownScrollViewer();

InitializeComponent();

from mdxaml.

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.