ExampleLibrary_PCL Error: 'System.Type' does not contain a definition for 'Assembly'

Oct 18, 2012 at 5:26 AM

When attempting to build the latest OxyPlot code, I was getting multiple errors of the form:

Error 1 'System.Type' does not contain a definition for 'Assembly' and no extension method 'Assembly' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)
Error 2 'System.TimeZoneInfo' does not contain a definition for 'ConvertTimeFromUtc' 
Error 3 'System.TimeZoneInfo' does not contain a definition for 'FindSystemTimeZoneById' Error 4 'Assembly' is an ambiguous reference between 'System.Reflection.Assembly' and 'OxyPlot.Assembly'
Error 5 'System.Reflection.Assembly' does not contain a definition for 'GetExecutingAssembly' Error 6 'Assembly' is an ambiguous reference between 'System.Reflection.Assembly' and 'OxyPlot.Assembly'
Error 7 'System.Reflection.Assembly' does not contain a definition for 'GetExecutingAssembly'

I was able to get around this problem by defining the PCL conditional compilation symbol for the ExampleLibrary_PCL project. (METRO,PCL)

Hope this helps someone else

Coordinator
Oct 18, 2012 at 6:59 AM

Thanks for the messages. I found some build errors in the Silvelight/Metro projects - should be corrected now. The metro example browser seems to work, so I think the PCL ExampleLibrary should be ok now.