dotnet-websharper / dotnet-ws

The `dotnet ws` tool
Apache License 2.0
1 stars 3 forks source link

Implement `ws start` RID inferring #3

Open mrtank opened 3 years ago

mrtank commented 3 years ago

Infer the RID that is wsfscservice published with on the current platform from RuntimeIdentifier property

That would mean choose win-x64 from

win7-x64    win7-x86
       |   \   /    |
       |   win7     |
       |     |      |
    win-x64  |  win-x86
          \  |  /
            win
             |
            any

from above RIDs. Fail for any.

https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.NETCore.Platforms/src/runtime.json may be of help. Possible RIDs have to be mapped to win-x64/linux-x64/linux-musl-x64, or what wsfscservice is actually published to.