Commit Graph

116 Commits

Author SHA1 Message Date
Bjarke Berg
acc7065fa1 Fixed issue with models builder
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-23 14:22:53 +02:00
Andy Butland
fe158ec7d9 Removed custom validation of configuration enum values, reverting to framework based validation when binding direct to the enum values. 2020-09-21 21:20:46 +02:00
Andy Butland
b9e67dde55 Added configuration validation for models builder and hosting settings.
Renamed models builder config class suffix to match others.
2020-09-18 12:53:10 +02:00
Bjarke Berg
8141e7c6c8 Bugfix 2020-09-14 14:35:57 +02:00
Bjarke Berg
1b4b17cbae More clean up of old configs 2020-09-14 11:56:22 +02:00
Bjarke Berg
2eee6d7386 Removed some of the old legacy configs
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-11 21:13:18 +02:00
Bjarke Berg
dc643ab6a6 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten
# Conflicts:
#	src/Umbraco.Core/Configuration/ModelsBuilderConfigExtensions.cs
#	src/Umbraco.ModelsBuilder.Embedded/BackOffice/ContentTypeModelValidatorBase.cs
#	src/Umbraco.ModelsBuilder.Embedded/BackOffice/ModelsBuilderDashboardController.cs
#	src/Umbraco.ModelsBuilder.Embedded/Building/ModelsGenerator.cs
#	src/Umbraco.ModelsBuilder.Embedded/Compose/ModelsBuilderComposer.cs
#	src/Umbraco.ModelsBuilder.Embedded/ModelsGenerationError.cs
#	src/Umbraco.ModelsBuilder.Embedded/OutOfDateModelsStatus.cs
#	src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
#	src/Umbraco.Web.BackOffice/Controllers/RedirectUrlManagementController.cs
2020-09-10 14:01:38 +02:00
Bjarke Berg
a4e5029912 Refactored to remove Configs 2020-09-10 13:51:59 +02:00
Bjarke Berg
06713ea03a Clean up + reintroduced some notes, that will maybe be usefull when website rendering is ready
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 12:46:23 +02:00
Bjarke Berg
164c62841d Added seperators (newlines) between parts of the string used for the hash
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:17:21 +02:00
Bjarke Berg
79bfe22650 Added internals visible to for test projects
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:15:44 +02:00
Bjarke Berg
8a68ba9547 Removed the init of legacy MB. Future versions of the full MB will have to disable the embedded MB
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-09 11:15:14 +02:00
Nikolaj
6cd8617202 Fix tests 2020-09-08 15:17:57 +02:00
Nikolaj
a6580cc3c5 Add documentation comments to RoslynCompiler and LoadContext 2020-09-08 12:24:34 +02:00
Nikolaj
fc83ea5edd Remove more generated files 2020-09-08 11:23:27 +02:00
Nikolaj
983ac2cca5 Remove CodeGen var
I believe this was used for the build manager which would get maed if the base directory changed, roslyn shouldn't care though
2020-09-08 10:34:47 +02:00
Nikolaj
3eb897a16f Move genereated files to the Umbraco folder 2020-09-08 10:21:11 +02:00
Nikolaj
f14b3f78a9 Remove unused usings 2020-09-07 12:44:24 +02:00
Nikolaj
5321f493ec Remember to use assemblyPath variable in CompileToFile 2020-09-07 12:37:47 +02:00
Nikolaj
5d12f99eaf SImplify roslyn compiler
Since the old assemblies actually gets deleted now  we no longer need to check if the old assembly file exists
2020-09-07 12:01:25 +02:00
Nikolaj
00365fc455 Clean roslyncompiler a bit
There's no reason to just return the saveLocation parameter
2020-09-07 11:47:46 +02:00
Nikolaj
872364cfb3 Update constructor in PublishedModelFactory 2020-09-07 11:34:12 +02:00
Nikolaj
5f6680f191 Use filestream to be able to delete the old asemblies 2020-09-07 10:19:25 +02:00
Nikolaj
00b30f74c7 Fix 2020-09-07 09:06:46 +02:00
Nikolaj
6d599b5f48 Switch to default AssemblyLoadContext 2020-09-07 09:03:09 +02:00
Bjarke Berg
c8669b18c2 Merge remote-tracking branch 'origin/netcore/netcore' into feature/8651-config-options-patten
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-09-04 14:30:48 +02:00
Mole
1000e19a20 Try and use AssemblyLoadContext to load and unload assemblies
This still doesn't work, since the old assembly never gets freed allowing it to be unloaded, my best guess is that there's some references to the types within in the old assembly somewhere which doesn't get cleared.
2020-09-04 10:38:37 +02:00
Shannon
16e4ffb725 Fixes unsubscribing from static events on Terminate 2020-09-04 00:28:38 +10:00
Nikolaj
63c25b8695 Start out with AssemblyLoadContext 2020-09-03 15:24:57 +02:00
Nikolaj
ba3ed003f1 Remove the last stuff I can find 2020-09-03 15:03:02 +02:00
Nikolaj
870bd825d4 Remove more stuff that seemingly does nothing anymore 2020-09-03 14:58:21 +02:00
Nikolaj
ef02a32a2c Try and do something which might sometimes delete some old assemblies 2020-09-03 14:53:36 +02:00
Nikolaj
508a2b9077 Remove some build manager stuff 2020-09-03 14:18:09 +02:00
Nikolaj
ee424ad160 Remove unused ReferencedAssemblies 2020-09-03 13:50:54 +02:00
Nikolaj
1bbb6844ac Don't try to save a file that already exists 2020-09-03 13:30:34 +02:00
Nikolaj
7b27a56ee9 Use determenistic hash 2020-09-03 13:01:50 +02:00
Nikolaj
aa1807bd5a Reuse compiled assembly again if no changes are detected
It's not pretty, but it works...
2020-09-03 10:31:45 +02:00
Nikolaj
624e57f304 Only add distrinct metadatareferences 2020-09-03 08:34:29 +02:00
Nikolaj
7f6f924da6 Remove duplicate metadatareferences 2020-09-03 08:25:23 +02:00
Nikolaj
3efb60ba28 Remove unused stuff. 2020-09-02 15:46:48 +02:00
Nikolaj
69191088e3 Save compiled assembly in TEMP 2020-09-02 15:35:05 +02:00
Nikolaj
aeb7977c60 Load new argument 2020-09-02 15:18:22 +02:00
Nikolaj
1eb7e9c1eb Add further progress 2020-09-02 14:44:01 +02:00
Nikolaj
064acda304 First shake at RoslynCompiler 2020-09-02 10:17:33 +02:00
Andy Butland
8666547cf1 Updated configuration models used within Umbraco.ModelsBuilder.Embedded project. 2020-08-25 14:19:33 +02:00
Andy Butland
2cd91a5a54 Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.
Further amends to return to booting application.
2020-08-23 23:36:48 +02:00
Andy Butland
2f22313ceb Restored Umbraco.Web and added temporary methods for converstion between legacy and new configuration models to maintain build. 2020-08-23 15:58:37 +02:00
Andy Butland
89b725ef28 Reverted non netcore related project amends in order to limit changes to those necessary for the netcore executable call stack. 2020-08-23 14:05:35 +02:00
Andy Butland
510bd92e78 Amended injection of further settings to use IOptionsSnapshot. 2020-08-21 14:52:47 +01:00
Bjarke Berg
8330983dfd Merge remote-tracking branch 'origin/netcore/feature/AB7446-ModelsBuilderEmbedded-migration' into netcore/feature/AB7446-ModelsBuilderEmbedded-migration 2020-08-21 13:52:24 +02:00