Skip to content

Commit e134baf

Browse files
committed
Upload bin dir fir windows_dotnet_build
Commit 6ede47a asked: > Will it work? Lol, no. No it does not: SetUp failed for test fixture Java.InteropTests.TestTypeTests System.TypeInitializationException : The type initializer for 'Java.InteropTests.JavaVMFixture' threw an exception. ----> System.BadImageFormatException : An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at NUnit.Framework.Internal.Reflect.Construct(Type type, Object[] arguments) at NUnit.Framework.Internal.TypeWrapper.Construct(Object[] args) at NUnit.Framework.Internal.Commands.ConstructFixtureCommand.<.ctor>b__0_0(TestExecutionContext context) at NUnit.Framework.Internal.Commands.BeforeTestCommand.Execute(TestExecutionContext context) at NUnit.Framework.Internal.Execution.CompositeWorkItem.PerformOneTimeSetUp() --BadImageFormatException at Java.Interop.NativeMethods.java_interop_jvm_load_with_error_message(String path, IntPtr& message) at Java.Interop.JreRuntime.CreateJreVM(JreRuntimeOptions builder) in D:\a\1\s\src\Java.Runtime.Environment\Java.Interop\JreRuntime.cs:line 97 at Java.InteropTests.TestJVM..ctor(String[] jars, Dictionary`2 typeMappings) in D:\a\1\s\tests\TestJVM\TestJVM.cs:line 61 at Java.InteropTests.JavaVMFixture.CreateJavaVM() in D:\a\1\s\tests\Java.Interop-Tests\Java.Interop\JavaVMFixture.cs:line 15 at Java.InteropTests.JavaVMFixture..cctor() in D:\a\1\s\tests\Java.Interop-Tests\Java.Interop\JavaVMFixture.Partial.cs:line 12 …which is rather odd, actually; *why* `BadImageFormatException`? A plausible reason is that the "bitness" doesn't match, e.g. `dotnet` is 32-bit while `java-interop.dll` is 64-bit (or vice versa). The easiest way to tell is to download the built artifacts to see what they actually contain. Add a `PublishPipelineArtifact@` invocation so that we *can* download.
1 parent 6ede47a commit e134baf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ jobs:
9393
parameters:
9494
runNativeTests: true
9595

96+
- task: PublishPipelineArtifact@1
97+
displayName: Publish `bin` folder
98+
inputs:
99+
targetPath: bin
100+
artifactName: bin-dotnet
101+
condition: succeededOrFailed()
102+
96103
- template: templates\fail-on-issue.yaml
97104

98105
- job: mac_build

0 commit comments

Comments
 (0)