question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet publish multiple -r options

See original GitHub issue

Steps to reproduce

Run dotnet publish -r win7-x86 -r win7-x64

Expected behavior

Publish to run for each of the specified RIDs

Actual behavior

dotnet : Unexpected value 'win7-x64' for option 'runtime'

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview2-003118)

Product Information:
 Version:            1.0.0-preview2-003118
 Commit SHA-1 hash:  7ada53d523

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:7
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
Webreapercommented, Nov 24, 2020

Bit sad that 3 years later this still isn’t something that can be done easily from the command-line…

3reactions
mot256commented, Mar 6, 2023

Well… add another 3 years…

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet publish command - .NET CLI
The dotnet publish command accepts MSBuild options, such as -p for setting properties and -l to define a logger. For example, you can...
Read more >
Publishing multiple .NET Core applications in a single ...
NET Core WPF Windows Application will publish. They will build, but they won't publish. If I move one of them to appear first...
Read more >
How to publish multiple runtimes with dotnet cli to custom ...
I have a csproj file which contains a few target runtimes, and I was hoping to have a singular command I could run...
Read more >
NET application publishing overview
Applications you create with .NET can be published in two different modes, and the mode affects how a user runs your app. Publishing...
Read more >
Publishing a self-contained single-file .NET 5 executable
Assuming you want to target Windows: dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found