-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Migrated class library project targeting netstandard16 and netstandard13 gives 'no run-time assembly compatible' errors #7471
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
Comments
Did you run |
Yes, very many times :) This is after a few hours of work to try to track down what might be the cause |
@kierenj does it work if you just remove / comment out the @livarcocc Maybe |
We need the runtime identifiers if the project target any full framework project. Even a library. |
That is.. unfortunate.. |
I'm running some migrations on my repositories, and running into this issue too. However if I do delete the runtime identifiers, it starts working again. I am building both a .NET 4.5 and a .NET Standard 1.5 project in most of my repos. So I'm confused on the runtime identifiers statement for targeting the full framework, as I'm not seeing that issue. |
@livarcocc why exactly does a library need the RIDs? I'm a bit lost on that at the moment.. |
I actually didn't realize this wasn't needed for libraries. I will try this here and fix migration to not add them when the output type is a library. Thanks for educating me on this. |
Thanks @jgoshi |
@dasMulli @livarcocc Feel free to chime in on this conceptual question if you have a good understanding about that topic now. |
Steps to reproduce
Have a migrated csproj file thusly:
Note, the project has but one class,
Placeholder.cs
, which is entirely empty.Expected behavior
Project builds correctly, three targeted frameworks.
Actual behavior
Many errors in this form:
(For pretty much every
System.*
package)Environment data
dotnet --info
output:Would appreciate any tips for progressing. This is the latest in a chain of about 6 bugs and workarounds for bugs I'm deeply immersed in, trying to build a workaround environment for my project. Let me know if I've got the wrong repo, too.
The text was updated successfully, but these errors were encountered: