How to provide Platform implementations for net9.0
target framework with SingleProject
#30177
Unanswered
Dreamescaper
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I have a type, which is implemented differently per platform via Platform folders:
Platforms/Android/MyType.cs
Platforms/iOS/MyType.cs
It works fine, but now I want to add tests for this project. Therefore, I'm adding
net9.0
target framework (platformless), and I need to add MyType.cs (fake implementation) for this target framework.Is there any way to add "platformless" Platform folder?
I have tried to add this to my csproj:
And add it to
Standard
folder. It doesn't work, however.Is there any better way to do that?
Beta Was this translation helpful? Give feedback.
All reactions