Hi all,
I have following line in AssemblyInfo.cpp file:
[assembly:AssemblyVersionAttribute("4.0.4000.29")];
When I build managed application, FileVersion column in Windows explorer is
empty.
When I build C# dll, it is displayed correctly.
How can I display Assembly attributes in Windows explorer?
BR
Zdenko 7 2586
You'll have to add a FileVersionRessource manually.
Right click in your project node and select add->Ressource, choose
Version and press ok.
There will appear a file version ressource node in the ressource windows
tree view
where you can change the file version.
In C# the assembly version automatically equals the file version.
It seems to be a bug that you can transver 2 different file versions along
with 1 managed c++ assembly.
Greetings, Sebastian Dau.
"Zdenko" <s.zdenko-at-Softhome.net> wrote in message
news:eK**************@tk2msftngp13.phx.gbl... Hi all,
I have following line in AssemblyInfo.cpp file:
[assembly:AssemblyVersionAttribute("4.0.4000.29")];
When I build managed application, FileVersion column in Windows explorer is empty. When I build C# dll, it is displayed correctly.
How can I display Assembly attributes in Windows explorer?
BR Zdenko
Thanks,
I was thinking that there is ".NET" way (using AssemblyInfo.cpp).
What is the purpose of AssemblyFileAttributes if it has to be specified in
resource?
Zdenko
"Sebastian Dau" <se***********@gmx.de> wrote in message
news:42*********************@read-nat.news.de.uu.net... You'll have to add a FileVersionRessource manually. Right click in your project node and select add->Ressource, choose Version and press ok.
There will appear a file version ressource node in the ressource windows tree view where you can change the file version.
In C# the assembly version automatically equals the file version. It seems to be a bug that you can transver 2 different file versions along with 1 managed c++ assembly.
Greetings, Sebastian Dau.
"Zdenko" <s.zdenko-at-Softhome.net> wrote in message news:eK**************@tk2msftngp13.phx.gbl... Hi all,
I have following line in AssemblyInfo.cpp file:
[assembly:AssemblyVersionAttribute("4.0.4000.29")];
When I build managed application, FileVersion column in Windows explorer is empty. When I build C# dll, it is displayed correctly.
How can I display Assembly attributes in Windows explorer?
BR Zdenko
Zdenko, Thanks, I was thinking that there is ".NET" way (using AssemblyInfo.cpp).
What is the purpose of AssemblyFileAttributes if it has to be specified in resource?
Actually, the assembly file version is not the version of the file, but of
the assembly. It's just that, for convinience, C# and VB.NET will generate a
version resource with the same number for the executable (C++ currently does
not). But even on those, you can change the version number on the file to
make it different from the assembly file version via the
AssemblyInformationVersionAttribute (I think that's the name)
--
Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Could you explain how to carry different file and assembly versions
in c# assemblies? We are very interested in this since we use this "feature"
for our mananged c++ assemblies.
Could you give me a more detailed advice Tomas?
Thanks in advance! Sebastian Dau
"Tomas Restrepo (MVP)" <to****@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Zdenko,
Thanks, I was thinking that there is ".NET" way (using AssemblyInfo.cpp).
What is the purpose of AssemblyFileAttributes if it has to be specified in resource?
Actually, the assembly file version is not the version of the file, but of the assembly. It's just that, for convinience, C# and VB.NET will generate a version resource with the same number for the executable (C++ currently does not). But even on those, you can change the version number on the file to make it different from the assembly file version via the AssemblyInformationVersionAttribute (I think that's the name)
-- Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Sebastian, Could you explain how to carry different file and assembly versions in c# assemblies?
For C# assemblies, it is easy. The following sets the assembly version to
1.1.0.0 and the file version to 1.1.0.3222:
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyInformationalVersion("1.1.0.3222")]
This is actually very similar to what the .NET framework assemblies do
(notice that all have a different assembly and file versions). Keep in mind,
though, that the file version is *not* taken into account by the .NET
runtime for component versioning.
We are very interested in this since we use this "feature" for our mananged c++ assemblies.
Well, for that just use [AssemblyVersion] to set the assembly version and a
FIleVersion resource for the rest.
--
Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Hello Tomas,
thanks for your response it appears to be exactly what I was looking for.
The man C++ way was known but non of us was aware of the
AssemblyInformationalVersion.
Thanks in advance, Sebastian Dau
"Tomas Restrepo (MVP)" <to****@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Sebastian,
Could you explain how to carry different file and assembly versions in c# assemblies?
For C# assemblies, it is easy. The following sets the assembly version to 1.1.0.0 and the file version to 1.1.0.3222:
[assembly: AssemblyVersion("1.1.0.0")] [assembly: AssemblyInformationalVersion("1.1.0.3222")]
This is actually very similar to what the .NET framework assemblies do (notice that all have a different assembly and file versions). Keep in mind, though, that the file version is *not* taken into account by the .NET runtime for component versioning.
We are very interested in this since we use this "feature" for our mananged c++ assemblies.
Well, for that just use [AssemblyVersion] to set the assembly version and a FIleVersion resource for the rest.
-- Tomas Restrepo to****@mvps.org http://www.winterdom.com/
Tomas,
in addition I'd like to let you know that the file version for c# assemblies
is not set through the AssemblyInformationalVersionAttribute but with the
AssemblyFileVersionAttribute.
Anyway, you did guide me into the right direction.
Thanks again! Sebastian Dau
"Tomas Restrepo (MVP)" <to****@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Sebastian,
Could you explain how to carry different file and assembly versions in c# assemblies?
For C# assemblies, it is easy. The following sets the assembly version to 1.1.0.0 and the file version to 1.1.0.3222:
[assembly: AssemblyVersion("1.1.0.0")] [assembly: AssemblyInformationalVersion("1.1.0.3222")]
This is actually very similar to what the .NET framework assemblies do (notice that all have a different assembly and file versions). Keep in mind, though, that the file version is *not* taken into account by the .NET runtime for component versioning.
We are very interested in this since we use this "feature" for our mananged c++ assemblies.
Well, for that just use [AssemblyVersion] to set the assembly version and a FIleVersion resource for the rest.
-- Tomas Restrepo to****@mvps.org http://www.winterdom.com/
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Saso Zagoranski |
last post by:
Hi!
I would like to know whether there is a component included in .net fw, which
resembles
Windows explorer table, where you have:
filename file size ...
Or has anyone else created...
|
by: Steve Randall |
last post by:
I am building a utility application that uses much of the same functionality as already exists in the Windows Explorer. It would therefore make sense to use (if possible) the Windows Explorer as the...
|
by: Phil Galey |
last post by:
I created an About box and am able to get all the assembly information from the program to show up in the About box except the Version.
I created the About box as a separate Windows application,...
|
by: Eddie |
last post by:
I tried a few more thing.
I found that I can access the AssemblyInfo.cpp like follows.(This is
from the VS help system.)
Type^ clsType = Form1::typeid;
Assembly^ assy = clsType->Assembly;
...
|
by: Viken Karaguesian |
last post by:
Hello all,
On occasion I want to open hyperlinks (images, etc.) in a new window. In the
past, I've used target="_blank" to open the link in a new window. However,
using the "target" attribute...
|
by: Ryan |
last post by:
I have 2 forms, Form1.vb and Form2.vb.
In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the
option to open Form2.vb in the main explorer window where usually I
have the...
|
by: =?Utf-8?B?U2FuZHkgUw==?= |
last post by:
Please help!!! My Windows Explorer hangs up and I cant seem to fix this.
When I try to turn on my external hard drive or begin to copy to this, my pc
definitely does NOT like it. It also (at...
|
by: shinichi81 |
last post by:
Could anyone help me?
After updating icon for a drive, for example C drive by specifying icon file at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultIcon,...
|
by: Tim Kelley |
last post by:
Is there a way (command line switch) to open Windows Explorer and set the
view to Thumbnails?
Thanks,
Tim
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |