.NET Core Console Application
Last updated
Was this helpful?
Last updated
Was this helpful?
In this article, you can read more about the .NET Core Console Application.
We will go through the process of setting the application up and exploring what you can do with the application. We will also discuss how you can connect to your Heartcore project on Umbraco Cloud.
Once you have cloned down the , there are two ways of running the application.
Open up the Umbraco.Headless.Client.Samples.Console.sln
file located at Umbraco.Headless.Client.Net\samples\Umbraco.Headless.Client.Samples.Console
and press F5. This will launch the Console application.
By using the command line, you will need to run the following commands from the Umbraco.Headless.Client.Samples.Console
folder in order to run the application.
In order to use this application to its fullest, you will need a Heartcore Project on Umbraco Cloud. If you do not have a project yet, you can . It is recommended that you have a project with both content and media items.
If you do not have a project or trial you can also connect to demo-headless
.
Once you have entered the alias of the project, you are presented with the following options
Fetching the data looks like the following.
In the example above we have fetched the Content Tree. Is shows all the Parent and Child Nodes. The Child Node is shown by an indentation.
In the next example, we have fetched the Root media.
It is showing the name of the Media items and a direct link to each of the Media items.
Option A - E uses the and can be used for any Heartcore Project, which has public content.
Option F uses the . This means that an is required to run this part of the sample. This is because it will create a new folder in the Media Library and upload an image to a new Media item.