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
Getting application GUID in a .NET Core 6 application
when I programmed in .NET Framework, I used to get the GUID of the Winforms application this way:
static public string AssemblyGuid
{
get
{
object[] attributes =…

jstuardo
- 3,901
- 14
- 61
- 136
0
votes
1 answer
Azure Pipeline 1 solution with multiple projects and separate versions
I have an azure pipeline set up to build a .net framework class library. The current setup is 1 Solution and 1 Project within the solution and this all works fine. I use the Assembly Info Reader extension to read AssemblyInfo.cs which is used for…

Conor
- 736
- 1
- 13
- 33
0
votes
1 answer
Azure Pipelines populate NuGet package fields
I have a Class Library project using .net Framework 4.6.1 and I am building a NuGet package using Azure Pipelines. I have got most of the fields in the NuGet package properties populated however I'm struggling with a few.
I'm using an extension to…

Conor
- 736
- 1
- 13
- 33
0
votes
0 answers
Share common AssemblyInfo version among different codebases C#, VB, C++
I have 3 different VisualStudio solution, one is in C++, another one is in C# and the last one its VisuaBasic.
I want to share the AssemblyVersion property so that we can have a single point where to change the version number among the different…

edenroz
- 13
- 6
0
votes
0 answers
.AssemblyInfo.cs file creates a duplicate attribute error
I'm writing a client in c# using VS 2019, which includes a GUI in WPF (this is my first project in WPF). When I ran the project I got errors which say that there are multiple declarations for several attributes -
Duplicate 'attribute' attribute
I…

Ophir Botzer
- 1
- 3
0
votes
0 answers
How to deal with assembly and DLLs in DLL hell?
I am working on two DLLs, being called by an application. Everything is programmed in C#.
Recently I've tried to work with pre-build events, in order to add some versioning information to the DLLs. I have removed all that work: in GIT, all files…

Dominique
- 16,450
- 15
- 56
- 112
0
votes
0 answers
Update assembly version with MSBUILD command
I'm running the following command
msbuild Project.csproj /p:Configuration="Release" /p:VersionAssembly=0.0.0.7 /p:Version=0.0.0.7 /p:VersionSuffix=0.0.0.7 /p:BuildProjectReferences=false
To update the File version is there a way to do it without the…

UserEsp
- 415
- 1
- 7
- 29
0
votes
1 answer
Log4Net configuration loading in AssemblyInfo
I'm facing a strange problem.
In a solution, I have a shared assembly info file (solution file) and linked it beside the regular AssemblyInfo.cs into my projects. Properties are set to build.
Attributes that are shared between all project are in the…

martinoss
- 5,268
- 2
- 45
- 53
0
votes
1 answer
Update AssemblyInfo const variable
I have a single file where I specify my version:
I try to update it with the 'Update AssemblyInfo' task on build pipeline:
when executing the task do logs the update:
Searching for…

Thierry Brémard
- 625
- 1
- 5
- 14
0
votes
1 answer
Using a class library assembly that internally uses a link to a global assembly info file
I am struggling with the current scenario below. I'm using vs 2010 and C# with .NET 4:
I have a separate solution (call it solution A) that has 2 class library projects in it (call them B and C).
Project B has a link to a "GlobalAssemblyInfo.cs"…

CODES_ONLY
- 181
- 2
- 11
0
votes
1 answer
What is TempAssemblyInfo.cs?
My question is pretty basic, I understand what AssemblyInfo.cs is, but why is there a Temp version generates in the same Properties folder? What is it used for? Do people usually add it to their .gitignore?
user11910061
0
votes
0 answers
WinForms App Version Number - AssemblyInformation different from ControlPanel Information
I have a problem , I change the Version number in the Properties-Application-Assembly Information in Visual Studio.
But in Control Panel - Program and Features in the Version Column it shows all the time 1.0.0.
But when I right-Click on the icon…

LopDev
- 823
- 10
- 26
0
votes
1 answer
Could not load file or assembly "path" or one of its dependencies. The system cannot find the file specified
I have a service. I tried to install it using c#. Even though service file is present i got error message
Could not load file or assembly 'file:///C:\Sample\sample.exe' or one of its dependencies. The system cannot find the file specified.
i used…

Ijas
- 367
- 1
- 3
- 18
0
votes
0 answers
.NET Core publish as exe: How to put assembly infos into exe
My question is similar to this one (How to add copyright to published EXE (.Net Core)) which wasn't really answered.
I have a .NET core executable project.
I can put assembly information like AssemblyFileVersion into my .NET Core project and compile…

Dee J. Doena
- 1,631
- 3
- 16
- 26
0
votes
1 answer
Using of updated value in AssemblyInfo.cs
I'm trying to figure out, how to process and update value in AssemblyInfo.cs of C# WinForms desktop application.
For example, where and how to process
string currentYear = DateTime.Now.Year.ToString();
and update in AssemblyInfo.cs to always get…

lf80
- 455
- 3
- 10
- 22