-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: or-1566 use csharp script for solution info
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.IO; | ||
|
||
var buildNumber = Environment.GetEnvironmentVariable("CI_BUILD_NUMBER") ?? "0.0.0"; | ||
var gitHash = Environment.GetEnvironmentVariable("GIT_HASH") ?? "unknown"; | ||
var product = "Basisregisters Vlaanderen"; | ||
var copyright = "Copyright (c) Vlaamse overheid"; | ||
var company = "Vlaamse overheid"; | ||
|
||
var content = $@" | ||
using System.Reflection; | ||
[assembly: AssemblyVersion(""{buildNumber}"")] | ||
[assembly: AssemblyFileVersion(""{buildNumber}"")] | ||
[assembly: AssemblyInformationalVersion(""{gitHash}"")] | ||
[assembly: AssemblyProduct(""{product}"")] | ||
[assembly: AssemblyCopyright(""{copyright}"")] | ||
[assembly: AssemblyCompany(""{company}"")] | ||
"; | ||
|
||
File.WriteAllText("SolutionInfo.cs", content); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dotnet tool restore; | ||
dotnet tool install dotnet-script; | ||
dotnet tool update dotnet-script; | ||
dotnet dotnet-script .github/build-scripts/SetSolutionInfo.csx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters