Unhandled exception: System.ArgumentException: '24' is not a valid version string.
See original GitHub issue- Version: 19.24.1
electron-builder-squirrel-windows
: 19.24.0
- Target: win
App version is set to 1.0.0-beta.24
.
Got unhandled exception during build process for Windows. Build was successful, if downgraded to v19.16.0.
I think it’s related to these changes: https://github.com/electron-userland/electron-builder/commit/f63086d13558771508314a9620dbbdf0613f1210#diff-5d9edd85053aca39cb001f43cdd633e4R81
2017-08-27 13:13:25> Unhandled exception: System.ArgumentException: '24' is not a valid version string.
Parameter name: version
at NuGet.SemanticVersion.Parse (System.String version) [0x0003b] in <259501d16aec4eda8604f04901763545>:0
at NuGet.SemanticVersion..ctor (System.String version) [0x00000] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.VersionExtensions.ToSemanticVersion (System.String fileName) [0x00021] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.ReleaseEntry.get_Version () [0x00006] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.ReleaseEntry+<>c.<WriteReleaseFile>b__44_0 (Squirrel.ReleaseEntry x) [0x00000] in <259501d16aec4eda8604f04901763545>:0
at System.Linq.EnumerableSorter`2[TElement,TKey].ComputeKeys (TElement[] elements, System.Int32 count) [0x00010] in <b462790788ef4194924839a1c3047e68>:0
at System.Linq.EnumerableSorter`1[TElement].ComputeMap (TElement[] elements, System.Int32 count) [0x00000] in <b462790788ef4194924839a1c3047e68>:0
at System.Linq.EnumerableSorter`1[TElement].Sort (TElement[] elements, System.Int32 count) [0x00000] in <b462790788ef4194924839a1c3047e68>:0
at System.Linq.OrderedEnumerable`1[TElement].SortedMap (System.Linq.Buffer`1[TElement] buffer) [0x00006] in <b462790788ef4194924839a1c3047e68>:0
at System.Linq.OrderedEnumerable`1+<GetEnumerator>d__3[TElement].MoveNext () [0x0003d] in <b462790788ef4194924839a1c3047e68>:0
at System.Linq.Enumerable+SelectIPartitionIterator`2[TSource,TResult].MoveNext () [0x00029] in <b462790788ef4194924839a1c3047e68>:0
at System.String.Join (System.String separator, System.Collections.Generic.IEnumerable`1[T] values) [0x0001f] in <ab2f5ad0f8c84dfe97dfd6a06a64cf44>:0
at Squirrel.ReleaseEntry.WriteReleaseFile (System.Collections.Generic.IEnumerable`1[T] releaseEntries, System.IO.Stream stream) [0x0007f] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.ReleaseEntry.WriteReleaseFile (System.Collections.Generic.IEnumerable`1[T] releaseEntries, System.String path) [0x0000a] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.Update.Program.ReleasifyElectron (System.String package, System.String targetDir, System.String baseUrl) [0x00166] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x00452] in <259501d16aec4eda8604f04901763545>:0
at Squirrel.Update.Program.main (System.String[] args) [0x00097] in <259501d16aec4eda8604f04901763545>:0
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
VSTS dotnet Nuget Pack: Is not a valid version string
When I use the environment variable (PackageName) as $(Build.BuildNumber)-beta as my pack version. The pack fails with the error BuildName_2018.
Read more >Nuget restore fails with error System.ArgumentException
ArgumentException : '' is not a valid version string. We are unable to investigate this issue further without the additional information requested.
Read more >'1.0.0- ' is not a valid version string. : RIDER-10742 - YouTrack
I get the following error when opening any our of solutions. All projects are using the new csproj format and normally maintained in...
Read more >NuGet Error NU5024 - Microsoft Learn
Issue. The PackageVersion property passed to msbuild -t:pack operation is not a valid version string. Solution. Please fix the version ...
Read more >release-notes - Paket
WORKAROUND: Microsoft pushed couple of invalid zips to nuget.org this works around it ... BUGFIX: Fixed unhandled exception when running 'paket config ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@develar no problem. Thanks for making the release quickly!
@steverandy Thanks a lot for the fix, electron-builder-squirrel-windows 19.35.2