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
5
votes
1 answer

Using GitVersion for AssemblyInfo.cs update

According to the documentation when dotnet gitversion is called with /updateassemblyinfo parameter it will recursively search for all AssemblyInfo.cs files in the git repo and update them. It will update the following assembly…
Sevenate
  • 6,221
  • 3
  • 49
  • 75
5
votes
1 answer

Regenerate missing AssemblyInfo.cs in VS 2005

I'm trying to build a small VS 2005 solution I've just checked out of source control, and I'm getting this easy to understand error: ...\AssemblyInfo.cs' could not be opened ('The system cannot find the file specified. ') (The file is fairly …
Andrew M
  • 9,149
  • 6
  • 44
  • 63
5
votes
2 answers

How to define multiple friend assemblies when generating AssemblyInfo from .csproj file?

I would like to define several friend assemblies. It is easy to do so when editing the AssemblyInfo file manually: [assembly:InternalsVisibleTo("Friend1a")] [assembly:InternalsVisibleTo("Friend1b")] or [assembly:InternalsVisibleTo("Friend2a"), …
C. Meyer
  • 51
  • 3
5
votes
5 answers

Current year in AssemblyInfo copyright

Is there a possibility to include the current year via DateTime.Now.Year in the AssemblyInfo.cs-file? I have tried: [assembly: AssemblyCopyright("Copyright " + DateTime.Now.Year)] But it seems the argument can only be a constant expression.
toni
  • 2,270
  • 3
  • 22
  • 27
4
votes
1 answer

Using ScriptManager to add javascript references to Site.Master

I have recently gotten html and assets from my company for their web standards. I have an existing asp.net web application I've created using the default template in Visual Studio 2015. I'm awkwardly working through to see if I can apply these…
4
votes
2 answers

NuGet package version and NuGet Id

I have one Project.sln in my GitRepo. And I need to build 4 NuGet packages with different configurations (local, qa, sandbox and production). I'm using TeamCity with Octopus Deploy. In TeamCity my Build Configuration has the following Build…
coon
  • 41
  • 1
  • 4
4
votes
4 answers

AssemblyInfo build number not updated

I have the following code in AssemblyInfo.cs: [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyFileVersion("1.0.0.0")] I'm trying to make sure the Build Number changes each time I build/rebuild my project. But, in that case it doesn't. Only…
4
votes
2 answers

VB.Net - What is the difference between AssemblyFileVersion & AssemblyFileVersionAttribute and AssemblyVersion & AssemblyVersionAttribute

I've inherited a VB.Net codebase which was VB 2005 and upgraded to VB 2008 consisting of around 100 projects I'm trying to re-version all of the components but have discovered some of the AssemblyInfo.vb files have an AssemblyFileVersion entry and…
4
votes
4 answers

Help with Assembly Information File in C#

What is the Assembly Information File for in C# and how do I use it?
Arlen Beiler
  • 15,336
  • 34
  • 92
  • 135
4
votes
1 answer

What is the required format for assembly versions?

The Version class in .NET represents version numbers as consisting of two to four components. AssemblyInfo files specify the following format for the AssemblyVersion and AssemblyFileVersion fileds: // Version information for an assembly consists of…
Eric
  • 5,842
  • 7
  • 42
  • 71
4
votes
1 answer

VS.net set version for multiple projects in one solution

I am trying to update a lot of different projects in a solution to have a new version number. Is there a simple way to synchronize the version number across all projects fileversion and clickonce options? Answer Finally solved the problem by writing…
CodingBarfield
  • 3,392
  • 2
  • 27
  • 54
4
votes
1 answer

client side localization

I would like to do client side localization (i.e embedding the javascript and resource files). Everything was working fine until we had both the js file and the resource file in the same project("XXX.Web"). As a part of a requirement, I had to…
4
votes
4 answers

What's the Best Practice for incorporate Semantic Versioning using TeamCity

TeamCity is a great CI tool and we also use Semantic Versioning to manage our DLL version for a long time, now we are reaching a idea to integrate TeamCity and Semantic Versioning together, meanwhile we do some research on this topic, Let's say the…
4
votes
5 answers

Is it possible to change the version format of a C# project?

Instead of the major.minor.build.revision format, I'd like to use date and time for version numbers. Something more like day.month.year.time. Is there a way to change the format of the AssemblyVersion attribute in AssemblyInfo.cs?
Lee Crabtree
  • 1,196
  • 2
  • 12
  • 30
3
votes
5 answers

Getting SVN working copy revision number into VersionInfo.cs

All our projects in our SLN shares a VersionInfo.cs which holds the project version number [assembly: AssemblyVersion("0.0.1.0")] [assembly: AssemblyFileVersion("0.0.1.0")] I want to staticly define the 3 first parts of the version number and the…
Anders
  • 17,306
  • 10
  • 76
  • 144