Resolving certificate errors building Windows Store Apps

I came back to a project that I had not built for some time, and received the following error:

The Publisher attribute of the Identity element in the app manifest must 
have the value of the Publisher ID value from your developer account:
{my dev account id}.

The help link associated with the error in Visual Studio was not helpful. I won’t post it here because no one should follow it, and it should not get any hits and increase its popularity by search engines.

OK, so how do you solve this issue? Don’t try to regenerate the certificate yourself from the App Manifest Designer.

Instead, *re-associate* your app with the Windows Store
and you will get an updated pfx file with the correct info.

This issue seems complicated further by the combining of stores for Windows and Windows Phone apps, because now my certificate as a GUID for a common name instead of the Publisher ID which would be a human readable string.

Live and learn…







Calling an external tool from Visual Studio

I recently helped someone who wanted to open an external editor from Visual Studio. Below are the steps I suggested to map a keyboard shortcut to open Notepad++ to the same line/column cursor position as the Visual Studio editor was at.

You can get a solution to this that takes 2 steps, both of which take little time once you have your search results. Double-click the result, press ctrl-shift-alt-L (can be changed of course).

The steps below are verbose to show as much as possible so everyone can understand the steps and modify accordingly.

Create a cmd file that will launch notepad++ with file, line, and column arguments

Save the code below in d:\util\startnppwith3args.cmd

setlocal
set _file=%0
set _line=%1
set _column=%2
set _line=%_line:"=%
set _column=%_column:"=%
: remember to use "" as first arg as blank title so we call npp properly :)
start "" "F:\Program Files (x86)\Notepad++\notepad++.exe" -multiInst -nosession -n%_line% -c%_column% %_file%
pause
endlocal

Create external tool to call startnppwith3args.cmd

tools | External Tools…

enter image description here

Remember the position of this command, 3 in this case.

Create a keyboard shortcut to “command3”

tools | Options | Keyboard and search for externalcommand

enter image description here

Assign your desired key combination to this command ctrl-shift-alt L for example.

Verify your command is as expected on the Tools menu

enter image description here

Now put it all into action


  • Open a file in Visual Studio

  • Search for something in the file

  • Double-click desired search result

  • Press ctrl-shift-alt L

Notepad++ opens up the file on the line and column for the search result!

enter image description here

What’s left?


  • Take the pause out of the cmd file as it was used just for debugging purposes.

  • decide if you want -multiInst -nosession arguments

  • Take a look at Arguments for External Tools for all variables that are assigned when you launch an external tool.

Conclusion

This was in interesting question, and an area I had not explored before. I might use this technique myself and for other purposes.







Is this thing on

Just learning how to use hexo to show an image. Works on the site, but not
in the markdown editor I am using (atom at the moment).

An image.

Hmmm.







Getting ready to publish

It’s been a busy week getting the website set up, some work to make it look halfway decent, and finally to determine how best I want to publish this blog. I think I have things just about the way I like it, so some informative commentary should start flowing soon.







Adding to the tubes

The internet needs more content

I am starting a blog to capture some of the things I have been meaning to share for a long time. I will be adding new posts from several categories over the next few weeks to catch up on some backlog items.

Enjoy.







Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment