Commit Graph

104 Commits

Author SHA1 Message Date
Nikolaj
a1ecc4a5c9 Change Warn to LogWarning 2020-09-14 10:17:32 +02:00
Nikolaj
d7e3bce741 Rename Error to align it with MS ILogger 2020-09-14 09:10:53 +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
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
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
Bjarke Berg
66a0125d3f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB7446-ModelsBuilderEmbedded-migration
# Conflicts:
#	build/NuSpecs/UmbracoCms.Web.nuspec
2020-08-21 13:26:00 +02:00
Bjarke Berg
c57c42d2ec Fixes merge conflicts 2020-08-07 14:00:56 +02:00
Bjarke Berg
39162f0f6a Merge conflicts resolved 2020-08-06 12:59:21 +02:00
Elitsa Marinovska
6a6e219652 Adds correct reference for HostingEnvironment 2020-08-03 14:37:32 +02:00
Elitsa Marinovska
84e330a0ee Removes previous changes for injecting IPublishedSnapshotAccessor and instead modifies static methods in ModelsBuilder's generated code to accept the required param 2020-08-03 14:16:58 +02:00
Shannon
212dc7f0fa notes 2020-07-14 10:08:59 +10:00
Elitsa Marinovska
7983dcb305 Fixing tests and methods after introducing IPublishedSnapshotAccessor service to PublishedModelUtility. Changing accessibility lvls from migrating tests to a different project 2020-07-13 21:52:11 +02:00
Elitsa Marinovska
d7b818001e Migrating MB tests and changing required accessibility lvls 2020-07-13 21:49:09 +02:00
Elitsa Marinovska
07c0402d2b Injecting IPublishedSnapshotAccessor 2020-07-13 14:39:28 +02:00
Elitsa Marinovska
e69c98ea9c Removing redundant cast 2020-07-13 13:53:02 +02:00
Elitsa Marinovska
c0d266fc92 Migrating project to .net core 2020-07-13 13:38:41 +02:00
Shannon
82ebda256b Fixes merge issues with Umbraco.Web.UI and ensures we are using a consistent version of System.ComponentModel.Annotations 2020-05-20 10:59:09 +10:00