.NET Core RuntimeIdentifier vs TargetFramework

前端 未结 2 1077
独厮守ぢ
独厮守ぢ 2021-02-01 03:57

Can someone explain the purpose of this two in csproj file (VS2017):

netstandard1.6
win7&         


        
2条回答
  •  一整个雨季
    2021-02-01 04:41

    RID is short for Runtime IDentifier. RIDs are used to identify target operating systems where an application or asset (that is, assembly) will run. They look like this: "ubuntu.14.04-x64", "win7-x64", "osx.10.11-x64". For the packages with native dependencies, it will designate on which platforms the package can be restored.

    More in docs

    First change to proper RID from win7 to win7-x64 or win7-x86. Next add other RID like ubuntu. For example:

    
        netstandard1.6
        win7-x64;ubuntu.16.10-x64
    
    

    Target framework looking good. For more read docs

提交回复
热议问题