Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
a4c27589
Commit
a4c27589
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Provide assembly version info from build.
parent
fea4b633
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ATxDiagnostics/ATxDiagnostics.csproj
+3
-0
3 additions, 0 deletions
ATxDiagnostics/ATxDiagnostics.csproj
ATxDiagnostics/Properties/AssemblyInfo.cs
+11
-3
11 additions, 3 deletions
ATxDiagnostics/Properties/AssemblyInfo.cs
with
14 additions
and
3 deletions
ATxDiagnostics/ATxDiagnostics.csproj
+
3
−
0
View file @
a4c27589
...
...
@@ -66,4 +66,7 @@
</ProjectReference>
</ItemGroup>
<Import
Project=
"$(MSBuildToolsPath)\Microsoft.CSharp.targets"
/>
<PropertyGroup>
<PreBuildEvent>
PowerShell -NoProfile -ExecutionPolicy RemoteSigned $(SolutionDir)Scripts\Prepare-Build.ps1 -SolutionDir $(SolutionDir) -ConfigurationName $(ConfigurationName)
</PreBuildEvent>
</PropertyGroup>
</Project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ATxDiagnostics/Properties/AssemblyInfo.cs
+
11
−
3
View file @
a4c27589
using
System.Reflection
;
using
System.Runtime.CompilerServices
;
using
System.Runtime.InteropServices
;
using
ATxCommon
;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
...
...
@@ -32,5 +32,13 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[
assembly
:
AssemblyVersion
(
"1.0.0.0"
)]
[
assembly
:
AssemblyFileVersion
(
"1.0.0.0"
)]
[
assembly
:
AssemblyVersion
(
BuildDetails
.
GitMajor
+
"."
+
BuildDetails
.
GitMinor
+
"."
+
BuildDetails
.
GitPatch
+
".0"
)]
[
assembly
:
AssemblyFileVersion
(
BuildDetails
.
GitMajor
+
"."
+
BuildDetails
.
GitMinor
+
"."
+
BuildDetails
.
GitPatch
+
".0"
)]
[
assembly
:
AssemblyInformationalVersion
(
BuildDetails
.
BuildDate
+
" "
+
BuildDetails
.
GitCommit
+
" ("
+
BuildDetails
.
GitBranch
+
")"
)]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment