New console app with framework reference to Microsoft.NETCore.App, remove the version property from .runtimeconfig.json, run the app:
Fails with:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App' was not found.
- The following frameworks were found:
<list of frameworks on the machine>
Running this on a Debug build causes an assert in fx_resolver.
We should explicitly check for this and fail with a meaningful error message. It's not valid to have a framework reference without version.
Once implemented, this should work for both framework references and "included frameworks" (in self-contained apps). All cases should have tests as well.
New console app with framework reference to
Microsoft.NETCore.App
, remove theversion
property from.runtimeconfig.json
, run the app:Fails with:
Running this on a Debug build causes an assert in
fx_resolver
.We should explicitly check for this and fail with a meaningful error message. It's not valid to have a framework reference without version.