• 如何编译MaterialDesignInXamlToolkit


    请查阅项目Wiki:https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/wiki/Compiling-From-Source

    以下为原文,注意标红内容:

    Compiling From Source

    The NuGet package are backwards compatibile and can be used in any WPF application (targetting .NET 4.5 or later) with any version of Visual Studio. If you wish to compile the library from source it will REQUIRE Visual Studio 2019 (v16.3 or later) with .NET Core 3.1 SDK installed. This is because the source code leverages the latest features, such as expression bodied members, which cannot be compiled in earlier versions of Visual Studio.

    The main project is contained within the MaterialDesignToolkit.Wpf.slnf file located at the root of the repository. This is the file you want to open in Visual Studio.
    After cloning the repository there are two commands that need to be run to restore dependency. Open a terminal at the root directory of the repository. The two commands to run are:

    > dotnet tool restore

    > dotnet paket restore

    Launch visual studio and set the startup project to be DemosMaterialDesignDemo, compile and run (or simply press F5).

    Old instructions for 3.x

    The first time you compile the project you may likely get the error ShowMeTheXAML was added to the MaterialDesignDemo project. Please rebuild the project.. This is expected and should only occur the very first time you compile the library. Simply re-build the solution (from the top menu Build>>Rebuild Solution). You must rebuild, not just a normal incremental build. If you continue to get this error, you may need to restart Visual Studio. For more details see this comment.

    This library uses paket to install its dependencies. Typically these should be downloaded automatically for you when you first compile the solution.

  • 相关阅读:
    数组对象
    禁止鼠标右键保存图片、文字,禁止拖动图片等代码
    解决vscode 电脑卡顿
    vscode Html标签自动补全
    git提交报错
    作为一个程序员为什么要写博客?
    aaa
    JDBC
    去ioe
    去中心化
  • 原文地址:https://www.cnblogs.com/144823836yj/p/13859834.html
Copyright © 2020-2023  润新知