In a ‘classic’ .NET project, you have an AssemblyInfo.cs file.
This file contains all kind of information about your assembly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("standardsample")] | |
[assembly: AssemblyDescription("")] | |
[assembly: AssemblyConfiguration("")] | |
[assembly: AssemblyCompany("Ordina")] | |
[assembly: AssemblyProduct("standardsample")] | |
[assembly: AssemblyCopyright("Copyright © Ordina 2017")] | |
[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("c68e1cff-6cdd-4a1b-bdde-e78542a2cb66")] | |
// 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")] |
After upgrading a classic .NET project to .NET Standard, I started to get errors about some of the properties inside the AssemblyInfo.cs file:
A .NET Standard project already has the AssemblyInfo information built-in. So after upgrading you end up with 2 AssemblyInfo specifications, leading to the errors above.
The solution is to remove the original AssemblyInfo.cs file in the Properties folder.
Remark: If you want to change the assembly information, you now have to use the Package tab inside your Project Properties.