Does the assembly attribute attribute have to vary for different target frameworks of the same .NET library?

I am developing a .NET library in C # that needs to address a wide range of target frameworks. I want to create a nuget package that will be correctly installed according to the target project settings.

To achieve this, I am using multiple .csproj files. Each of them refers to a specific target framework (for example, MyLibrary.net45.csproj will create binaries in bin/*/net45

, MyLibrary.netstandard1.2.csproj will create a result in bin/*/netstandard1.2

, etc.). Then I create a single nuget package with the outputs of the above projects.

At this point, different .csproj files reuse the same AssemblyInfo.cs file and thus share the common settings there.

I was wondering if it is correct for all different target frameworks to use the same value for the attribute [assembly: Guid("...")]

, or should each target struct blob need to be built with its own separate one?

+1


source to share





All Articles