ayende / rhino-licensing

A software licensing framework
http://ayende.com
BSD 3-Clause "New" or "Revised" License
336 stars 167 forks source link

Problem with admin tool #9

Open BlackZork opened 10 years ago

BlackZork commented 10 years ago

1.git clone project 2.create assembiles with psake:

PS S:\rhino-licensing> Invoke-psake .\default.ps1
psake version 4.2.0
Copyright (c) 2010 James Kovacs

Executing Clean
Executing Init
Generating assembly info file: S:\rhino-licensing\Rhino.Licensing\Properties\AssemblyInfo.cs
Generating assembly info file: S:\rhino-licensing\Rhino.Licensing.Tests\Properties\AssemblyInfo.cs
Generating assembly info file: S:\rhino-licensing\Rhino.Licensing.AdminTool\Properties\AssemblyInfo.cs
Generating assembly info file: S:\rhino-licensing\Rhino.Licensing.AdminTool.Tests\Properties\AssemblyInfo.cs

    Directory: S:\rhino-licensing

Mode                LastWriteTime     Length Name
----                -------------     ------ ----
d----        2014-06-30     10:29            Release
d----        2014-06-30     10:29            build
Executing Compile
2014-06-30 10:29:52: An Error Occurred:
Exec : Cannot process argument transformation on parameter 'cmd'. Cannot convert the "msbuild" value of type "System.St
ring" to type "System.Management.Automation.ScriptBlock".
At S:\rhino-licensing\default.ps1:69 char:7
+   exec <<<<  msbuild "/p:OutDir=""$buildartifacts_dir "" $sln_file"
    + CategoryInfo          : InvalidData: (:) [Exec], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Exec

(I think that it went ok and psake complains about missing msbuild.exe, I do not have msvcvarsXX env set by default)

3.Open visual studio express 2013 4.Build all 5.Run admin tool 6.File -> Open generates following exception:

A first chance exception of type 'Caliburn.Core.CaliburnException' occurred in     Caliburn.PresentationFramework.dll
An unhandled exception of type 'Caliburn.Core.CaliburnException' occurred in Caliburn.PresentationFramework.dll
Additional information: There was no handler found for the message Action: Gesture MouseAction.

Git master, rev 55960afd4c6380a727687a7ebb74bdf4a267caac

BlackZork commented 10 years ago

Solution was dead simple:

diff --git a/Rhino.Licensing.AdminTool/Views/ShellView.xaml b/Rhino.Licensing.AdminTool/Views/ShellView.xaml
index 98ad20d..fc7fc93 100644
--- a/Rhino.Licensing.AdminTool/Views/ShellView.xaml
+++ b/Rhino.Licensing.AdminTool/Views/ShellView.xaml
@@ -17,7 +17,7 @@
             <Menu.Items>
                 <MenuItem Header="_File">
                     <MenuItem Header="_New Project"  InputGestureText="Ctrl+N" cal:Message.Attach="[Gesture MouseAction: LeftClick]=[Action CreateNewProject];[Gesture Key:N, Modifiers:Control]=[Action CreateNewProject]" />
-                    <MenuItem Header="_Open Project" InputGestureText="Ctrl+O" cal:Message.Attach="[Gesture MouseAction: LeftClick]" />
+                    <MenuItem Header="_Open Project" InputGestureText="Ctrl+O" cal:Message.Attach="[Gesture MouseAction: LeftClick]=[Action OpenProject];[Gesture Key:O, Modifiers:Control]=[Action OpenProject]" />
                     <Separator />
                     <MenuItem Header="E_xit" InputGestureText="Ctrl+X" cal:Message.Attach="[Gesture MouseAction: LeftClick]=[Action TryClose]" />
                 </MenuItem>
ayende commented 10 years ago

Can you send a PR for this?

BlackZork commented 10 years ago

It looks like it is already there: pullrequest https://github.com/ayende/rhino-licensing/pull/6

Sorry, I am not git-guy :-)