Questions tagged [assemblyinfo]

AssemblyInfo.cs is a standard file in c# projects that contains metadata about the assembly like its title, copyright or version, declared using .net attributes.

206 questions
17
votes
4 answers

ProductName and CompanyName in C#

In VB.Net, I can retrieve my application's ProductName and CompanyName by using: My.Application.Info.ProductName My.Application.Info.CompanyName How do I do the same thing in C#?
Hand-E-Food
  • 12,368
  • 8
  • 45
  • 80
17
votes
7 answers

AssemblyInfo.cs subversion and TortoiseSVN

I'm using TortoiseSVN and Visual Studio 2008. Is there any way to update my project's assemblyinfo.cs with svn's version in every build? For example, 1.0.0.[svn's version] -> 1.0.0.12
Babak
  • 3,716
  • 6
  • 39
  • 56
16
votes
1 answer

Create global AssemblyInfo file for all projects

I've got a solution with multiple .NET 3.5 projects. Is there a way I can create a "global" AssemblyInfo.cs so that all project AssemblyInfo.cs files can reference from?
Petezah
  • 1,465
  • 4
  • 26
  • 30
15
votes
5 answers

Setting the default values of AssemblyInfo.cs

What is the best way to change the default values that AssemblyInfo.cs is created with, e.g. I don't want the Microsoft bits in AssemblyCompany and AssemblyCopyright [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyCopyright("Copyright ©…
SteveC
  • 15,808
  • 23
  • 102
  • 173
12
votes
3 answers

Where to find the assembly configuration information?

in AssemblyInfo.cs file I have following subection: #if DEBUG [assembly: AssemblyConfiguration("Debug")] #else [assembly: AssemblyConfiguration("Release")] #endif Where this information can be seen after assembly is built ? Since there is nothing…
jwaliszko
  • 16,942
  • 22
  • 92
  • 158
12
votes
2 answers

Why not check in AssemblyInfo.cs

I was watching a video on Git and the guy went out of his way to ignore the AssemblyInfo.cs. Why should I not check that file in? If I don't check the file in won't Visual Studio complain for the next user when he checks my code out?
mpenrow
  • 5,563
  • 9
  • 30
  • 36
11
votes
2 answers

How to share assembly info in ASP.NET Core?

I'm developing a REST Api using ASP.NET Core. I used to shared assembly info across my solution using a shared file containing common attributes such as AssemblyCompany, AssemblyCopyright, AssemblyTrademark and AssemblyVersion. In this way all of my…
Janni Kajbrink
  • 661
  • 2
  • 7
  • 21
11
votes
5 answers

building error of assemblyInfo.cd could not be found in visual studio 2012 on win 7

After searching the SO forum, I cannot find a working solution for my question. If you find one, I would really appreciate it. In Visual Studio 2012, I am building a C# project. I get the following error: Source file 'Properties\Assemblyinfo.cs'…
user3440244
  • 371
  • 1
  • 3
  • 15
11
votes
1 answer

Access Version from AssemblyInfo in MSBuild

I am trying to create/push nuget package through visual studio build process as explained here. Building package is easy:
NiTiN
  • 1,022
  • 1
  • 16
  • 25
10
votes
3 answers

Assembly Versioning using CruiseControl.net

I have setup CruiseControl.net for a bunch of my projects which are related. As a result a single project tag in CruiseControl has multiple SVN checkouts and then a bunch of msbuild tasks compile all the individual sln files. I need to update the…
Anj
10
votes
4 answers

Details of Assembly version

we will find Assembly version from Assembly.cs in every library. [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] My question is what is 1.0.0.0 meant by this? Thanks
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191
10
votes
3 answers

Are there good reasons for letting AssemblyVersion and AssemblyFileVersion match?

Gendarme has an AvoidAssemblyVersionMismatchRule with the following description: This rule checks that the [AssemblyVersion] matches the [AssemblyFileVersion] when both are present inside an assembly. Having different version numbers in both…
Christian
  • 9,914
  • 6
  • 45
  • 52
10
votes
3 answers

Get minor and major version from MSBUILD script

I'm using Msbuild to compile and generate .zip files and installers and I need the version number of my assembyInfo. I'm using this code.
Carlos Garces
  • 829
  • 1
  • 11
  • 24
10
votes
1 answer

Should I set AssemblyConfigurationAttribute?

Is it good practice to set AssemblyConfigurationAttribute in .Net assembly files?
John Simons
  • 4,288
  • 23
  • 41
8
votes
2 answers

Unit test an internal class in ASP.NET Core

I want to unit test a class with internal protection level in an ASP.NET Core project. I have added an AssemblyInfo.cs file to the properties of the project under test: using System.Reflection; using System.Runtime.CompilerServices; using…
BeniaminoBaggins
  • 11,202
  • 41
  • 152
  • 287
1
2
3
13 14