That seems to be a read-only property in .NET. I'll keep looking and
maybe someone else might have an idea...
Marco
--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com
"Marco Shaw [MVP]" <marco.shaw@NO_SPAMgmail.com> rakstīja ziņojumā
"news:ul026Cvr...@TK2MSFTNGP05.phx.gbl"...
Are you trying to *change* the file version on dlls or executables, or
set it on files that don't have a version already in hopes of tracking
something that way?
--
Joel "Jaykul" Bennett
The Win32 information (which is also applicable to .NET assemblies and
independent of the .NET version) can be changed by editing the appropriate
resource but the same caveat applies. If the file is signed, changing the
resource will break the signature.
And finally one last bit of useless trivia... even though the version of a
.NET assembly is added using the AssemblyVersionAttribute and
FileVersionAttribute, many developers are surprised to learn that these
attributes don't actually exist in the compiled assemblies. They are special
and are converted to the appropriate metadata by the compiler.
Josh
"Marco Shaw [MVP]" <marco.shaw@NO_SPAMgmail.com> wrote in message
news:ul026Cvr...@TK2MSFTNGP05.phx.gbl...
Regards,
David