{"action":"created","issue":{"url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/13","repository_url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer","labels_url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/13/comments","events_url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/13/events","html_url":"https://github.com/rhyous/WPFSharp.Globalizer/issues/13","id":380558202,"node_id":"MDU6SXNzdWUzODA1NTgyMDI=","number":13,"title":"Application cannot find static Main Method after installing","user":{"login":"AndreasReitberger","id":2952443,"node_id":"MDQ6VXNlcjI5NTI0NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/2952443?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreasReitberger","html_url":"https://github.com/AndreasReitberger","followers_url":"https://api.github.com/users/AndreasReitberger/followers","following_url":"https://api.github.com/users/AndreasReitberger/following{/other_user}","gists_url":"https://api.github.com/users/AndreasReitberger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasReitberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasReitberger/subscriptions","organizations_url":"https://api.github.com/users/AndreasReitberger/orgs","repos_url":"https://api.github.com/users/AndreasReitberger/repos","events_url":"https://api.github.com/users/AndreasReitberger/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasReitberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T06:44:09Z","updated_at":"2018-11-14T07:15:59Z","closed_at":"2018-11-14T07:15:59Z","author_association":"NONE","body":"Hi,\r\nI installed your package via NuGet. Now my application cannot be started any more.\r\nThat's the issue from VS2017:\r\nCS5001 The program has now static method which can be used as entry point  (translated from German).\r\n\r\nI tried two projects, same problem. I made the adjustments to the app.xml / app.xml.cs file\r\n\r\napp.xml.cs\r\n```\r\nusing WPFSharp.Globalizer;\r\n\r\nnamespace UI\r\n{\r\n    /// <summary>\r\n    /// Interaktionslogik für \"App.xaml\"\r\n    /// </summary>\r\n    public partial class App : GlobalizedApplication\r\n    {\r\n        protected override void OnStartup(StartupEventArgs e)\r\n        {\r\n            // get the current app style (theme and accent) from the application\r\n            // you can then use the current theme and custom accent instead set a new theme\r\n            Tuple<AppTheme, Accent> appStyle = ThemeManager.DetectAppStyle(Application.Current);\r\n            Configuration MyConfiguration = Configuration.Instance;\r\n            Design design = Design.Instance;\r\n            // now set the Green accent and dark theme\r\n            if (design.THEME_NAME != null && design.THEME_APP_STYLE != null)\r\n            {\r\n                var t = design.THEME_NAME;\r\n                var z = design.THEME_APP_STYLE;\r\n                ThemeManager.ChangeAppStyle(Application.Current,\r\n                                            (design.THEME_NAME),\r\n                                            (design.THEME_APP_STYLE)); // or appStyle.Item1\r\n            }\r\n            System.Threading.Thread.CurrentThread.CurrentUICulture = design.GENERAL_LANGUAGE;\r\n            base.OnStartup(e);\r\n        }\r\n\r\n        public App()\r\n        {\r\n            //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(\"en-US\");\r\n            //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(\"en\"); \r\n        }\r\n    }\r\n}\r\n```\r\n\r\napp.xml\r\n```\r\n<globalizer:GlobalizedApplication x:Class=\"UI.App\"\r\n             xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\r\n             xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\r\n             xmlns:Controls=\"clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro\"\r\n             xmlns:globalizer=\"clr-namespace:WPFSharp.Globalizer;assembly=WPFSharp.Globalizer\"\r\n             xmlns:local=\"clr-namespace:UI\"\r\n             StartupUri=\"MainWindow.xaml\">\r\n    <Application.Resources>\r\n        <ResourceDictionary>\r\n            <ResourceDictionary.MergedDictionaries>\r\n                <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->\r\n                <ResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml\" />\r\n                <ResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml\" />\r\n                <ResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml\" />\r\n                <!-- Accent and AppTheme setting -->\r\n                <ResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Accents/Steel.xaml\" />\r\n                <ResourceDictionary Source=\"pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml\" />\r\n            </ResourceDictionary.MergedDictionaries>\r\n            <!-- NEEDED FOR HAMBURGER MENU STYLE -->\r\n            <Style TargetType=\"{x:Type Controls:WindowButtonCommands}\"\r\n                   BasedOn=\"{StaticResource MahApps.Metro.Styles.WindowButtonCommands.Win10}\" />\r\n            <!-- CENTERS ALL MENU ITEM HEADERS -->\r\n            <Style x:Key=\"{x:Type MenuItem}\" TargetType=\"{x:Type MenuItem}\">\r\n                <Setter Property=\"HeaderTemplate\">\r\n                    <Setter.Value>\r\n                        <DataTemplate>\r\n                            <ContentPresenter HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\" Content=\"{Binding}\" />\r\n                        </DataTemplate>\r\n                    </Setter.Value>\r\n                </Setter>\r\n                \r\n            </Style>\r\n        </ResourceDictionary>\r\n    </Application.Resources>\r\n</globalizer:GlobalizedApplication>\r\n```\r\nDid I miss anything?\r\n\r\nThanks for helping!"},"comment":{"url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/comments/438562068","html_url":"https://github.com/rhyous/WPFSharp.Globalizer/issues/13#issuecomment-438562068","issue_url":"https://api.github.com/repos/rhyous/WPFSharp.Globalizer/issues/13","id":438562068,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODU2MjA2OA==","user":{"login":"AndreasReitberger","id":2952443,"node_id":"MDQ6VXNlcjI5NTI0NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/2952443?v=4","gravatar_id":"","url":"https://api.github.com/users/AndreasReitberger","html_url":"https://github.com/AndreasReitberger","followers_url":"https://api.github.com/users/AndreasReitberger/followers","following_url":"https://api.github.com/users/AndreasReitberger/following{/other_user}","gists_url":"https://api.github.com/users/AndreasReitberger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasReitberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasReitberger/subscriptions","organizations_url":"https://api.github.com/users/AndreasReitberger/orgs","repos_url":"https://api.github.com/users/AndreasReitberger/repos","events_url":"https://api.github.com/users/AndreasReitberger/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasReitberger/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T07:15:59Z","updated_at":"2018-11-14T07:15:59Z","author_association":"NONE","body":"Fixed it by my own.  The \"Build type\" of the App.xaml file needs to be set to \"ApplicationDefinition\".\r\nThen it works.\r\nSorry for bothering you."}}
{"actor":{"display_login":"AndreasReitberger"}}