assemblyinfo

How to update the Value in Assemblyinfo.cs dynamically

百般思念 提交于 2020-01-10 19:38:25
问题 I have writen a program which gets the value from SVN repository . Now I want to update the AssemblyFileversion with that value. As I am not able to write any code inside Assemblyinfo.cs , how will I update the value of AssemblyFileVersion. I want to achieve something like this .......................... // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can

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

此生再无相见时 提交于 2020-01-03 15:55:10
问题 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 some have an AssemblyFileVersionAttribute entry. Also, some have an AssemblyVersion entry and some have an AssemblyVersionAttribute entry. What is the difference between with and without Attribute ? Which ones should I be using? 回答1: There is no

How to check all projects in solution for some criteria?

你说的曾经没有我的故事 提交于 2019-12-29 09:15:53
问题 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 containing nodes that match specific xPath. It's not a hard part, it can be solved either with custom build task, or with some third-party Xml handling task. I didn't investigate it deeply yet, but it definitely won't make a problem worth mentioning here.

How to check all projects in solution for some criteria?

社会主义新天地 提交于 2019-12-29 09:15:18
问题 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 containing nodes that match specific xPath. It's not a hard part, it can be solved either with custom build task, or with some third-party Xml handling task. I didn't investigate it deeply yet, but it definitely won't make a problem worth mentioning here.

Version information missing from .NET assembly (Compact Framework 3.5/VS2008)

﹥>﹥吖頭↗ 提交于 2019-12-23 17:53:10
问题 I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored. I have done this many times in other projects and it works without problem, but for some reason I cannot get the AssemblyTitle / AssemblyProduct / AssemblyVersion attributes etc to show up (I am trying to view them using Windows Explorer, I am able to see these properties

.NET Core publish as exe: How to put assembly infos into exe

[亡魂溺海] 提交于 2019-12-23 04:48:30
问题 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 it, it will produce a DLL and Windows Explorer will show this info in the details tab of the file properties. When I publish as native x64 EXE, I'll get an EXE of the same name and the original DLL. But only the DLL will contain the assembly info

Setting AssemblyFileVersion with MSBuild-call?

一曲冷凌霜 提交于 2019-12-22 05:26:11
问题 We have a batch-based buildprocess and we are using MSBuild only for compiling our project-files from visual studio. We also have integrated wix into our build-process. To set the version of our software we specify in the main-build-script some environment variables, that we use during the build-process. My problem is, that i have to set the FileVersion of the Assembly (AssemblyFileVersion) in my assembly-informations. Is there a way to give the MSBuild-call a property with the version to set

Where to specify version number in ASP.NET Web Site

喜夏-厌秋 提交于 2019-12-21 12:22:41
问题 So I have an ASP.NET 'Web Site' (as opposed to a Web Application) which has no AssemblyInfo.cs file or Bin folder or anything like that. I want to have a way to specify an Assembly version number (e.g. 7.0.2.0). In a Web Application you would do this in an AssemblyInfo.cs file. I've tried adding a Properties folder with an AssemblyInfo.cs file but I don't think its being picked up - because when I call Assembly.GetExecutingAssembly().GetName().Version.ToString() I get 0.0.0.0 So: What do I

Can I automatically increment the file build version when using Visual Studio?

跟風遠走 提交于 2019-12-16 20:17:45
问题 I was just wondering how I could automatically increment the build (and version?) of my files using Visual Studio (2005). If I look up the properties of say C:\Windows\notepad.exe , the Version tab gives "File version: 5.1.2600.2180". I would like to get these cool numbers in the version of my dll's too, not version 1.0.0.0, which let's face it is a bit dull. I tried a few things, but it doesn't seem to be out-of-box functionality, or maybe I'm just looking in the wrong place (as usual). I

Can I automatically increment the file build version when using Visual Studio?

人盡茶涼 提交于 2019-12-16 20:16:50
问题 I was just wondering how I could automatically increment the build (and version?) of my files using Visual Studio (2005). If I look up the properties of say C:\Windows\notepad.exe , the Version tab gives "File version: 5.1.2600.2180". I would like to get these cool numbers in the version of my dll's too, not version 1.0.0.0, which let's face it is a bit dull. I tried a few things, but it doesn't seem to be out-of-box functionality, or maybe I'm just looking in the wrong place (as usual). I