Commit Graph

8 Commits

Author SHA1 Message Date
Antony Male 4da2d39999 Stylet.Start should create files as UTF-8 with BOM
It looks like VS uses UTF-8, not UTF-16, and UTF-16 really doesn't
play well with git (which thinks they're binary)
2018-09-30 18:04:43 +01:00
Antony Male 272b408bc6 Don't try and uninstall Stylet.Start in install.ps1
VS2015 now throws an error (it thinks Stylet.Start doesn't exist), and VS2017
deadlocks. Neither is a great outcome.

The best we can do is to ask the user to uninstall Stylet.Start

Fixes #32
2017-06-12 12:57:54 +01:00
Antony Male b7e79f5f6c Stylet.Start should save files in UTF-16 with BOM
This is the encoding which VS uses, so let's be consistent. We were
previously saving as UTF-8 without a BOM, which VS seemed to be interpreting
as ASCII, and was throwing a wobbly if non-ASCII characters were later
added.

Fixes #30
2017-06-05 13:02:41 +01:00
Antony Male fbbee51aef Recreate App.xaml if NuGet removed it 2016-04-05 10:26:00 +01:00
Antony Male 623dcd6aca Handle MainWindow which isn't a Window (??), and nonexistent MainWindow.xaml.cs 2016-04-05 09:13:12 +01:00
Antony Male cb51322927 Be smarter about upgrading ShellView attributes 2016-04-04 17:16:32 +01:00
Antony Male 52aa536a2a Make printed messages clearer 2016-04-04 14:49:59 +01:00
Antony Male a03803658c Use powershell, and powershell only, for Stylet.Start
NuGet's 'content' approach broke horribly when we tried to upgrade:
it removed App.xaml.cs.

Using powershell through and through is more powerful: we can have a
package which immediately uninstalls itself, which means it doesn't
remain part of the user's package set. We can also be smarter about
upgrading the project: we don't nuke anything that's in App.xaml, we
don't need the user to manually delete MainWindow.xaml, and we can keep
anything that's currently in MainWindow.xaml
2016-04-04 14:48:16 +01:00