问题描述
我正在为 C# 中的简单解析器编写一个类库.当我第一次创建它时,我使用了 .NET 标准 2.0,但现在我需要将它迁移到 .NET 4.6 以符合我的解决方案中的其他项目并为了使用 NUnit.
I'm writing a class library for a simple parser in C#. When I first created it, I used .NET standard 2.0, but now I need to migrate it to .NET 4.6 both to conform to the other projects in my solution and in order to use NUnit.
我尝试按照说明在 Microsoft 文档中,但是当我尝试在属性中选择另一个框架时,我只能找到其他 .NET 标准版本.
I tried to follow the instructions in the Microsoft documentation, but when I try to select another framework in the properties, I can only find other .NET standard versions.
我如何迁移它?我需要手动编辑 .csproj
文件吗?
How can I migrate it? Will I need to manually edit the .csproj
file?
推荐答案
打开项目文件(.csproj),将TargetFramework
改为net462
Open up the project file (.csproj) and change the TargetFramework
to net462
<PropertyGroup>
<TargetFramework>net462</TargetFramework>
</PropertyGroup>
这篇关于如何将 .NET 标准库更改为 .NET 框架库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!