Commit 587d43a
Alex J Lennon
Fix VersionInfo.cs for single-file app builds
Fix IL3000 error: Assembly.Location returns empty string in single-file apps.
Check if Location is empty and return "Unknown" instead of trying to access
file info. This allows the code to compile for single-file deployments.
The build date should come from assembly metadata anyway, so this fallback
is rarely needed.1 parent 5590ef2 commit 587d43a
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
0 commit comments