예제 #1
0
        public static void Main()
        {
            SyncVersions wix = new SyncVersions()
            {
                DropDir     = @"d:\git\lovettchris\XmlNotepad\src\drop",
                VersionFile = @"d:\git\lovettchris\XmlNotepad\src\Version\Version.cs",
                WixFile     = @"d:\git\lovettchris\XmlNotepad\src\XmlNotepadSetup\Product.wxs",
                UpdatesFile = @"d:\git\lovettchris\XmlNotepad\src\Updates\Updates.xml",
                ReadmeFile  = @"d:\git\lovettchris\XmlNotepad\src\Updates\Readme.htm"
            };

            wix.Execute();
        }
예제 #2
0
        public static void Main()
        {
            var location = Path.GetDirectoryName(typeof(Program).Assembly.Location);

            // find root of XmlNotepad repo.
            location = new Uri(new Uri("file:///" + location), "../../..").LocalPath;

            SyncVersions wix = new SyncVersions()
            {
                DropDir         = Path.Combine(location, @"src\drop"),
                VersionFile     = Path.Combine(location, @"src\Version\Version.cs"),
                WixFile         = Path.Combine(location, @"src\XmlNotepadSetup\Product.wxs"),
                UpdatesFile     = Path.Combine(location, @"src\Updates\Updates.xml"),
                AppManifestFile = Path.Combine(location, @"src\XmlNotepadPackage\Package.appxmanifest"),
                AppXProjectFile = Path.Combine(location, @"src\XmlNotepadPackage\XmlNotepadPackage.wapproj"),
            };

            wix.Execute();
        }