You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
12:45:37 [WRN] Could not inject value for IBuildRestore.Solution
System.ArgumentException: No solution file defined for 'Solution'.
at Nuke.Common.Assert.NotNull[T](T obj, String message, String argumentExpression) in /_/source/Nuke.Utilities/Assert.cs:line 73
at Nuke.Common.ProjectModel.SolutionAttribute.GetSolutionFileFromParametersFile(MemberInfo member) in /_/source/Nuke.Common/Attributes/SolutionAttribute.cs:line 83
at Nuke.Common.ProjectModel.SolutionAttribute.GetValue(MemberInfo member, Object instance) in /_/source/Nuke.Common/Attributes/SolutionAttribute.cs:line 53
at Nuke.Common.ValueInjection.ValueInjectionAttributeBase.TryGetValue(MemberInfo member, Object instance) in /_/source/Nuke.Build/Execution/Extensibility/ValueInjectionAttributeBase.cs:line 26
from the Build - the Solution is correctly returned:
[DBG] /{file system path}/NukeConstructs.sln
Is there a comprehensive working example I can crib from - as Im obviously missing something from the documentation?
On review of this, it seems that this is directly setting the interfaces Solution property, where as the understandings is that is what the TryGetValue(() => Solution) is supposed to do?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Trying to understand components. Look like it has lots of potential for our use case (s) - lot's of similar builds!
per the Parameters I'm looking to access the solution, but
[Solution] Solution Solution => TryGetValue(() => Solution)!;
comes back with null?I see in the link above, that
Solution
is defined asstring
, however that mean I can then get to theSolution
properties?Am I also supposed to define
[Solution] Solution Solution;
in the mainBuild.cs
file too?I'm getting a
No solution file defined for 'Solution'.
exception?here is the Component:
here is the build:
here is the error:
from the Build - the
Solution
is correctly returned:Is there a comprehensive working example I can crib from - as Im obviously missing something from the documentation?
On review of this, it seems that this is directly setting the interfaces Solution property, where as the understandings is that is what the
TryGetValue(() => Solution)
is supposed to do?Beta Was this translation helpful? Give feedback.
All reactions