Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Commented Issue: "Manage Solution Packages" Fails with WiX Project in Solution [2967]

$
0
0
With NuGet 2.2.31210.9045 and a solution that has a WiX 3.5 project in it, I'm unable to manage solution packages using the IDE.

Right-click on the solution, select "Manage Solution Packages," then select any package and click the "Manage" button. A small dialog pops up that says:

Operation failed
Value cannot be null.
Parameter name: key

Once you dismiss that dialog by clicking "OK," the package management dialog can't be closed because the "Close" button is disabled. The only way to get rid of it is to kill Visual Studio with Task Manager.

This is an issue that goes away one release and regresses the next. It was here back around the 1.8 timeframe, went away, and now it's back. There is a similar-sounding issue around F# projects that was closed with the 2.2 release.

Here's the stack trace:

```
Value cannot be null.
Parameter name: key
Server stack trace:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at NuGet.VersionUtility.NormalizeFrameworkName(FrameworkName framework)
at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)
at NuGet.VersionUtility.<>c__DisplayClass1f.<IsCompatible>b__1d(FrameworkName supportedFramework)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, IEnumerable`1 supportedFrameworks)
at NuGet.Dialog.SolutionWalker.<CreateProjectNode>d__9.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at NuGet.Dialog.SolutionWalker.<CreateProjectNode>d__9.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at NuGet.Dialog.SolutionWalker.Walk(Solution solution, IPackage package, Predicate`1 checkedStateSelector, Predicate`1 enabledStateSelector)
at NuGet.Dialog.SolutionExplorerViewModel.<>c__DisplayClass2.<.ctor>b__0()
at System.Lazy`1.CreateValue()

Exception rethrown at [0]:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at NuGet.VersionUtility.NormalizeFrameworkName(FrameworkName framework)
at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, FrameworkName targetFrameworkName)
at NuGet.VersionUtility.<>c__DisplayClass1f.<IsCompatible>b__1d(FrameworkName supportedFramework)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at NuGet.VersionUtility.IsCompatible(FrameworkName frameworkName, IEnumerable`1 supportedFrameworks)
at NuGet.Dialog.SolutionWalker.<CreateProjectNode>d__9.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at NuGet.Dialog.SolutionWalker.<CreateProjectNode>d__9.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at NuGet.Dialog.SolutionWalker.Walk(Solution solution, IPackage package, Predicate`1 checkedStateSelector, Predicate`1 enabledStateSelector)
at NuGet.Dialog.SolutionExplorerViewModel.<>c__DisplayClass2.<.ctor>b__0()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at System.Lazy`1.get_Value()
at NuGet.Dialog.PackageManagerUI.UserNotifierServices.ShowProjectSelectorWindow(String instructionText, IPackage package, Predicate`1 checkedStateSelector, Predicate`1 enabledStateSelector)
```
Comments: Same with WiX 3.7. __Workaround__: right click the WiX project and unload it before using NuGet.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>