Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with admin tool #9

Open
BlackZork opened this issue Jun 30, 2014 · 3 comments
Open

Problem with admin tool #9

BlackZork opened this issue Jun 30, 2014 · 3 comments

Comments

@BlackZork
Copy link

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 55960af

@BlackZork
Copy link
Author

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
Copy link
Owner

ayende commented Jun 30, 2014

Can you send a PR for this?

@BlackZork
Copy link
Author

It looks like it is already there:
pullrequest #6

Sorry, I am not git-guy :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants