问题
I am trying to use .Net to load reports into SSRS. When I looked up example code they used the Warning class which, after futher research, seems to be in the Microsoft.Build.Task namespace. My problemis that this library doesn't show up when I try to reference it and when I try to add references it doesn't Microsoft.Build doesn't show in the list of .Net references. What am I doing wrong? The compiler does not recognize the class in the following:
Warning[] warnings = Null;
回答1:
If your using VS 2010 and .net framework 3.5 or 4.0, make sure you have the latest Microsoft.Build.Task, Microsoft.Build.Tasks.v4.0.
来源:https://stackoverflow.com/questions/7908757/microsoft-build-task-missing