umbraco / UmbPack

13 stars 13 forks source link

Null Exception on umbpack init #56

Closed AaronSadlerUK closed 3 years ago

AaronSadlerUK commented 3 years ago

.NET 5.0

Installed UmbPack 1.0.0 Run umbpack init

Got the below exception:

D:\Repos\Umbraco.MegaNavV8\Builds\UmbPack> umbpack init
Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Resources.MissingManifestResourceException: Could not find the resource "Umbraco.Packager.CI.Properties.HelpTextResource.resources" among the resources "UmbPack.Properties.Defaults.resources", "UmbPack.Properties.HelpTextResource.resources", "UmbPack.Properties.Resources.resources" embedded in the assembly "UmbPack", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.
   at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
   at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists)
   at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
   at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
   at Umbraco.Packager.CI.Properties.HelpTextResource.get_HelpPack() in D:\a\UmbPack\UmbPack\src\Properties\HelpTextResource.Designer.cs:line 100
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   at CommandLine.Infrastructure.LocalizableAttributeProperty.GetLocalizedValue()
   at CommandLine.Infrastructure.LocalizableAttributeProperty.get_Value()
   at CommandLine.VerbAttribute.get_HelpText()
   at CommandLine.Core.Verb.FromAttribute(VerbAttribute attribute)
   at CommandLine.Core.Verb.<>c.<SelectFromTypes>b__11_2(<>f__AnonymousType12`2 <>h__TransparentIdentifier0)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at CommandLine.Core.InstanceChooser.MatchVerb(Func`3 tokenizer, IEnumerable`1 verbs, IEnumerable`1 arguments, StringComparer nameComparer, Boolean ignoreValueCase, CultureInfo parsingCulture, Boolean autoHelp, Boolean autoVersion, IEnumerable`1 nonFatalErrors)
   at CommandLine.Core.InstanceChooser.<>c__DisplayClass0_0.<Choose>b__0()
   at CommandLine.Core.InstanceChooser.Choose(Func`3 tokenizer, IEnumerable`1 types, IEnumerable`1 arguments, StringComparer nameComparer, Boolean ignoreValueCase, CultureInfo parsingCulture, Boolean autoHelp, Boolean autoVersion, IEnumerable`1 nonFatalErrors)
   at CommandLine.Parser.ParseArguments(IEnumerable`1 args, Type[] types)
   at CommandLine.ParserExtensions.ParseArguments[T1,T2,T3](Parser parser, IEnumerable`1 args)
   at Umbraco.Packager.CI.Program.InternalMain(String[] args, PackageHelper packageHelper) in D:\a\UmbPack\UmbPack\src\Program.cs:line 56
   at Umbraco.Packager.CI.Program.Main(String[] args) in D:\a\UmbPack\UmbPack\src\Program.cs:line 33
   at Umbraco.Packager.CI.Program.<Main>(String[] args)
Rockerby commented 3 years ago

Thanks for the issue Aaron. Looks like there was an issue with the auto merger of a couple of the branches we had.

This has been sorted in https://github.com/umbraco/UmbPack/pull/57 and is part of v1.0.1.