Skip to content

.NET 5 issue with PlatformAttribute #3565

Closed
@FixBo

Description

@FixBo

On .NET 5 Preview 4 exception occurred when using PlatformAttribute.

An exception was thrown while loading the test.
System.ArgumentException: Unknown framework version 5.5 (Parameter 'version')
   at NUnit.Framework.Internal.RuntimeFramework.ThrowInvalidFrameworkVersion(Version version) in D:\a\1\s\src\NUnitFramework\framework\Internal\RuntimeFramework.cs:line 235
   at NUnit.Framework.Internal.RuntimeFramework.InitFromFrameworkVersion(Version version) in D:\a\1\s\src\NUnitFramework\framework\Internal\RuntimeFramework.cs:line 226
   at NUnit.Framework.Internal.RuntimeFramework..ctor(RuntimeType runtime, Version version) in D:\a\1\s\src\NUnitFramework\framework\Internal\RuntimeFramework.cs:line 177
   at NUnit.Framework.Internal.RuntimeFramework.<>c.<.cctor>b__33_0() in D:\a\1\s\src\NUnitFramework\framework\Internal\RuntimeFramework.cs:line 145
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)--- End of stack trace from previous location
---
   at System.Lazy`1.CreateValue()   at System.Lazy`1.get_Value()
   at NUnit.Framework.Internal.RuntimeFramework.get_CurrentFramework() in D:\a\1\s\src\NUnitFramework\framework\Internal\RuntimeFramework.cs:line 261
   at NUnit.Framework.Internal.PlatformHelper..ctor() in D:\a\1\s\src\NUnitFramework\framework\Internal\PlatformHelper.cs:line 66
   at NUnit.Framework.PlatformAttribute..ctor(String platforms) in D:\a\1\s\src\NUnitFramework\framework\Attributes\PlatformAttribute.cs:line 37

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions