Closed ghost1372 closed 3 years ago
The main challenge is that to get that default value, we'll have to allocate a new object to obtain it. Maybe a better option will be to use an attribute
[EnforcedVersion(new Version(...))] //or with string
public virtual Version Version { get; set; }
The value will be populated only if VersioningModule is attached.
Attribute seems interesting I agree with you
JsonSettings.Tests/VersioningModuleTests.cs has tests covering usage + support for inheritance. It is the same as I mentioned above. Will be out in next prerelease
Is it possible to change the version number only in the config class? Using
instead of
.WithVersioning("2.1.1.7", VersioningResultAction.RenameAndLoadDefault)
In this case, the way to use the module is also easier and the possibility of mistakes in the version number is also reducedThank you