Dodanie Assembly (Wersja,Autor,Producent)

0

Witam,
powoli zaczynam rozumieć działanie Visual C++ lecz z tym nie mogę sobie poradzić od kilku godzin, mianowicie:

using namespace System::Reflection;	
	
[assembly:AssemblyCopyright("Copyright (c) 2001, Fictitious Company Corporation")];
[assembly:AssemblyCompany("Fictitious Company Corporation")];
[assembly:AssemblyProduct("Reflection Example Class Library")];

Dodaje ten kod lecz Build(Debug) zwraca komunikat:

1>LINK : warning LNK4227: metadata operation warning (000403FD) : 'firma' : zastępowanie poprzedniego ustawienia
1>LINK : warning LNK4227: metadata operation warning (000403FD) : 'prawa autorskie' : zastępowanie poprzedniego ustawienia
1>LINK : warning LNK4227: metadata operation warning (000403FD) : 'nazwa produktu' : zastępowanie poprzedniego ustawienia

Czy może ktoś zna inny alternatywny sposób na dodanie tagów/szczegółów typu wersja programu, autor itd?

1

Te informacje powinieneś już mieć w pliku AssemblyInfo.cs i tutaj je nadpisujesz. To nie jest błąd, tylko ostrzeżenie.

0

Kurczę, mam ten plik w Source Files:

#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("Projekt2")];
[assembly:AssemblyDescriptionAttribute("")];
[assembly:AssemblyConfigurationAttribute("")];
[assembly:AssemblyCompanyAttribute("")];
[assembly:AssemblyProductAttribute("Projekt2")];
[assembly:AssemblyCopyrightAttribute("Copyright (c)  2013")];
[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)];

Debuguje a exe nadal nie ma żadnych z tych atrybutów.

Z tego co wyczytałem w wersji Express jest to nie możliwe.

odświeżam !

1 użytkowników online, w tym zalogowanych: 0, gości: 1