Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Crash with System.Runtime not found #463

Open
johnnyontheweb opened this issue Oct 26, 2022 · 3 comments
Open

Crash with System.Runtime not found #463

johnnyontheweb opened this issue Oct 26, 2022 · 3 comments

Comments

@johnnyontheweb
Copy link

Similarly to previous issues, I have this:

try-convert -w MySolution.sln -m "C:\Program Files\dotnet\sdk\6.0.402"

crashes with:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Impossibile trovare il file specificato.
File name: 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at MSBuild.Abstractions.MSBuildConversionWorkspaceLoader.LoadWorkspace(String path, Boolean noBackup, String tfm, Boolean keepCurrentTFMs, Boolean forceWeb)
   at MSBuild.Conversion.Program.Run(String project, String workspace, String msbuildPath, String tfm, Boolean forceWebConversion, Boolean preview, Boolean diffOnly, Boolean noBackup, Boolean keepCurrentTfms, Boolean update, Boolean mauiConversion) in /_/src/try-convert/Program.cs:line 133
@az-zyr
Copy link

az-zyr commented Nov 1, 2022

Did you find solution, please share it if you do... Ty in advance...

@JerryJoyce
Copy link

I am encountering this exact issue as well.

@brinkdinges
Copy link

Same here. The first issue I had was that the tool says there are multiple SDK versions installed, but it shows zero to choose from. That's apparently caused by me only having the .NET 7.0 SDK installed while try-convert is targeting .NET 6.0 and it cannot use future versions. So, I installed the .NET 6.0 SDK.

When I specifiy the SDK version like the topic started did, I see the same FileNotFoundException. When I specify the full path to MsBuild.exe ("C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe") I get an error saying it can't find a subfolder.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants