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
1
vote
0 answers

How to use GitVersion /UpdateAssemblyInfo for changes that haven't been committed yet?

perhaps there's something that I don't understand when it comes to working with GitVersion. Suppose I am on my main branch, and the latest commit has been tagged, with, say, 1.1.2. Now that my build works and that I am ready to release 1.1.3, I…
Razique
  • 131
  • 4
1
vote
0 answers

How do I embed Assembly Info into a file created by a C# program

I'm working on a program, in C#, that uses both a System.IO.BinaryWriter and a System.IO.Streamwriter to create two datafiles. I know how to retrieve/set the Assembly of my C# program. What I'd like to do, is embed my C# program's assembly…
1
vote
1 answer

AssemblyInfo in dotnet core/csproj with Property from Target

I'm trying to setup a csproj with assembly info automatically generated from compilation datetime and mercurial revision. 2
1
vote
1 answer

Configuring log4net without code in Rider for dotnet 2.1 project

I'm working on a pet .netcore2.1 project using Rider IDE. I'm currently trying to add log4net support for the project, and trying to do it the "proper way" (separate config file, automatically configure log4net without having to write code for…
1
vote
1 answer

Visual Studio always restoring because Directry.Build.props

I created a Directory.Build.props file, with VersionSuffix contain the current Hour and Minutes:
baruchiro
  • 5,088
  • 5
  • 44
  • 66
1
vote
1 answer

.Net Core msbuild build.proj equivilent of AssemblyInfo

I'm upgrading a project from AspNet Mvc 4 to AspNet Core Mvc 2.2; I am attempting to migrate the msbuild build.proj file to set the version and other attributes for the projects that create dll's; everything is working except the…
Failwyn
  • 767
  • 8
  • 22
1
vote
2 answers

How to programatically update AssemblyInfo.cs as a Pre-Build event (Visual Studio / msbuild)

I'm looking to define one location in my project to store a version string. The behavior that I'm looking for is that I store the version in a text file (version.txt) in my project directory, and then my pre-build event updates the content in…
qgoehrig
  • 195
  • 1
  • 2
  • 15
1
vote
3 answers

How to check all projects in solution for some criteria?

I need to let all projects in solution contain some additional build actions, e.g. StyleCop validation, autogenaration of AssemblyInfo's, etc. My idea is to make some kind of solution-wide prebuild event that will check all project files for…
Andriy K
  • 3,302
  • 31
  • 42
1
vote
1 answer

Making a C++/MFC application to extract AssemblyInfo from other applications?

I am trying to make a C++/MFC application (so called "Update Application") that can extract AssemblyVersion information from other applications written in C#/.NET 3.5. So I can update my C# program according to the version information I can get. I…
DynamicScope
  • 695
  • 9
  • 26
1
vote
1 answer

Modify the .exe's AssemblyInfo using PowerShell in TFS 2018 build

I want to use PowerShell to update my application's Assembly info like Product Name, File Description in TFS vNext build. I want to use build variables in build definition and pass it to the script. I have done the same to update version number with…
Anjali Iyengar
  • 320
  • 4
  • 16
1
vote
0 answers

How to get AssemblyInformationalVersion from file in Python 3

I am getting an Invalid AssemblyInformationalVersion error when trying to run nuget spec -Force -a 'path/to/dll.dll' in a python script. Is it possible to manipulate this value from within python?
Will Parzybok
  • 2,764
  • 4
  • 12
  • 18
1
vote
2 answers

File version in AssemblyInfo.cs not reflected in Windows Explorer File Properties?

I've got a VS2010 project that contains an AssemblyInfo.cs file. This has: [assembly: AssemblyFileVersion("10.0.1.0")] When I run my app and ask for the file version from the executing assembly it picks up 10.0.1 no problem. However, if I…
Joel Brown
  • 14,123
  • 4
  • 52
  • 64
1
vote
1 answer

Same Assembly Version in multiple mixed .NET projects (same solution)

I've got a problem with setting up one "Shared" assembly info in my solution. I need one place to change assembly version for every project in the solution (currently > 25 project). The problem is, that the solution contains C# projects as well as…
user4514856
1
vote
1 answer

How to conditionally compile `InternalsVisibleTo(...)` assembly info?

Using .Net Core 2.1, my AssemblyInfo.cs looks like this: using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("RazorWare.Core.Media")] [assembly: InternalsVisibleTo("RazorWare.Core.Business")] #if DEBUG [assembly:…
IAbstract
  • 19,551
  • 15
  • 98
  • 146
1
vote
0 answers

Special handling of AssemblyInfo.cs in git

Is there a way I can prevent git from auto-merging AssemblyInfo.cs (or disbling its behavior of detecting "oh, it's the same change, I can skip it")? If I increased the version the same way in two branches, and then merging both, I would like to…
Andreas Duering
  • 1,560
  • 2
  • 12
  • 21