Runtime: RC2 netstandard1.5 'Object'๊ฐ€ ์ฐธ์กฐ๋˜์ง€ ์•Š๋Š” ์–ด์…ˆ๋ธ”๋ฆฌ์— ์ •์˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2016๋…„ 05์›” 27์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: dotnet/runtime

netstandard1.5 ์— ํด๋ž˜์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚ด project.json ๋Š” ์•„๋ž˜์— ์žˆ์Šต๋‹ˆ๋‹ค. dotnet build ๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

The type 'Exception' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
The type 'Uri' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
The type 'Stream' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.

RC1 ํŒจํ‚ค์ง€์—์„œ System.Runtime ๋ฅผ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ด๊ฒƒ์€ ์ˆ˜์ •๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด์ œ RC2์™€ ๋‚˜๋Š” ํ•ด๋‹น ํŒจํ‚ค์ง€๊ฐ€ ํฌํ•จ๋œ NETStandard.Library ๋ฅผ ์ฐธ์กฐํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์™œ ์ด๋Ÿฌํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š”์ง€ ์™„์ „ํžˆ ์–ด๋ฆฌ๋‘ฅ์ ˆํ•ฉ๋‹ˆ๋‹ค.

ํ”„๋กœ์ ํŠธ.json

{
    "version": "1.0.0-*",
    "dependencies": {

    },
    "frameworks": {
        "netstandard1.5": {
            "imports": [ "dnxcore50", "portable-net45+win8+wp8+wpa81" ],
            "dependencies": {
                "Enums": { "target": "project" },
                "VQViewModels": { "target": "project" },
                "NovellLdap2": { "target": "project" },
                "DDay": {"target": "project"},

                "NETStandard.Library": "1.5.0-rc2-24027",

                "System.Xml.XmlSerializer": "4.0.11-rc2-24027",
                "System.Data.Common": "4.0.1-rc2-24027",
                "System.Diagnostics.TraceSource": "4.0.0-rc2-24027",
                "System.Net.Requests": "4.0.11-rc2-24027",
                "System.Xml.XmlDocument": "4.0.1-rc2-24027",
                "System.Xml.XPath.XmlDocument": "4.0.1-rc2-24027",
                "System.Collections.Specialized": "4.0.1-rc2-24027",
                "System.Data.SqlClient": "4.1.0-rc2-24027",
                "System.Threading.Thread": "4.0.0-rc2-24027",
                "System.Collections.NonGeneric": "4.0.1-rc2-24027",
                "System.Diagnostics.TextWriterTraceListener": "4.0.0-rc2-24027",
                "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",

                "Dapper": "1.50.0-rc2",
                "FubarCoder.RestSharp.Portable.HttpClient": "3.2.0",
                "MailKit": "1.3.0-beta7",
                "Npgsql": "3.1.0"
            }
        }
    }
}

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

ํŒจํ‚ค์ง€ ์ค‘ ํ•˜๋‚˜๊ฐ€ mscorlib ๊ธฐ๋ฐ˜ PCL์„ ๊ฐ€์ ธ์˜ค๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค( "imports":"portable-net45+win8+wp8+wpa81" ์‚ฌ์šฉ์œผ๋กœ ์ธํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค). ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด "Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027"์„ ์ฐธ์กฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด mscorlib ๊ธฐ๋ฐ˜ PCL๊ณผ ํ˜ธํ™˜๋ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  3 ๋Œ“๊ธ€

๊ฒฉ๋ฆฌํ•˜๋ ค๊ณ  ํ–ˆ์ง€๋งŒ ๋ณต์ œํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ ์ฐธ์กฐ๋Š” ๋…ผ๋ฆฌ๋‚˜ ์ข…์†์„ฑ์ด ์—†๋Š” ์•„๋ž˜์™€ ๊ฐ™์€ ํด๋ž˜์Šค๊ฐ€ ์žˆ๋Š” ๋‹จ์ˆœํžˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค.

public class Person
{
}

ํŒจํ‚ค์ง€ ์ค‘ ํ•˜๋‚˜๊ฐ€ mscorlib ๊ธฐ๋ฐ˜ PCL์„ ๊ฐ€์ ธ์˜ค๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค( "imports":"portable-net45+win8+wp8+wpa81" ์‚ฌ์šฉ์œผ๋กœ ์ธํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค). ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด "Microsoft.NETCore.Portable.Compatibility": "1.0.1-rc2-24027"์„ ์ฐธ์กฐํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ด ํŒจํ‚ค์ง€๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด mscorlib ๊ธฐ๋ฐ˜ PCL๊ณผ ํ˜ธํ™˜๋ฉ๋‹ˆ๋‹ค.

ํŒจํ‚ค์ง€๊ฐ€ ํ•ด์ค˜์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. @davidfowl ๊ณผ ์ด์•ผ๊ธฐํ•œ ํ›„ ์šฐ๋ฆฌ๋Š” ๊ทธ๊ฒƒ์ด FubarCoder.RestSharp.Portable.HttpClient ์ด๊ณ  imports ๊ฐ€ BCL์„ ๊ฐ€์ ธ์˜ด์„ ๊ฐ•์กฐํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰