wpf浏览器应用程序发布后获取当前应用地址
AppDomain.CurrentDomain.ApplicationIdentity.CodeBase 获取作为URL的部署清单的位置
Eg:发布前地址为E:\PROJECTWORK\LandaV8\bin\Debug\xxxxx.xbap(xxxxx.xbap为部署站点下的文件),部署后获取的地址为http://192.168.1.1/xxxxx.xbap
AppDomain.CurrentDomain.ApplicationIdentity.FullName 获取应用程序的全名
Eg:发布前获取的地址为E:/PROJECTWORK/LandaV8/TestWPFHostAPP/bin/Debug/xxxxx.xbap#xxxxx.xbap, Version=1.0.0.73, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil/xxxxx.exe, Version=1.0.0.73, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32;部署后获取的地址为http://192.168.1.1/xxxxx.xbap#xxxxx.xbap, Version=1.0.0.73, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil/xxxxx.exe, Version=1.0.0.73, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32