Running Visual Studio 2022 + all updates.
I have an old version of a Class Library running on .Net 4.7.
Im attempting to upgrade it to the new SDK style so
I first run the command
dotnet tool install --global Project2015To2017.Migrate2019.Tool
then
dotnet migrate-2019 wizard
pathToProject
It asks to modernize the app and all questions that pop up i select Y.
I attempt to rebuild the project and get a package error (Microsft.Bcl)
so search for this under the NuGet package options and install again. The next error that im presented with is
The type 'CallerLineNumberAttribute' exists in both 'System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Ive tried making different amendments to the .csproj file (removing <PackageReference Include="System.Runtime" Version="4.3.1" />
changing other values) but no matter what i try the above error remains.
What could i do to stop that error and build the project? If you require more info please advise and i can post any configs i have.