Questions tagged [assembly-attributes]

9 questions
41
votes
5 answers

How to load a .NET assembly for reflection operations and subsequently unload it?

I'm writing a tool to report information about .NET applications deployed across environments and regions within my client's systems. I'd like to read the values of assembly attributes in these assemblies. This can be achieved using…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
9
votes
2 answers

How to share properties between multiple Visual Studio projects? (especially C# projects)

Keeping properties of multiple Visual Studio projects manually in sync is annoying. So, how can you share properties between multiple projects? Edit: I refer to properties like conditional compilation symbols, treatment of warnings and errors etc.,…
7
votes
1 answer

How to change assembly info in asp.net core?

I want to versioning my asp.net core app. I followed this link: http://www.matthiaseinig.de/2013/05/20/auto-generate-fileversion-for-all-projects-in-a-solution-with-t4/ , but I want to remove project assembly info, but I didn't find it. How to…
2
votes
2 answers

What are appropriate assembly attribute values for an open source (LGPL) project?

I have just started working on an open source project. The project is hosted on CodePlex and I work on it in my spare time. What would be appropriate values for the default assembly attributes (listed below)? [assembly:…
Michiel van Oosterhout
  • 22,839
  • 15
  • 90
  • 132
1
vote
1 answer

Setting AssemblyAttribute in .csproj file with enum value

I want to set an AssemblyAttribute with an enum parameter in the .csproj file. How do I achieve that? I am aware that I can set it the following way within a file: [assembly:…
Ildrial
  • 344
  • 3
  • 10
1
vote
0 answers

C# - How to use custom assembly attribute in *.nuspec file?

I have created following class which is a definition of custom attribute: using System; namespace Gucu112.ConfigurationHelper.Properties { [AttributeUsage(AttributeTargets.Assembly)] public sealed class AssemblyReleaseNotesAttribute :…
Gucu112
  • 877
  • 10
  • 12
1
vote
1 answer

How to set AssemblyTitleAttribute in NETCore1.1

In .NETCore1.1, next code typeof(Program).GetTypeInfo().Assembly.GetCustomAttributes().ToList() returns list of custom assembly attributes and one of them is AssemblyTitleAttribute. By default this attribute value returns project name, but how can…
Mr. Pumpkin
  • 6,212
  • 6
  • 44
  • 60
1
vote
3 answers

Changing a project's files based on solution in Visual Studio 2008

In one C# solution I have several projects that share a CommonAssemblyInfo.cs file, so that certain assembly attributes are shared across all projects. This works fine so long as I only have one CommonAssemblyInfo.cs file. However I have several…
0
votes
1 answer

Assembly Attributes with Dynamically Loaded Assembly

I'm using a 3rd party library which requires a static method to be invoked before it is used - it sets the serial key to validate the license for the software. I'm needing to use this library in multiple projects and I want to shield those projects…
James Kolpack
  • 9,331
  • 2
  • 44
  • 59