dotnet / try-convert

Helping .NET developers port their projects to .NET Core!
MIT License
1.15k stars 153 forks source link

What is correct input of Multiple installs of MSBuild detected please select one #465

Open behroozbc opened 1 year ago

behroozbc commented 1 year ago

I want to use try-convert in my project and I get this message "Multiple installs of MSBuild detected please select one" but I cannot provide acceptable Input. I provided these inputs, but got an error. image

savornicesei commented 1 year ago

Hi!

Do you have any .NET SDK installed? On my machine I get

Multiple installs of MSBuild detected please select one:
Instance 1
    Name: .NET Core SDK
    Version: 5.0.416
    MSBuild Path: C:\Program Files\dotnet\sdk\5.0.416\
Instance 2
    Name: .NET Core SDK
    Version: 5.0.408
    MSBuild Path: C:\Program Files\dotnet\sdk\5.0.408\
Instance 3
    Name: .NET Core SDK
    Version: 5.0.214
    MSBuild Path: C:\Program Files\dotnet\sdk\5.0.214\
Instance 4
    Name: .NET Core SDK
    Version: 5.0.203
    MSBuild Path: C:\Program Files\dotnet\sdk\5.0.203\
Instance 5
    Name: .NET Core SDK
    Version: 3.1.426
    MSBuild Path: C:\Program Files\dotnet\sdk\3.1.426\
behroozbc commented 1 year ago

Yes

6.0.405 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]
savornicesei commented 1 year ago

By looking at the PRs for try-convert, it does not support .NET 6 or 7. Try to install .NET 5 SDK.

idefy commented 1 year ago

I have the same issue. I did install .Net 5 SDK, but it still shows empty choices.

idefy commented 1 year ago

Nevermind. I had used the linked proposed by try-convert to install 5.0 SDK but that seems to not have worked. I search for the official link and it installed and conversion is now working.

muliar commented 1 year ago

No options after I installed 5.0 SDK with Visual Studio and with provided link

PS D:\Users\amuliar\Projects\_math\RingsAlgebra> try-convert -tfm net6.0-windows -p RingsAlgebra.sln
Multiple installs of MSBuild detected please select one: