I have an assembly with a class having const string variable,
public class Data {
public const string Version = "1.0.0";
}
This will be used in another assembly to assign to a string property,
public class ViewModel
{
AppVersion = Data.Version;
public String AppVersion
{
get;
set;
}
}
This AppVersion will displayed on UI application.
Problem is, I have updated this Version to 1.0.1 and built only this assembly has Data class and moved the dll to production.
But, this new version is not displaying and shows old version (1.0.0) still.
When I built the other assembly which has AppVersion (ViewModel) then the new version displayed.
What was the issue? How my assembly keeps the olded version value?