C
C#12mo ago
Bill

✅ Assembly Version

I'm trying to add both a Version Suffix and Prefix to my assembly version and print it out. This is what I have:
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>alpha</VersionSuffix>
var assembly = Assembly.GetExecutingAssembly();
var assemblyVersion = assembly.GetName().Version;
var assembly = Assembly.GetExecutingAssembly();
var assemblyVersion = assembly.GetName().Version;
But when I print out the version, I get 1.0.0.0.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server