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.
Questions tagged [assemblyinfo]
206 questions
0
votes
1 answer
Override attribute from SharedAssemblyInfo in AssemblyInfo
In my solution there is SharedAssemblyInfo.cs that is integrated over a targets file (LinkedItems.targets).
In the SharedAssemblyInfo.cs there is a Version attribute set:
I have some projects that have to define their own version. But this not…

frugi
- 605
- 7
- 26
0
votes
2 answers
Add file description programmatically to c# compiler output file
This is my compiler function and it works very well. But the output file has no description, like Copyright, ProductVersion or FileDescription :
public static bool CompileFromSource(string source, string output, string icon = null, string[]…
user9411840
0
votes
0 answers
VS2017 v15.7.1 - Build | Publish creates different assembly to Build | Rebuild Solution
I built a ASP.NET Core 2.0 MVC WebApp using VS2017 v15.7.1.
I set the version number in the Project settings (package section) as 1.1.1.0
I selected Build | Configuration - Release
I did Build | Clean followed by Build | Rebuild Solution.
When I…

wpqs
- 657
- 1
- 7
- 18
0
votes
1 answer
How to add assembly reference to use Quartz in Asp.net Website?
I am working on a website in VS 12 and I need to schedule some task when the application starts for that I am using quartz 2.0.0 but I am getting the following error:
My website is hosted online.
Job scheduler class:
using System;
using…

Joe
- 3
- 6
0
votes
1 answer
check in assembly info in CI with tfs
how i can check in assembly info in tfs?
i am using tfs CI and i have one work space, when i try to check in pending :
2017-09-10T17:37:40.3410618Z No files checked in.
2017-09-10T17:37:40.8732772Z There are no pending changes matching the
…

Dr Sima
- 135
- 1
- 12
0
votes
1 answer
How to version/update AssemblyInfo.cs of assemblies shared by others that are deployed independent?
I've got a legacy solution with multiple project references.
Two of those projects are deployed independently, and both reference the other projects.
Currently the versioning is purely manual, but I'd like to automate the process (of updating the…

Martin R-L
- 4,039
- 3
- 28
- 28
0
votes
1 answer
AssemblyInfo Theme, Class Library (Android) Xamarin
I am currently working in a Class Library (Android) project.
This project is suppose to work with multiple other projects, therefore there is no way to know in advance which Theme each main project might have.
However, I intend to use…

Gustavo Baiocchi Costa
- 1,379
- 3
- 16
- 34
0
votes
1 answer
VB.Net WebSite Get Assembly Version
We have a very old legacy VB.Net ASPX WebSite, not Web App, and I am trying to implement simple versioning. Either auto increment or manual as it doesn't matter.
So far I have tried putting the AssemblyInfo.vb file in the root folder and in the…

griegs
- 22,624
- 33
- 128
- 205
0
votes
1 answer
Creating Nuget package from AssemblyInfo
In my .net project, having assemblyinfo.cs file contains version as "6.22.3.00151", when I create the package using NuGet (I am using nuget cli) the final package created with version "6.22.3.151" leading 2 0's are eliminated. How can I make a nuget…

Vimal Patel
- 119
- 1
- 1
- 4
0
votes
1 answer
NullReferenceException when trying to get version from assemblyinfo in UWP app
I get NullReferenceException when trying to get version from assemblyinfo in UWP app. Below is the code that I am using :
return typeof(AssemblyInfo).GetTypeInfo().Assembly.GetCustomAttribute().Version;

shagufta syed
- 441
- 6
- 23
0
votes
2 answers
Initialize the build.number with the version in the AssemblyInfo.cs
Question
How can I read the version from the AssemblyInfo.cs file and set it as %build.number% in TeamCity?
More Info
Basically I want to read the version (2.2.0) in this example:
// Setting ComVisible to false makes the types in this assembly not…

A-Sharabiani
- 17,750
- 17
- 113
- 128
0
votes
1 answer
Whys are Assemby Attributes like AssemblyVersion missing in xproj?
Looking at the latest RC2 xproj projects, the AssemblyInfo.cs file is often missing several assembly attributes such as:
AssemblyTitle
AssemblyDescription
AssemblyCopyright
AssemblyCulture
AssemblyVersion
AssemblyFileVersion
When creating a web…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
0
votes
1 answer
How to add ThemeInfo attribute into AssemblyInfo.cs with FAKE?
For my custom control I need to add the following Attribute to the AssemblyInfo.cs:
using System.Windows;
[assembly: ThemeInfo(ResourceDictionaryLocation.None,
ResourceDictionaryLocation.SourceAssembly
)]
Is it somehow possible with the…

KCT
- 287
- 1
- 10
0
votes
0 answers
Shared Assembly Info File breaks Unit Testing
I have a series of C# class projects with matching Unit Testing Projects.
Everything works fine until I introduce a SharedAssemblyInfo.cs file.
I added the file to the solution, then in each project I added a 'Link' to it and dropped it into the…

Jason H
- 4,996
- 6
- 27
- 49
0
votes
1 answer
AssemblyInfo.cs needs to change in SourceControl after build completes
I'm using TFSBuildExtensions to auto version my libraries.
I've got the build template modified so that it does that nicely. Although it doesn't actually update the AssemblyInfo.cs file.
Now I would like that AssemblyFileVersion attribute in the…

user1161137
- 1,067
- 1
- 11
- 31