R9.1=>9.2 Tests migration - CollectSubplatformPackages

After a lot of nuget wrangling I now have my plugin and tests compiling. However I am now getting a test setup error. I've made my SetUpFixture class like other 9.2 projects (e.g. xunit).  what does this mean ?  SetUp : JetBrains.TestFramework.Utils.TestLoggerListener+TestWrapperException : Cannot read the Application Package metadata file D:\CodePlexLive\Project\Src\TestCop.Plugin.Tests\bin\Release\JetBrains.Platform.Interop.JetMetadata.sstg. There is a component value filed under the type “JetBrains.Application.BuildScript.Application.IApplicationPackage, JetBrains.Platform.Shell, Version=103.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”, but it does not convert to the requested type.  --- EXCEPTION #1/2 [InvalidOperationException] Message = “There is a component value filed under the type “JetBrains.Application.BuildScript.Application.IApplicationPackage, JetBrains.Platform.Shell, Version=103.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”, but it does not convert to the requested type.” ExceptionPath = Root.InnerException ClassName = System.InvalidOperationException HResult = COR_E_INVALIDOPERATION=80131509 Source = JetBrains.Platform.BuildInterfaces StackTraceString = “   at JetBrains.Build.Serialization.SerializedValuesResolver.Resolve(Type type)      at JetBrains.Build.Serialization.SerializedValuesResolver.Resolve[TComponent]()      at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)      at JetBrains.DataFlow.Lifetimes.Using[TRetVal](Func`2 λ)      at JetBrains.Util.Storage.StructuredStorage.StructuredStorages.OpenStream[TReturn](Stream stream, Func`2 λ, Nullable`1 formatIfKnown)      at JetBrains.Application.BuildScript.Solution.AllAssembliesLocator.<>c__DisplayClass8.

b__0(Stream stream)      at JetBrains.Util.FileSystemPathEx.ReadStream[T](FileSystemPath path, Func`2 FRead)      at JetBrains.Application.BuildScript.Solution.AllAssembliesLocator.GetAllAssembliesOnLocallyInstalledBinariesFlat(ProductBinariesDirArtifact bindir) ”  --- Outer ---  --- EXCEPTION #2/2 [LoggerException] Message = “Cannot read the Application Package metadata file D:\CodePlexLive\Project\Src\TestCop.Plugin.Tests\bin\Release\JetBrains.Platform.Interop.JetMetadata.sstg. There is a component value filed under the type “JetBrains.Application.BuildScript.Application.IApplicationPackage, JetBrains.Platform.Shell, Version=103.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325”, but it does not convert to the requested type.” ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = “Exception #1 at Root.InnerException” HResult = COR_E_APPLICATION=80131600 StackTraceString = “   at JetBrains.Application.Environment.HostParameters.CollectProductPackagesInDirectoryFlatHostMixin.CollectSubplatformPackages()      at JetBrains.Application.Environment.HostParameters.CollectProductPackagesInDirectoryFlatHostMixin.JetBrains.Application.Environment.HostParameters.IHaveFullPartCatalogSetHostMixin.GetFullPartCatalogSet(Lifetime lifetime)      at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.GetFullPartCatalogSet(Lifetime lifetime)      at JetBrains.Application.Environment.JetEnvironment..ctor(Lifetime lifetime, JetHostParametersCaller host)      at JetBrains.Application.Environment.JetEnvironment.<>c__DisplayClasse.b__b()      at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)      at JetBrains.Application.Environment.JetEnvironment.InternalCreate(LifetimeDefinition lifetimeDefinition, JetHostParametersCaller host, JetEnvironment& environment)      at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)      at JetBrains.Application.Environment.JetEnvironment.CreateDontRun(Lifetime lifetime, Full hostparams)      at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)      at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)      at JetBrains.TestFramework.TestEnvironmentAssembly`1.RunEnvironment()      at JetBrains.Util.Logging.Logger.Catch(Action action)      at JetBrains.TestFramework.TestEnvironmentAssembly`1.SetUp()      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)      at NUnit.Core.Reflect.InvokeMethod(MethodInfo method, Object fixture, Object[] args)      at NUnit.Core.TestSuite.DoOneTimeSetUp(TestResult suiteResult)      at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)      at NUnit.Core.SetUpFixture.Run(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunAllTests(TestResult suiteResult, EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuite(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.RunSuiteInContext(EventListener listener, ITestFilter filter)      at NUnit.Core.TestSuite.Run(EventListener listener, ITestFilter filter)      at NUnit.Core.SimpleTestRunner.Run(EventListener listener, ITestFilter filter, Boolean tracing, LoggingThreshold logLevel)      at JetBrains.ReSharper.UnitTestRunner.nUnit.NUnitTestRunner.Run(EventListener listener, ITestFilter filter)      at JetBrains.ReSharper.UnitTestRunner.nUnit.BuiltInNUnitRunner.RunTests(IRemoteTaskServer server, Dictionary`2 tests, Dictionary`2 fixtures, List`1 explicitly, Boolean useAddins, List`1 assemblies)      at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)      at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)      at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage reqMsg)      at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage reqMsg)      at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[] args)      at System.Threading.Thread.InternalCrossContextCallback(Context ctx, IntPtr ctxID, Int32 appDomainID, InternalCrossContextDelegate ftnToCall, Object[] args)      at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(IMessage reqMsg)      at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)      at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smuggledMrm)      at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(Object[] args) ”     at JetBrains.Util.Tests.ThrowsAccumulatedLoggerExceptions.ThrowLoggedExceptions()    at JetBrains.TestFramework.TestEnvironmentAssembly`1.SetUp()
2 comments
Comment actions Permalink

The first thing I'd do is delete the Release folder completely, rebuild and try again. It might be something left over from the 9.1 build.

I'm not sure what you mean by: "I've made my SetUpFixture class like other 9.2 projects (e.g. xunit)". Can you elaborate, please?

0
Comment actions Permalink

THANKS ! Deleting my debug & release folders fixed the problem .

0

Please sign in to leave a comment.