2012-08-30 72 views
2

在visual studio的屬性窗口中,dll有一個給定的版本。在OS文件系統中給出另一個版本號。有沒有辦法在文件系統中看到在Visual Studio中顯示的相同版本或者其他方式。因爲用緩存預覽安裝生活變得非常困難!!!對於視覺click hereAzure dll版本調試難度

回答

1

是的,這是因爲文件系統顯示Assembly File Version和Visual Studio顯示你的Assembly Version。看到這個問題,有關差異的詳細信息:What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?

如果打開組件與DotPeek例如,你會看到,這兩個屬性的定義:

[assembly: CLSCompliant(true)] 
[assembly: ComVisible(false)] 
[assembly: AssemblyProduct("Windows Azure SDK")] 
[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.InternalAccessor, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: AllowPartiallyTrustedCallers] 
[assembly: SecurityTransparent] 
[assembly: NeutralResourcesLanguage("en-US")] 
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] 
[assembly: CompilationRelaxations(8)] 
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] 
[assembly: Extension] 
[assembly: InternalsVisibleTo("StorageClientConvenienceTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.CloudDrive, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: AssemblyCompany("Microsoft Corporation")] 
---> HERE: [assembly: AssemblyFileVersion("6.0.6002.18488")] 
[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.StorageClient.Internal, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation. All rights reserved.")] 
[assembly: InternalsVisibleTo("StorageClientProtocolTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: InternalsVisibleTo("StorageClientProtocolBillingTests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Diagnostics, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Diagnostics.Internal, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] 
---> HERE: [assembly: AssemblyVersion("1.7.0.0")] 
0

要添加到上述所說的,如果程序集是標準程序集或者以標準方式使用AssemblyVersion和AssemblyFileVersion的人,如果兩者的主版本和次版本匹配,則您正在查看相同的程序集。例如,如果您在瀏覽器中顯示AssemblyFileVersion爲1.2.34.45,而在屬性窗口中顯示爲AssemblyVersion,那麼它可能是同一個文件。