3

I have been trying to fix version conflicts in my .NET 6 console project. I fail to find a way like app.config's BindingRedirect or CodeBase, which worked for this case in .NET Framework.

Is there a BindingRedirect/CodeBase or an alternative in .NET 6? How do I fix assembly version problems?

Palec
  • 12,743
  • 8
  • 69
  • 138
ittay
  • 519
  • 5
  • 15
  • I believe you can just add the `app.config` and add a binding redirect. – Stefan Apr 03 '22 at 15:11
  • @Stefan OP _"I believe you can just add the app.config and add a binding redirect"_ - OP has already indicated knowledge of _"app.config's BindingRedirect or CodeBase whiuch were in .Net Framework"_ –  Apr 03 '22 at 15:15
  • @MickyD: yeah, so the `app.config` is default included in .net framework templates, but is missing in the .net core templates. Whilst OP indicates to have knowledge about the `app.config`, it's still ambiguous if OP knows he/she can just add the file. – Stefan Apr 03 '22 at 15:21
  • 2
    @Stefan I'm pretty certain that's just going to get ignored. Binding redirects don't exist in .NET Core, it's a legacy .NET Framework thing. – Charles Mager Apr 03 '22 at 18:00
  • @CharlesMager: than I was incorrect on that part - i.e.: I believed wrong XD – Stefan Apr 03 '22 at 18:08
  • 2
    As I understand, app.config is not supported in .net core or later – ittay Apr 04 '22 at 15:11
  • 1
    Looks like there is no solution in .net core /5/6: https://learn.microsoft.com/en-us/nuget/concepts/dependency-resolution#cousin-dependencies – ittay Apr 04 '22 at 15:21

1 Answers1

-4

To update the version in console application you can go to Explorer project files Project => properties => AssemblyInfo.cs

enter image description here

T.S.
  • 18,195
  • 11
  • 58
  • 78