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.

Solution-level error when a RuntimeIdentifier is specified

See original GitHub issue

Related to a subset of #696 that won’t be fixed by #828.

If a solution build has a RID specified, it will fail.

This can be because (after #828) it double-builds a library (once with RID specified from the solution’s global properties, once with it removed): sln race

Or, if nothing is done, this will fail when attempting to specify a RID on a project that doesn’t need one.

If VS and the CLI distributed a solution-extension target that ran before Build and errored when '$(RuntimeIdentifier)' != '', it would at least provide guiderails to nudge users back into the more supported scenarios. It could say something like Building a solution with a specific RuntimeIdentifier is not supported. If you would like to publish for a single RID, specifiy the RID at the individual project level instead.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
dsplaistedcommented, Apr 9, 2020

@sfoslund If you’re looking for issues to tackle, this one is a candidate

0reactions
benmccallumcommented, Apr 14, 2020

I’ve split off my issues into the one linked above since it’s still happening regardless of a runtime id.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`RuntimeIdentifier` warning if self-contained is unspecified ...
NET 6 where specifying a `RuntimeIdentifier` without specifying whether an app is self-contained results in a warning.
Read more >
Visual Studio 2019 MSBuild Error when Building .sln
I got an error when executing the following commands: md test cd test ... that a runtime identifier is not specified at the...
Read more >
VS 15.8.2 broke build tools - missing RuntimeIdentifier
I got the error of "missing RuntimeIdentifier". Your project file doesn't list 'win' as a "RuntimeIdentifier". You should add 'win' to the ...
Read more >
RuntimeIdentifiers error when multiple identifiers
The error I got when run on VS2019 on Windows 10 was: A fatal error was encountered.
Read more >
error NETSDK1194: The "--output" option isn't supported ...
The --output option is disallowed because all outputs of all built projects would be copied into the specified directory, which isn't compatible ...
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