Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9166463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:09:36+00:00 2026-06-17T15:09:36+00:00

We update our WPF app multiple times a week, this is a pain point

  • 0

We update our WPF app multiple times a week, this is a pain point as Customers are repeatedly asked to let the exe through their firewall.

To get around this, I will try taking most of the code (including xaml) out of the exe, so the exe never changes.

The below method seems to work, is there any reason why I should not do it this way? e.g. is it ok to have multiple Application objects?

Project: TestWpfSeperateCodeFromExe

namespace TestWpfSeperateCodeFromExe
{
    public class App
    {

        // Entry point method
        [STAThread]
        public static void Main(string[] args)
        {
                AppView.Main(args);
        }
    }
}

Project: View

namespace View
{
    public class AppView : Application
    {
        // Entry point method
        [STAThread]
        public static void Main(string[] args)
        {
            var app = new AppView();

            app.Run();
        }


        public AppView()
        {
            new MainWindow().Show();
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:09:38+00:00Added an answer on June 17, 2026 at 3:09 pm

    using another application-object will most likely break many things as you have no direct control over the process – you should avoid that and use simple function/method-calls instead, these work flawlessly and thats what DLLs are for.
    In fact, i actually think this wont be possible in the way you imagined it.

    Using DLLs like everbody does has loads of advantages, you can move 99% of your code into the DLL and make the primary entry-point (the EXE-file) absolutely static, theres no need to fiddle around with the application-object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After update our iphone app can not access the keychain. The distribution certificate has
I have to use Sync Framework 2.0 in our WPF app that will contain
Our WPF DataGrid does not update its groups when we edit items. We group
I am about to update our SVN repository, and I need to run this
Let me set up my LOB scenario. I am re-writing our core business app.
Trying to update our app for iOS6 and iPhone 5, we (for now) still
I am new to LINQ and have been asked to update our existing legacy
We are trying to update our app and server to handle the upcoming Facebook
I'm making an update to our database and would like to update rows that
We are working on an update system for our software. The updater should run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.