try-convert icon indicating copy to clipboard operation
try-convert copied to clipboard

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

Open behroozbc opened this issue 2 years ago • 6 comments

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

behroozbc avatar Jan 17 '23 08:01 behroozbc

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\

savornicesei avatar Jan 17 '23 22:01 savornicesei

Yes

6.0.405 [C:\Program Files\dotnet\sdk]
7.0.100 [C:\Program Files\dotnet\sdk]

behroozbc avatar Jan 18 '23 08:01 behroozbc

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

savornicesei avatar Jan 18 '23 11:01 savornicesei

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

idefy avatar Jun 05 '23 14:06 idefy

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.

idefy avatar Jun 05 '23 14:06 idefy

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:

muliar avatar Aug 31 '23 21:08 muliar