Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
68 views

AssemblyInfo.cs giving build errors

I am having unexpected build issues after cloning a project from GitHub. On other computers, they get a fresh clone of the repo like I did and it builds fine without any errors although it is ignoring ...
nikhil's user avatar
  • 1,696
0 votes
1 answer
15 views

GitHub for Desktop AssemblyInfo commit

In GitHub for Desktop, if any version change commit, eg: AssemblyInfo commit, how there's a small icon showing the version. see the screenshot Screenshot Image I update AssemblyInfo and committed, but ...
Rineesh Ch's user avatar
1 vote
0 answers
27 views

Settings PE Header fields / Assembly Info with .NET Publish [duplicate]

Our company has been able to successfully modify the PE Header of our compiled binaries using a third-party tool called Resource Hacker over the last few years. It has been working really well for all ...
sɐunıɔןɐqɐp's user avatar
0 votes
1 answer
478 views

How to access AssemblyInfo generated by GitVersion.MSBuild from aspx.net framework 4.8 project

I am working on a .net project and I am not able to understand how to access the assembly version from the AssemblyVersion.cs file that is being generated by the GitVersion.MSBuild task. I would like ...
Alexander Riccio's user avatar
2 votes
1 answer
1k views

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's user avatar
  • 4,452
0 votes
1 answer
388 views

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 ...
Conor's user avatar
  • 736
0 votes
1 answer
96 views

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 ...
Conor's user avatar
  • 736
0 votes
0 answers
150 views

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 ...
edenroz's user avatar
  • 23
1 vote
1 answer
146 views

Need to get TortoiseSVN revision programmatically

I want the TortoiseSVN revision number to be available for reading from my MVC C# app (Using MS Visual Studio 2019) I need to know how to get Tortoise to write the revision number of a repository to ...
Perry's user avatar
  • 56
0 votes
0 answers
515 views

.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 ...
Ophir Botzer's user avatar
1 vote
0 answers
171 views

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 ...
Dominique's user avatar
  • 17.3k
0 votes
1 answer
787 views

Azure Pipelines VisualStudioBuild task ignoring AssemblyInfo.cs

This is being built in an on-prem build agent running version 2.200.2. I've tried using VS 2017-2022 (15.0, 16.0, 17.0). When I build my code locally, it properly parses the AssemblyInfo.cs files and ...
Josh's user avatar
  • 31
3 votes
1 answer
183 views

How to handle fixed and variable [assembly] items if both seem to be present mandatory inside one file?

I'm setting up a Build Server, also known as a Continuous Integration Server, based on Jenkins, for building C# applications and DLLs. I have an AssemblyInfo.cs file, which contains two kinds of ...
Dominique's user avatar
  • 17.3k
2 votes
1 answer
2k views

How to add commit hash to details of an executable file using GitVersion

In a previous question, I asked how to add a commit hash to an executable file, built in Visual Studio. I'm almost there: I have decided to use GitVersion and this tool indeed modifies the ...
Dominique's user avatar
  • 17.3k
0 votes
0 answers
1k views

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 ...
UserEsp's user avatar
  • 426
1 vote
0 answers
170 views

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 ...
Razique's user avatar
  • 131
6 votes
2 answers
14k views

Is AssemblyInfo.cs file needed for .Net Core projects?

I have migrated project of WPF in Asp.Net framework into Asp.Net core. Existing .net projects have AssemblyInfo.cs inside properties folder.when creating new WPF project using "dotnet new wpf&...
Karthic G's user avatar
  • 1,172
1 vote
0 answers
66 views

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 ...
Annalisa Seubert's user avatar
5 votes
1 answer
3k views

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 ...
Sevenate's user avatar
  • 6,387
0 votes
1 answer
1k views

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. ...
martinoss's user avatar
  • 5,448
1 vote
1 answer
360 views

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 files... ========...
Thierry Brémard's user avatar
0 votes
1 answer
32 views

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 ....
user avatar
1 vote
1 answer
808 views

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. <!-- assembly info --> <PropertyGroup> <!-- versioning ...
Charles Lales's user avatar
1 vote
1 answer
548 views

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 ...
Dmitriy Korolevich's user avatar
0 votes
0 answers
263 views

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 ...
LopDev's user avatar
  • 841
0 votes
1 answer
211 views

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 ...
Ijas's user avatar
  • 393
1 vote
1 answer
251 views

Visual Studio always restoring because Directry.Build.props

I created a Directory.Build.props file, with VersionSuffix contain the current Hour and Minutes: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> ...
baruchiro's user avatar
  • 5,687
1 vote
1 answer
868 views

.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; ...
Failwyn's user avatar
  • 817
2 votes
1 answer
1k views

Programmatically access metadata from project file

In VS2019 / .NET Core 3.0, the project metadata is saved in the project file: <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.0</...
Joachim's user avatar
  • 23
1 vote
2 answers
5k views

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 ...
qgoehrig's user avatar
  • 195
1 vote
1 answer
459 views

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. ...
Anjali Iyengar's user avatar
2 votes
1 answer
3k views

How can you share Assembly Info between VS 2019-formatted projects?

In VS 2017, or more accurately, the old project format used in VS 2017, each project had a 'Properties' folder with an AssemblyInfo.cs file which held things like project version, copyright, etc. If ...
Mark A. Donohoe's user avatar
0 votes
0 answers
450 views

.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 ...
Dee J. Doena's user avatar
  • 1,813
0 votes
1 answer
338 views

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....
lf80's user avatar
  • 483
1 vote
0 answers
95 views

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's user avatar
2 votes
0 answers
1k views

.NET Core assemby auto-versioning works in assemblyInfo.cs but not in project file

I have read several posts about versioning assemblies in .NET Core. I have .NET Framework assemblies that use the auto-versioning where, in assemblyInfo.cs, I set the [assembly: AssemblyVersion("2.1.*"...
Zoe's user avatar
  • 866
3 votes
1 answer
201 views

Multiple project, single assemblies version manager

I have a solution that includes about 70 projects, each with its individual version (We are following the Version pattern). We would like to manage the assemblies versions in a single file, something ...
Marcomattia Mocellin's user avatar
0 votes
1 answer
152 views

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 ...
frugi's user avatar
  • 605
-1 votes
1 answer
2k views

Update AssemblyInfo.cs version from TFS (Team Foundation Server) when Checking in

As title says. Is there a way to get a value from TFS like a "Build Value" which I could implement in to visual studio Forms Application upon clicking "Check In" in "Team Explorer"? Found something ...
Edgaras's user avatar
  • 517
1 vote
1 answer
1k views

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, ...
user avatar
1 vote
1 answer
1k views

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....
IAbstract's user avatar
  • 19.8k
0 votes
2 answers
347 views

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, ...
user avatar
2 votes
1 answer
702 views

How do I apply the assembly:ThemeInfo attribute with an auto-generated AssemblyInfo?

After the migration to the new VS 2017 project system, the AssemblyInfo.cs file is now auto-generated by default. How can I add the assembly:ThemeInfo[] attribute to my project that is required by WPF ...
Lennart's user avatar
  • 10.2k
0 votes
0 answers
47 views

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 | ...
wpqs's user avatar
  • 667
2 votes
1 answer
542 views

Excel VSTO: Use ResourceDictionary which is in separate assembly

In my VSTO Application, I need to use the ResourceDictionary which is in separate assembly. I created a separate ResourceDictionary named generic.xaml in the VSTO application under themes folder ...
Jayakrishnan's user avatar
  • 4,284
1 vote
0 answers
1k views

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 ...
Andreas Duering's user avatar
3 votes
3 answers
4k views

nuget: package version is not being updated

I'm trying to pack a new version of a custom NuGet package and when I use the pack command I'm getting a .nupkg file which has a version number that doesn't match with the one that I've specified in ...
lerp90's user avatar
  • 531
0 votes
1 answer
532 views

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. ...
Joe's user avatar
  • 3
0 votes
1 answer
444 views

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....
Dr Sima's user avatar
  • 135
3 votes
1 answer
1k views

Git tag from AssemblyInfo version

TLDR; After installing and configuring gitversion, how do I "hook up" my git repo and .nuspec to use the generated version number by the injected AssemblyInfo ? It's my first time trying to properly ...
Mathieu VIALES's user avatar

1
2 3 4 5