support runtime identifiers not supported by dotnet cli (project.json)
See original GitHub issueMy environment:
- dotnet core 1.0.0-preview2-003131 (for osx.10.11)
- osx.10.12-x64
- I use your sample app https://perfdotnet.github.io/BenchmarkDotNet/GettingStarted.htm
As far as I can see, Benchmark generates line "runtimes": { "osx.10.12-x64": { } }
in project.json and uses the current machine’s RID for that.
This line cause the error during dotnet restore
because dotnet core sees unsupported runtime. If I remove this "runtimes": { "osx.10.12-x64": { } }
line from project.json then I can run dotnet restore
successfully. To solve this issue I can set DOTNET_RUNTIME_ID=osx.10.11-x64 environment variable, but it seems wired.
Here is a discussion on https://github.com/dotnet/cli/pull/4281 for more details.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
NET Runtime Identifier (RID) catalog
In this file, you can see that all RIDs, except for the base one, contain an "#import" statement. These statements indicate compatible RIDs....
Read more >NetCore runtime identifier parameters ignored, MSBuild ...
When you try to build it by msbuild command-line with /p:Runtimeidentifier=win-x64 , then msbuild can't recognize that runtime since it's not ...
Read more >support runtime identifiers not supported by dotnet cli ...
As far as I can see, Benchmark generates line "runtimes": { "osx.10.12-x64": { } } in project.json and uses the current machine's RID...
Read more >.NET SDK Support
For a list of Runtime Identifiers (RIDs), see the RID catalog. ... NET Core 3.1 SDK will not shut down build servers from...
Read more >Dotnet build linux. The answer you're looking for is basically
But when I build the project that references DAL, the value for RuntimeIdentifier disappears: Command: dotnet build Transformer\Transformer. dotnet new ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sleemer project.json which required the runtime settings are being abandoned. We are now supporting the new csproj files, which don’t require that so I am closing this issue as it won’t be a problem anymore
@adamsitnik Thank you man!