Skip to content

Fix C# pipeline build error - #10524

Merged
snnn merged 1 commit into
masterfrom
skottmckay/FixCSharpE2ETestBuildError
Feb 11, 2022
Merged

Fix C# pipeline build error#10524
snnn merged 1 commit into
masterfrom
skottmckay/FixCSharpE2ETestBuildError

Conversation

@skottmckay

Copy link
Copy Markdown
Contributor

Description:
Can't use internal types in the external E2E test project. Throw standard C# exception instead.
Issue was introduced in #10428

Pipeline errors:

D:\a\_work\1\s\csharp\test\Microsoft.ML.OnnxRuntime.Tests.Common\TestDataLoader.cs(59,48): error CS0122: 'ErrorCode' is inaccessible due to its protection level [D:\a\_work\1\s\csharp\test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj]
D:\a\_work\1\s\csharp\test\Microsoft.ML.OnnxRuntime.Tests.Common\TestDataLoader.cs(59,27): error CS1729: 'OnnxRuntimeException' does not contain a constructor that takes 2 arguments [D:\a\_work\1\s\csharp\test\Microsoft.ML.OnnxRuntime.EndToEndTests\Microsoft.ML.OnnxRuntime.EndToEndTests.csproj]

Motivation and Context
Fix pipeline build error.

@snnn
snnn merged commit 318d31e into master Feb 11, 2022
@snnn
snnn deleted the skottmckay/FixCSharpE2ETestBuildError branch February 11, 2022 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants