For compatibility of an app, I need to test certain actions in a .Net Framework 4.0-only environment.
I initially tried to just install .Net Framework 4.0 on it's own:
choco install dotnet4.0 -y
But it seems types from newer versions of .Net are still available (from reflection in my case specifically). For now, I still hope it's not .Net Framework 4.8 (which I have no idea how to uninstall automatically) and only some .Net core versions:
For compatibility of an app, I need to test certain actions in a .Net Framework 4.0-only environment.
I initially tried to just install .Net Framework 4.0 on it's own:
But it seems types from newer versions of .Net are still available (from reflection in my case specifically). For now, I still hope it's not .Net Framework 4.8 (which I have no idea how to uninstall automatically) and only some .Net core versions:
dotnet --list-runtimes
dotnet --list-sdks
So I tried to use this tool:
But
dotnet-core-uninstall.exe
is not created at the same path, as running that same command locally from cmd.Tried to attach the log file to the installer - but don't see anything useful: