-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use of nested project structure causes CS0579 #14286
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
Could you give me a sample project? It is likely there is another project nested inside another project's folder structure. |
Indeed it is a nested project structure. EDIT: As you indeed identified the problem is not RuntimeIdentifier. The problem is actually nested projects. |
We don't support nested project structure by default. You can disable the dotnet core project default items. More detail here https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#default-compilation-includes-in-net-core-projects |
…ibute' `dotnet test` in `implement/test-elm-fullstack` sometimes failed with errors like these: ``` elm-fullstack\implement\test-elm-fullstack\obj\Debug\netcoreapp3.1\.NETCoreApp,Version=v3.1.AssemblyAttributes.cs(4,12): error CS0579: Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute [elm-fullstack\implement\test-elm-fullstack\test-elm-fullstack.csproj] elm-fullstack\implement\test-elm-fullstack\obj\Debug\netcoreapp3.1\test-elm-fullstack.AssemblyInfo.cs(14,12): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute [elm-fullstack\implement\test-elm-fullstack\test-elm-fullstack.csproj] [...] ``` An alternative way to work around these errors is to remove garbage files in the repository automatically created by .net tooling. For discussion of this issue, see also dotnet/sdk#12297 and dotnet/sdk#14286
Uh oh!
There was an error while loading. Please reload this page.
A lot of errors are generated when using a nested project structure.
Error log:
No matter what I try nothing can fix it except adding all kinds of weird properties to EVERY project in the solution:
The text was updated successfully, but these errors were encountered: