Dotnet publish does not detect OSX El Capitan RID correctly
Follow these repro steps:
Obtain latest CLI from: https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-osx-x64.latest.tar.gz
mkdir temp
cd temp
dotnet init
dotnet restore
dotnet publish
Error:
'' cannot be published for '' 'osx.10.10-x64'
@brthor, @piotrpMSFT route to appropriate owner. Blocks dotnet scenario and https://github.com/dotnet/corert/pull/498
@schellap
This is on El Capitan, correct?
This is on El Capitan. Yes.
Is the rid different?
RID for El Capitan is 'osx.10.11-x64' IIRC
But I am not specifying any RID. Just running these steps. Should work or no?
Can you try explicitly specifying the RID during restore and publish?
mkdir temp
cd temp
dotnet init
dotnet restore --runtime osx.10.11-x64
dotnet publish --runtime osx.10.11-x64
This is only on el-capitan. It doesn't block the CoreRT PR as I specified because it is using Yosemite.
Works with the RID.
This needs to be fixed here. We have a naive way to find the current RID and its broken.
https://github.com/dotnet/cli/blob/master/src/Microsoft.DotNet.ProjectModel/RuntimeIdentifier.cs#L10
Tracking in dotnet/cli#498
This worked for me:
dotnet restore --runtime osx.10.10.10-x64
@richlander That didnt work for me on OSX 10.11. The thing that actually works is that I specify "--runtime osx.10.11-x64".