Comments (7)
I think the tool could have some better logging if it couldn't find MSBuild.exe. Looks like there is a check here if just one instance of MSBuild was found and shows the Multiple installs of MSBuild
selector in all other cases (including the zero case).
try-convert uses MSBuildLocator to attempt to find MSBuild.exe on the machine to use. From my past experience, if you have ONLY a newer version of .NET SDK installed on your machine than what the tool is targeting, MSBuildLocator won't locate your newer SDK.
At the time of writing this, the released version of try-convert v0.9.232202 is targeting .NET5. Ensure you have the .NET5 x64 SDK installed on your machine and attempt to run try-convert again. You can check what installed versions you have by running dotnet --list-sdks
.
Edit:
Looking a bit closer at MSBuildLocator, skipping SDKs that are newer than the apps targeted runtime is desired behavior.
microsoft/MSBuildLocator#92
from try-convert.
I ran into this issue as well. Running try-convert within a "Developer Command Prompt for VS 2019" seemed to work around it.
from try-convert.
Interesting. Can you run dotnet --list-sdks
and paste the output?
from try-convert.
Interesting. Can you run
dotnet --list-sdks
and paste the output?
dotnet --list-sdks
5.0.403 [C:\Program Files\dotnet\sdk]
6.0.100 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
I did notice it works on a vanilla "cmd.exe" but reports the error on "Developer Command Prompt for VS 2022". all 3 command prompt versions report the same for "dotnet --list-sdks"
from try-convert.
Ah - in general, both try-convert and upgrade-assistant are expected to run in a terminal without the environment variables set by the developer command prompt. They set those variables internally and if they're already set it may conflict with resolution done by the tool.
from try-convert.
This is what I have (on the Visual Studio 2022 only VM):
6.0.200 [C:\Program Files\dotnet\sdk]
from try-convert.
i get the same issue as well
from try-convert.
Related Issues (20)
- Try convert: displays multiple instances , without being able to pick one HOT 6
- There appear to be some build issues on recent sdks
- Documentation should point out that --ignore-failed-sources could be required HOT 1
- Release .NET 6 version to NuGet
- Immediate crash on startup (System.Threading.Tasks.Dataflow, Version=6.0.0.0) HOT 3
- Conversion to net6.0: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF
- Not Recognizing UWP as Supported Output Type
- try-convert crashes with "Could not load file or assembly 'System.Runtime" HOT 8
- Upgrade removes custom Import statements
- still trying to find netcore 5 not 6 issue
- can not seem to be able to fix this error HOT 4
- "Multiple installs of MSBuild detected please select one" HOT 1
- try-convert crashes with 'Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=6.0.0.0 HOT 2
- Crash with System.Runtime not found HOT 3
- What is correct input of Multiple installs of MSBuild detected please select one HOT 6
- try-convert 0.9.4.32202 crashes with: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (0x80131621) HOT 7
- try-convert can be smart, add condition when encountering a dll with a different name
- Can't use the tool with Supported .NET versions
- Why does the program not warn that .net 5 is needed when starting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from try-convert.