CurrentUserApplicationData与版本号不匹配 [英] CurrentUserApplicationData does not match Version numbers
问题描述
我更改了MyProject,Assembly Information,Assembly Version(Minor,Build and Revision)中的值,但返回的值为:
I have changed the values in MyProject, Assembly Information, Assembly Version (Minor, Build and Revision), but the values returned by:
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
与返回的值不匹配:
My.Application.Info.Version.Minor
My.Application.Info.Version.Build
My.Application.Info.Version.Revision
例如,在MyProject中,汇编信息,汇编版本 值
For example, in MyProject, Assembly Information, Assembly Version the values are
主要:1;次要:0;建立:4;修订版:2
Major: 1; Minor: 0; Build: 4; Revision: 2
所以返回值来自
My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData
应该是:C:\Users\UserName\AppData \Roaming\Company\Product\1.0.4.2
Should be: C:\Users\UserName\AppData\Roaming\Company\Product\1.0.4.2
但返回值是: C:\Users \UserName \ AppData \Roaming\Company\Product\1.0.3.1
But the return value is: C:\Users\UserName\AppData\Roaming\Company\Product\1.0.3.1
我确实发布了1.0版本.3.1,但为什么 CurrentUserApplicationData会返回路径中的旧版本号?
I did release a version 1.0.3.1, but why does CurrentUserApplicationData return the old version numbers in the path?
推荐答案
你检查哪个组件正在运行?听起来像你正在运行旧版本的程序集。无法指示您是从VS IDE内部运行还是在其外部运行,或者程序集是如何运行的。
Did you check which assembly is running? It sounds to me like you are running an older version of the assembly. No indication whether you are running from within the VS IDE or outside of it, or how the assembly is being run.
这篇关于CurrentUserApplicationData与版本号不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!