Skip to content

app crashing when analyzing a folder -Invalid portable frameworks for '.NETPortable,Version=v4.0,Profile=Profile1'. A portable framework must have at least one framework in the profile. #62

Description

@shadowtam

Version

0.1.330-beta (15b8973)

Hi, I am encountering an issue when analyzing a folder, the app silently crashes with the below in the Windows Event Log
let me know if there is any further information you need :)


Application: NetUpgradePlanner.exe
CoreCLR Version: 8.0.524.21615
.NET Version: 8.0.5
Description: The process was terminated due to an unhandled exception.
Exception Info: NuGet.Frameworks.FrameworkException: Invalid portable frameworks for '.NETPortable,Version=v4.0,Profile=Profile1'. A portable framework must have at least one framework in the profile.
   at NuGet.Frameworks.NuGetFramework.GetShortFolderName(IFrameworkNameProvider mappings)
   at Terrajobst.NetUpgradePlanner.AssemblySet.Create(IEnumerable`1 paths, IProgressMonitor progressMonitor)
   at NetUpgradePlanner.Services.WorkspaceService.<>c__DisplayClass9_0.<AddAssembliesAsync>b__2(IProgressMonitor pm)
   at NetUpgradePlanner.Services.ProgressService.<>c__DisplayClass15_0`1.<Run>b__0(IProgressMonitor pm)
   at NetUpgradePlanner.Services.ProgressService.<>c__DisplayClass17_0`1.<<Run>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at NetUpgradePlanner.Services.ProgressService.Run(Func`2 operation, String text)
   at NetUpgradePlanner.Services.ProgressService.Run[T](Func`2 operation, String text)
   at NetUpgradePlanner.Services.WorkspaceService.AddAssembliesAsync(IEnumerable`1 paths)
   at NetUpgradePlanner.ViewModels.MainWindow.MainWindowViewModel.AddFolderAsync()
   at NetUpgradePlanner.ViewModels.MainWindow.MainWindowViewModel.<.ctor>b__10_12()
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at NetUpgradePlanner.App.Main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions