Content-Length: 284960 | pFad | http://github.com/ElectronNET/Electron.NET/commit/0af664b8a6fa1290e11c9ea26af8fa6c59ff4070

2D If we provide the Version parameter and haven't included the version … · ElectronNET/Electron.NET@0af664b · GitHub
Skip to content

Commit 0af664b

Browse files
committed
If we provide the Version parameter and haven't included the version or product version dotnet flag then add them.
Fixes: #584
1 parent 0e22ee3 commit 0af664b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ElectronNET.CLI/Commands/BuildCommand.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ private Dictionary<string, string> GetDotNetPublishFlags(SimpleCommandLineParser
214214
{"/p:PublishSingleFile", parser.TryGet(_paramPublishSingleFile, out var psf) ? psf[0] : "true"},
215215
};
216216

217+
if (parser.Arguments.ContainsKey(_paramVersion))
218+
{
219+
if(parser.Arguments.Keys.All(key => !key.StartsWith("p:Version=") && !key.StartsWith("property:Version=")))
220+
dotNetPublishFlags.Add("/p:Version", parser.Arguments[_paramVersion][0]);
221+
if(parser.Arguments.Keys.All(key => !key.StartsWith("p:ProductVersion=") && !key.StartsWith("property:ProductVersion=")))
222+
dotNetPublishFlags.Add("/p:ProductVersion", parser.Arguments[_paramVersion][0]);
223+
}
224+
217225
foreach (var parm in parser.Arguments.Keys.Where(key => key.StartsWith("p:") || key.StartsWith("property:")))
218226
{
219227
var split = parm.IndexOf('=');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ElectronNET/Electron.NET/commit/0af664b8a6fa1290e11c9ea26af8fa6c59ff4070

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy