I have a GUID in my assembly information that is auto created when the project is created.
The current system requires a matching GUID on the database so it can identify the solution.
(Yeah, it’s VB.net)
<Assembly: Guid("43aca7cb-9360-4642-adc5-6d29b4732bed")>
What I’m doing is manually copying this GUID into the webconfig as a Setting for the solution, which adds it to the Settings.Designer.vb file.
Ala
<setting name="ApplicationId" serializeAs="String">
<value>43aca7cb-9360-4642-adc5-6d29b4732bed</value>
</setting>
From there it get’s passed on to the database or wherever. It’s not much hassle to do this, and the GUID shouldn’t ever change, but I can’t help but think it would be tidier if I didn’t have to copy the GUID string in each Solution, but had something that referenced the Assembly value directly.
Is this possible?
Thanks for any info.
Something like:
But IMO seems better to keep the guid in the web.config, because it is “hard coded” there.