Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dotnet publish does not detect OSX El Capitan RID correctly #4534

Closed
schellap opened this issue Dec 9, 2015 · 12 comments
Closed

Dotnet publish does not detect OSX El Capitan RID correctly #4534

schellap opened this issue Dec 9, 2015 · 12 comments
Labels
Milestone

Comments

@schellap
Copy link

schellap commented Dec 9, 2015

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 dotnet/corert#498

@brthor
Copy link
Contributor

brthor commented Dec 9, 2015

@schellap

This is on El Capitan, correct?

@schellap
Copy link
Author

schellap commented Dec 9, 2015

This is on El Capitan. Yes.

@schellap
Copy link
Author

schellap commented Dec 9, 2015

Is the rid different?

@brthor
Copy link
Contributor

brthor commented Dec 9, 2015

RID for El Capitan is 'osx.10.11-x64' IIRC

@schellap
Copy link
Author

schellap commented Dec 9, 2015

But I am not specifying any RID. Just running these steps. Should work or no?

@brthor
Copy link
Contributor

brthor commented Dec 9, 2015

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 

@schellap
Copy link
Author

schellap commented Dec 9, 2015

This is only on el-capitan. It doesn't block the CoreRT PR as I specified because it is using Yosemite.

@schellap
Copy link
Author

schellap commented Dec 9, 2015

Works with the RID.

@brthor brthor changed the title Dotnet publish on OSX fails Dotnet publish does not detect OSX El Capitan RID correctly Dec 9, 2015
@Sridhar-MS
Copy link
Contributor

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

@TheRealPiotrP
Copy link
Contributor

Tracking in dotnet/cli#498

@richlander
Copy link
Member

This worked for me:

dotnet restore --runtime osx.10.10.10-x64

@gkhanna79
Copy link
Member

@richlander That didnt work for me on OSX 10.11. The thing that actually works is that I specify "--runtime osx.10.11-x64".

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the P0 milestone Jan 31, 2020
rainersigwald pushed a commit that referenced this issue Jul 20, 2020
….5 (#4534)

- Microsoft.NET.Sdk: 3.1.300-preview.20214.15 -> 3.1.400-preview.20251.5

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants