You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -274,9 +274,9 @@
274
274
The major version must not exceed 124 to guarantee that the overall integer never exceeds 2100000000 even with the other numbers added.
275
275
Other components are also limited since they must fit within the 8 or 16 bits allowed for them.
276
276
Learn more from https://developer.android.com/studio/publish/versioning. -->
277
-
<ErrorCondition="$([System.Version]::Parse('$(BuildVersion)').Major) > 124"Text="Major version must not exceed 124 per Android versioning rules." />
278
-
<ErrorCondition="$([System.Version]::Parse('$(BuildVersion)').Minor) > 255"Text="Minor version must not exceed 256 per Android versioning rules." />
279
-
<ErrorCondition="$(BuildNumber) > 65535"Text="Build number must not exceed 65535 per Android versioning rules." />
277
+
<ErrorCondition="$([System.Version]::Parse('$(BuildVersion)').Major) > 124 AND '$(OutputType)'=='Exe'"Text="Major version must not exceed 124 per Android versioning rules." />
278
+
<ErrorCondition="$([System.Version]::Parse('$(BuildVersion)').Minor) > 255 AND '$(OutputType)'=='Exe'"Text="Minor version must not exceed 256 per Android versioning rules." />
279
+
<ErrorCondition="$(BuildNumber) > 65535 AND '$(OutputType)'=='Exe'"Text="Build number must not exceed 65535 per Android versioning rules." />
0 commit comments