Azure / Azure/azure-functions-powershell-library
Hard crash with `func start` using .NET 8 preview 5
- Dominant language
- C#
- Stars
- 2
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Follow the preview instructions but use .NET 8 preview 5 via
```powershell
winget install --id Microsoft.DotNet.SDK.Preview
func start
```
The result is this hard crash:
Core Tools Version: 4.0.5210 Commit hash: N/A (64-bit)
Function Runtime Version: 4.21.1.20667
[2023-06-19T21:59:36.855Z] Language Worker Process exited. Pid=16800.
[2023-06-19T21:59:36.856Z] C:\Program Files\dotnet\dotnet.exe exited with code -532462766 (0xE0434352). Unhandled exception. System.TypeInitializationException: The type initializer for 'System.Management.Automation.PSVersionInfo' threw an exception.
Could we please trap this error and return more reasonable message like ".NET 8 Preview 1-4 is required but not found"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the crash with .NET 8 preview 5 using the reported winget install command and func start entry point, then review how the PowerShell worker handles the reported System.TypeInitializationException. Done means the failure is trapped and produces a clear message about the supported .NET 8 preview versions instead of terminating with the hard crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100