PluralizationService.Pluralizeの適用対象について

sora huziu 21 Reputation points
2021-01-29T07:21:58.103+00:00

ドキュメント(https://learn.microsoft.com/ja-jp/dotnet/api/system.data.entity.design.pluralizationservices.pluralizationservice.pluralize?view=netframework-4.8)
では.netcoreは適用されていませんが、実際にビルドするとエラーなく読み込めてしまいます。
適用対象に.netcoreがないのにもかかわらず、読み込めるのはどういった理由が考えられますでしょうか?

環境
OS:Windows
IDE:Vscode
 csprojファイルでは<TargetFramework>netcoreapp3.1</TargetFramework>と設定
 ターミナルでdotnet --versionを入力すると5.0.101と出力されます。

ちなみに
インストール済.netのバージョン(dotnet --list-sdksで確認)は以下のようになります。
3. 1.201 [C:\Program Files\dotnet\sdk]
5. 0.101 [C:\Program Files\dotnet\sdk]

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} votes

Accepted answer
  1. Daniel Zhang-MSFT 9,621 Reputation points
    2021-02-02T07:45:47.067+00:00

    Hi sorahuziu-8438,
    First, I made a test in visual studio 2019 and target framework is .NET Core 3.1.
    We can see from the picture below that we can't add System.Data.Entity.Design.dll in the project.
    62758-22.png
    And I also create a same project in VS2019 and target framework is .NET Framework 4.8. It works fine.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful