VS 2014 CTP does not recognize namespaces in mscorlib

I installed vs 2014 ctp 3 in my windows 8.1 virtual machine. And try creating a vnext library. Since I'm adding a using statement to my codes:

using System.Diagnostics;  
using System.Threading.Tasks;

public Task Log(LogLevel level, IFormatProvider formatProvider, string message, params object[] args)  
{
    return Task.Run(() =>  
    {  
        if (IsLogLevelEnabled(level))  
        {  
            string category = Enum.GetName(typeof(LogLevel), level);  
            string info = string.Format(message, args);  
            Debugger.Log((int)level, category, info);  
        }  
    });  
}  

As a result, the code "Debugger.Log" appeared, which may mean that vs will find links in mscorlib. And if I press "F12", vs will go to the Debugger codes in mscorlib.dll. However, when I try to build projects, it always throws:

The name "Debugger" does not exist in the current context.

I tried adding a link to project.json, however there is no "System.Diagnostics" for reference. If I wrote "System.Diagnostics": "" in project.json, a warning appears in the project links.

What should I do? Thank you in advance.

+4
1

project.json , CTP3, k10 (CoreCLR), net451. Debugger ( ) k10 , , . k10 project.json, , net451.

net451, VS14 , . , .

.json :

{
    "dependencies": {
        "System.Diagnostics": "",
        "System.Threading": ""
    },

    "frameworks" : {
        "net451" : { 
            "dependencies": {
            }
        }
    }
}

:

{
    "dependencies": {
        "System.Diagnostics": "",
        "System.Threading": ""
    },

    "frameworks" : {
        "net451" : { 
            "dependencies": {
            }
        },
        "k10" : { 
            "dependencies": {
                "System.Runtime": "4.0.20.0"
            }
        }
    }
}
+1

All Articles