Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all! (Especially Morten who wrote one of the first examples of a console app with Umbraco for v6 and v7)
We wrote a console app which runs fluent migrator to migrate content, doc types properties etc for umbraco in v7 I'm porting it to v8 and would appreciate some help on understanding what has replaced corebootmanager and kicking the app off.
This is the v7 code and in particular working out how to boostrap the console app
/// Extends the CoreBootManager for use in this Console app.
public class ConsoleBootManager : CoreBootManager
public ConsoleBootManager(UmbracoApplicationBase umbracoApplication, string baseDirectory)
//This is only here to ensure references to the assemblies needed for the DataTypesResolver
//otherwise they won't be loaded into the AppDomain.
// Migration originally targeted a previous version of Umbraco so obosolete
var interfacesAssemblyName = typeof(IDataType).Assembly.FullName;
// Type or member is obsolete
var editorControlsAssemblyName = typeof(uploadField).Assembly.FullName;
/// Can be used to initialize our own Application Events
protected override void InitializeApplicationEventsResolver()
/// Can be used to add custom resolvers or overwrite existing resolvers once they are made public
protected override void InitializeResolvers()
I am trying to create console application with umbraco 8.
until now i don't understand how to do this.
please some help :)
As far as I researched creating a console application to do some one-time data processing does not work anymore. Or there is no documentation for it available yet.
Instead I've used the following to hook into Umbraco V8 Web application to execute my migration code including access to the Umbraco API:
Umbraco Documentation about Composing & Registering Components
Here is my example code for importing some Wordpress posts by using the above concept:
/// Registeres component in Umbraco automatically
/// Starts import of some WordPress posts
public class MyComposer : ComponentComposer<MyComponent>
public class MyComponent : IComponent
// Initialize: runs once when Umbraco starts
public void Initialize()
var contentService = Current.Services.ContentService;
var logger = Current.Logger;
var sqlContext = Current.SqlContext;
var contentGridConverter = new ContentGridConverter();
var wordpressArticleWpContentReplacer = new WordpressArticleWpContentReplacer();
var myImporter = new myImporter(contentService, logger, contentGridConverter, wordpressArticleWpContentReplacer, sqlContext);
// Terminate: runs once when Umbraco stops
public void Terminate()
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted