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.