Код: Выделить всё
error NU1605: Detected package downgrade: System.Diagnostics.Debug from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. [/app/MyProject.csproj]
Код: Выделить всё
netcoreapp3.1
exe
- dotnetcore3.1
- Образ сборки Docker: mcr.microsoft.com/dotnet/core/sdk:3.1
- Образ времени выполнения Docker: mcr.microsoft.com/dotnet/core/runtime:3.1-bionic
- "Просто добавьте "
- Все, что связано с открытием Visual Studio
Основываясь на этом сообщении, обратитесь к пакету непосредственно из проекта, чтобы выбрать другую версию., я Я пытался добавить ссылки на пакеты в свой csproj, но ни один из «System», «System.Diagnostics» или «System.Diagnostics.Debug» не работает.
Как это сделать? вы действительно решили эту проблему?
Пожалуйста, будьте конкретны. Я все еще новичок в C#, и многие решения, которые я нашел, возможно, не сработали, потому что они просто сказали добавить , и я понятия не имел, куда его поместить или под каким родителем поместить тег.< /p>
Для Grey Cat я попробовал: добавить привязку Redirect в стандартную библиотеку .Net
Изначально так не казалось вообще изменил вывод. Поигравшись с многословием, я нашел вот это:
Код: Выделить всё
"/app/MyProject.csproj" (Publish target) (1) ->
(ResolveAssemblyReferences target) ->
/usr/share/dotnet/sdk/3.1.100/Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Configuration.ConfigurationManager" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/app/MyProject.csproj]
/usr/share/dotnet/sdk/3.1.100/Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Security.AccessControl" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/app/MyProject.csproj]
/usr/share/dotnet/sdk/3.1.100/Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Security.Permissions" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/app/MyProject.csproj]
/usr/share/dotnet/sdk/3.1.100/Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3277: Found conflicts between different versions of "System.Security.Principal.Windows" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [/app/MyProject.csproj]
Подробнее здесь: https://stackoverflow.com/questions/595 ... rade-error