Các AssemblyInfo.cs mặc định trông như thế này:Điều gì là cần thiết để có trong AssemblyInfo.cs?
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 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: AssemblyTitle("Foobar")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Foobar")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e8cd5d7d-5fba-4fe1-a753-f0cc6e052bf2")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
gì về tất cả điều này là thực sự cần thiết? Ví dụ tôi có thể loại bỏ các hướng dẫn và ComVisible nếu tôi không cần điều đó, hoặc AssemblyTrademark vì nó chỉ là trống rỗng anyways?
Điều gì đã xảy ra khi bạn thử? –
Vâng, nó không sụp đổ, nhưng đã tự hỏi nếu có bất kỳ tác động lớn hơn tôi không biết về, như lắp ráp không sử dụng được trong các tình huống nhất định hoặc bất cứ điều gì :) – Svish
Vấn đề duy nhất tôi có thể nghĩ là đặt nhiều bản sao của một hội đồng trong GAC. Bạn có thể đặt nhiều phiên bản của một hội đồng ở đó. Bạn có thể có nhiều bản sao của cùng một phiên bản nếu mỗi bản sao có một nền văn hóa khác nhau. Nhưng nếu thông tin phiên bản bị thiếu, tại sao đó có thể là một vấn đề. –