How to install MVVM Light Toolkit via NuGet
Here is how you can install MVVM Light Toolkit via NuGet in an easy way using only Visual Studio.
Step1. Create a new Widows Phone Application Project
Step2. If you have not used NuGet before then go to VisualStudio Tools-> ExtentionManager as demonstrated below:
Step3.Go to "Online Gallery" tab and type "nuget" in the search box. Next install "NuGet Package Manager" as demonstrated below:
Step4. After you have installed the NuGet Package Manager just right-click the References folder in your project and from the context menu select the "Manage NuGet Packages.." option:
Step5-a. A new window will appear where you can search for a particular package. So just start typing "mvvm light" in the search box and you should see the "MVVM Light" package on top. Next press install.
Step5-b: Alternatively you can Installing he "MVVM Light" package using the command line:
Just go to View ->Other Windows -> Package Manager Console:
Next type the following code in the console:
PM> Install-Package MvvmLight
Step6. After the installation has finished you should see the following:
Step7. That was all. You will notice that your project now references the MVVM Light assemblies and a new View Model folder has been automatically added to your project. Your project is now set up and you are ready to start using the MVVM Light in your application. A ViewModelLocator is also added to your project and included it in App.xaml.
Step8. Later if you would like to update to the latest version of MVVM Light, you can use the following NuGet command:
PM> Update-Package MvvmLight
That was all about how to install "MVVM Light Toolkit" via NuGet. I hope that the tip was helpful.
原文链接:http://windowsphonegeek.com/tips/How-to-install-MVVM-Light-Toolkit-via-NuGet
出处:http://sirkevin.cnblogs.com
GitHub:https://github.com/backslash112
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
posted on 2012-06-10 00:24 backslash112 阅读(437) 评论(0) 编辑 收藏 举报
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架