Get project name of WPF project [duplicate]
问题 This question already has answers here : Application.ProductName equivalent in WPF? (7 answers) Closed 5 years ago . I'm writing my first WPF application, and I'm trying to get the name of the project so I can output it. However, using Assembly.GetEntryAssembly().GetName() or Assembly.GetExecutingAssembly().GetName() gets me the name as well as the version number(i.e., DataPusher, Version=2.0.466.16967). Is there a way to get ONLY the assembly name? Thanks. 回答1: string name = Assembly