Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Improve "Getting started" page

Open Matthias-Hess opened this issue 11 years ago • 5 comments

Just an idea how to improve the Getting Started documentation to make it a bit more "fool proof". I see two possible problems with the following code snippet:

// NB: For this version, always say your app is using .NET 4.5, even if it's
// totally not
using (var mgr = new UpdateManager("https://path/to/my/update/folder")) 
{
    await mgr.UpdateApp();
}

first problem

If you just copy and paste the code snippet into your application, the code will not compile, because UpdateManager is in a namespace that is not in scope.

The novice has two possible ways to resolve this:

  • he adds a using directive at the top of the file. If he does this. everything is fine.
  • he uses the fully qualified name. If he chooses this option, he might get confused, because UpdateManager does not have an UpdateApp() method, as this is an extension method.

It would be good to include a hint like add the following using directive at the top of your code:

using Squirrel;

second problem

The comment in the code snippet about .NET 4.5 seems completeley out of context. You can safely remove that comment.

Matthias-Hess avatar Sep 12 '15 14:09 Matthias-Hess

@Ribeiro did u forget to submit ur PR?

elbaloo avatar Oct 07 '15 21:10 elbaloo

@elbaloo Actually I already did but it seems to be ignored https://github.com/Squirrel/Squirrel.Windows/pull/458

Ribeiro avatar Oct 07 '15 23:10 Ribeiro

@elbaloo or @paulcbetts could you please close the issue? Thankx =)

Ribeiro avatar Oct 08 '15 12:10 Ribeiro

@Ribeiro this will come handy for your next PR ;)

elbaloo avatar Oct 08 '15 13:10 elbaloo

@elbaloo Thankx ;)

Ribeiro avatar Oct 08 '15 13:10 Ribeiro