VS2010 installs executable data

I could not find the answers on the net ...

In Visual Studio 2010 C ++ Express, how to install executable data such as exe version, build, icon, etc.

Also, does the Visual Studio compiler add personal data to the executable, such as IP or MAC address?

+4
source share
2 answers

In Visual Studio 2010 C ++ Express, how do I install data like exe version, build

You did not say whether you are using managed or unmanaged C ++.

For unmanaged C ++ (e.g. MFC) you need to create a version.rc file . You can use the resource editor to help you with the .rc file.

For managed C ++ (i.e. the CLR (.NET) C ++ project), edit or create the AssemblyInfo.cpp file.

Here is an example of AssemblyInfo.cpp to get you started:

 #include "stdafx.h" using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using namespace System::Runtime::InteropServices; using namespace System::Security::Permissions; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly:AssemblyTitleAttribute("foo")]; [assembly:AssemblyDescriptionAttribute("")]; [assembly:AssemblyConfigurationAttribute("")]; [assembly:AssemblyCompanyAttribute("Microsoft")]; [assembly:AssemblyProductAttribute("foo")]; [assembly:AssemblyCopyrightAttribute("Copyright (c) Microsoft 2011")]; [assembly:AssemblyTrademarkAttribute("")]; [assembly:AssemblyCultureAttribute("")]; // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the value or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly:AssemblyVersionAttribute("1.0.*")]; [assembly:ComVisible(false)]; [assembly:CLSCompliantAttribute(true)]; [assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)]; 

Does the Visual Studio compiler add personal data to an executable file, such as an IP or MAC address?

No. Where did you hear that?

+3
source

Not an express route - this is a right-click on the project and the choice of properties. On the Application tab, the Assembly Information button allows you to specify the version number. The icon is also listed on the Application tab.

I have not used Express Edition, so I do not know if these features are present. If so, I expect them to be in one place.

0
source

All Articles