Visual Studio更改并下载.Net Framework目标框架以及Nuget包下载

问题描述

🌀当使用.net进行开发时,开发的项目与.net framework目标框架会非常密切相关的,所以当vs本地使用的.net framework框架与该项目工程的框架不一致的时候,就可能打开不了当前项目,解决这个问题的方法有:

  • 第一种:要更改目标框架以适应当前VS的;
  • 第二种:或者根据目标框架在vs中安装好对应的版本框架;

🌈总的来说,如果选择第一种方法,项目用的目标框架替换成现在VS所用的,再进行开发,可能由于目标框架的不同,导致代码出现错误,还有更甚者:更改后与其他人原本的目标框架开发的代码进行合并时,出现的错误更多,因此,从软件开发以及项目调试上看,用第二种方法的效果更好,起码只是增加了安装步骤而已。
另外,本文也介绍VS中NuGet包的安装!

一、进入VS界面

先进入到Visual Studio 界面中去,有两种方式:

  • 第一种:直接点击“继续但无需代码”后进入到VS主界面中去,如下:
    在这里插入图片描述
  • 第二种:打开任意一种的VS相关的项目工程链接,进入到vs主界面,如下:
    在这里插入图片描述

二、更改并下载.Net Framework目标框架

1.进入VS主界面后,点击工具->获取工具和功能,后弹出Visual Studio Installer的界面(若已经使用过,会直接调到第三步的界面):

在这里插入图片描述

2.在弹出来的Visual Studio Installer中,选择所需更改的VS版本,点击修改,弹出修改窗口,如下:
在这里插入图片描述

3.按照图片说明,按照需要的目标框架进行安装完即可,如下:

在这里插入图片描述

注:更改安装时,VS需关闭,所以如有打开VS中的项目代码请先保存好,退出VS先;

三、Nuget包下载

1️⃣打开所需的项目工程的解决方案,如下:

在这里插入图片描述

2️⃣打开VS界面后,如图依次点击:

在这里插入图片描述

3️⃣在弹出的NuGet的解决方案中,如下图所示,选择自己需要的库进行安装:

在这里插入图片描述

4️⃣成功安装后,在已安装哪里可以看到:

在这里插入图片描述

最后,文中若有不足,敬请批评指正!

  • 8
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
自动卸载工具 注意:此工具不会卸载 Visual Studio 2008 的测试版,而只卸载 Visual Studio 2008 RC 版本和正式版本(仅限英文版本)。 警告:此自动卸载工具会卸载随 Visual Studio 2008 产品安装的“所有”组件,Visual Studio Express 版本、Visual Studio Team System、Visual Studio Professional。但它不卸载 Visual Studio 2008 和 Visual Studio 2005 共享的组件。 =============================================== 手动卸载说明 转到“控制面板”并启动“添加/删除程序” 删除所有 Visual Studio 2008/代号 Orcas 产品的实例 按指定顺序删除任何剩余的支持产品。 删除“MSDN Library for Visual Studio 2008” 删除“Microsoft SQL Server Compact Edition 3.5” 删除“Microsoft SQL Server Compact Edition 3.5 Design Tools” 删除“Microsoft SQL Server Compact Edition 3.5 for Devices” 删除“Microsoft Visual Studio Performance Collection Tools” 删除“Windows Mobile 5.0 SDK R2 for Pocket PC” 删除“Windows Mobile 5.0 SDK R2 for Smartphone” 删除“Crystal Reports 2007” 删除“Visual Studio Asset System” 删除“Microsoft Visual Studio Web Authoring Component / Microsoft Web Designer Tools” 删除“Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System Runtime” 删除“Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System Runtime 语言”(仅限非英文版本) 删除“Microsoft Visual Studio Tools for Office Runtime 3.0” 删除“Microsoft Document Explorer” 删除“Microsoft Document Explorer 2005 语言”(仅限非英文版本) 删除“Microsoft Device Emulator 3.0” 删除“Microsoft .NET Compact Framework 3.5” 删除“Microsoft .NET Compact Framework 2.0 SP1” 删除“.NET Framework 2.0 SDK” 删除“Microsoft Visual Studio 代号 Orcas 远程调试器” 删除“Microsoft Visual Studio 64 位先决条件测试版”(仅限 64 位平台) 删除“Microsoft .NET Framework 3.5”
Mastering Visual Studio 2017 by Kunal Chowdhury English | 27 July 2017 | ISBN: 1787281906 | ASIN: B06X3QS36H | 466 Pages | AZW3 | 20.5 MB Key Features Focus on coding with the new, improved, and powerful tools of VS 2017 Master improved debugging and unit testing support capabilities Accelerate cloud development with the built-in Azure tools Book Description Visual Studio 2017 is the all-new IDE released by Microsoft for developers, targeting Microsoft and other platforms to build stunning Windows and web apps. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. With this book, you will learn not only what VS2017 offers, but also what it takes to put it to work for your projects. Visual Studio 2017 is packed with improvements that increase productivity, and this book will get you started with the new features introduced in Visual Studio 2017 IDE and C# 7.0. Next, you will learn to use XAML tools to build classic WPF apps, and UWP tools to build apps targeting Windows 10. Later, you will learn about .NET Core and then explore NuGet, the package manager for the Microsoft development platform. Then, you will familiarize yourself with the debugging and live unit testing techniques that comes with the IDE. Finally, you'll adapt Microsoft's implementation of cloud computing with Azure, and the Visual Studio integration with Source Control repositories. What you will learn Learn what's new in the Visual Studio 2017 IDE, C# 7.0, and how it will help developers to improve their productivity Learn the workloads and components of the new installation wizard and how to use the online and offline installer Build stunning Windows apps using Windows Presentation Foundation (WPF) and Universal Windows Platform (UWP) tools Get familiar with .NET Core and learn how to build apps targeting this new framework Explore everything about NuGet packages Debug and test
### 回答1: 你可以在以下网站下载和学习 .NET 敏捷开发框架: 1. 官方网站:https://dotnet.microsoft.com/download/dotnet/5.0 2. GitHub:https://github.com/dotnet 3. NuGet:https://www.nuget.org/ 4. CodePlex:https://archive.codeplex.com/?p=agile 此外,还有许多在线资源和教程可供学习,例如 Microsoft 的官方文档、博客、YouTube 视频等。建议你先从官方文档入手,然后再结合其他资源深入学习。 ### 回答2: .NET敏捷开发框架是一个针对.NET平台的开发框架,用于帮助开发人员更加快速、高效地进行软件开发。在学习和使用.NET敏捷开发框架之前,有几个步骤需要完成。 首先,你需要下载并安装.NET开发工具,如Visual Studio。你可以在微软官方网站上找到Visual Studio下载链接,并按照提示进行安装。 接下来,你需要选择并学习.NET敏捷开发框架。市面上有许多.NET敏捷开发框架可供选择,如ASP.NET MVC、Entity Framework等。你可以通过搜索引擎或浏览微软官方文档来获取相关框架的学习资料。 一旦你选择了一个框架,你可以访问该框架的官方网站或GitHub页面来下载相关的学习资料。一些框架可能提供免费的学习资料,如教程、示例代码和文档。你可以根据自己的实际需求下载相应的资料。 此外,你还可以参加一些在线课程或培训班来学习.NET敏捷开发框架。有许多在线教育平台提供.NET相关的课程,你可以通过搜索找到合适的课程。 最后,学习.NET敏捷开发框架需要不断实践和积累经验。你可以尝试使用框架进行小型项目的开发,通过实际操作来掌握框架的使用方法和技巧。 总之,学习和掌握.NET敏捷开发框架需要安装开发工具、选择学习资料、下载相关资源,并进行实践操作。希望以上信息对你有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值