Hi all,
I'm trying to build a project that references a portable class library.
Gallio.Model.ModelException: An exception occurred while invoking a test driver. ---> System.NotSupportedException: Unsupported type: System.Attribute
at Gallio.Common.Reflection.Impl.CecilReflectionPolicy.<>c__DisplayClass62.<MakeType>b__61()
at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 populator)
at Gallio.Common.Reflection.Impl.CecilReflectionPolicy.MakeType(TypeReference typeHandle)
at Gallio.Common.Reflection.Impl.CecilReflectionPolicy.GetTypeBaseType(StaticDeclaredTypeWrapper type)
at Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.<get_BaseType>b__3()
at Gallio.Common.Memoizer`1.Memoize(Func`1 populator)
at Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.get_BaseType()
at Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.get_BaseTypeInternal()
at Gallio.Common.Reflection.Impl.StaticTypeWrapper.get_BaseType()
at Gallio.Common.Reflection.ReflectionUtils.IsDerivedFrom(ITypeInfo type, String qualifiedTypeName)
at Gallio.Common.Reflection.Impl.StaticCodeElementWrapper.<GetAttributeInfos>d__1.MoveNext()
at Gallio.Common.Reflection.AttributeUtils.<ResolveAttributes>d__c.MoveNext()
at Gallio.Common.Reflection.AttributeUtils.GetAttribute(ICodeElementInfo element, Type attributeType, Boolean inherit)
at Gallio.Common.Reflection.AttributeUtils.GetAttribute[T](ICodeElementInfo element, Boolean inherit)
at Gallio.Model.ModelUtils.PopulateMetadataFromAssembly(IAssemblyInfo assembly, PropertyBag metadataMap)
at Gallio.XunitAdapter.Model.XunitTestExplorer.CreateAssemblyTest(IAssemblyInfo assembly)
at Gallio.XunitAdapter.Model.XunitTestExplorer.GetAssemblyTest(IAssemblyInfo assembly, Test parentTest, Version frameworkVersion, Boolean populateRecursively)
at Gallio.XunitAdapter.Model.XunitTestExplorer.ExploreImpl(IReflectionPolicy reflectionPolicy, ICodeElementInfo codeElement)
at Gallio.Model.Helpers.TestExplorer.Explore(IReflectionPolicy reflectionPolicy, ICodeElementInfo codeElement)
at Gallio.Model.Helpers.SimpleTestDriver.GenerateTestModel(IReflectionPolicy reflectionPolicy, IEnumerable`1 codeElements, IMessageSink messageSink)
at Gallio.Model.Helpers.SimpleTestDriver.DescribeImpl(IReflectionPolicy reflectionPolicy, IList`1 codeElements, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at Gallio.Model.BaseTestDriver.Describe(IReflectionPolicy reflectionPolicy, IList`1 codeElements, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.<>c__DisplayClass17.<DescribeImpl>b__15(ITestDriver driver, IList`1 items, Int32 driverCount)
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](MultiMap`2 testFrameworkPartitions, Func`4 func)
--- End of inner exception stack trace ---
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.ForEachDriver[T](MultiMap`2 testFrameworkPartitions, Func`4 func)
at Gallio.Model.DefaultTestFrameworkManager.FilteredTestDriver.DescribeImpl(IReflectionPolicy reflectionPolicy, IList`1 codeElements, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at Gallio.Model.BaseTestDriver.Describe(IReflectionPolicy reflectionPolicy, IList`1 codeElements, TestExplorationOptions testExplorationOptions, IMessageSink messageSink, IProgressMonitor progressMonitor)
at nCrunch.TestExecution.Frameworks.Gallio.GallioWrapper.FindFrameworkTestsInAssembly(ReflectedAssembly assembly, FilePath assemblyFilePath, IList`1 referencedAssemblyFilePaths)
at nCrunch.TestExecution.Frameworks.Gallio.GallioTestFramework.FindFrameworkTestsInAssembly(ReflectedAssembly assembly, FilePath assemblyFilePath, IList`1 referencedAssemblyFilePaths)
at nCrunch.TestExecution.TestFinder.FindTestsForFrameworks(ReflectedAssembly assembly, FilePath assemblyFilePath, IList`1 referencedAssemblyFilePaths, TestFrameworkDescription[] frameworks)
at nCrunch.Compiler.StaticManipulation.BuiltAssembly.DiscoverTests(TestFrameworkDescription[] applicableTestFrameworks)
at nCrunch.Compiler.RemoteBuildRunner.#=qqZ$biBs7mvGRD42no0zcEfaWi4v$NuLBVy7NcKpqVcU=(ComponentBuildParameters #=q8_ZGEckiLbRsUjNXvAaKOg==, FilePath #=qkb_tmWgu4KtzCWen$hSPsMPrQ1mkbV0Q2nGsXkZrK6s=, BuildOutput #=qnXDAQpnfqAeJl0p31Gcd1w==, DirectoryPath[] #=qSofaDjiwWEBgv$s22DxHPsKSbp4hruna3jReeOLGOyg=, FilePath[] #=qfLDmMJzWXbDJK4KiH6tg6MwNo8hcfZSKZe0YwSutOdtYLr7gvxG6$V$9q044oc1x)
at nCrunch.Compiler.RemoteBuildRunner.Build(ComponentBuildParameters parameters)
If the referenced project is NOT a portable class library, but otherwise exactly the same, it works fine.
Any thoughts on how to solve this?
Regards,
Erwin