如何编译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 Demos\MaterialDesignDemo
, 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.
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决