Go into a folder, let's say C:\MyTest
Run: dotnet new globaljson
This will create a global.json
file with your current version of the dotnet CLI in it, for example:
{
"sdk": {
"version": "6.0.100-rc.2.21505.57"
}
}
using System.Text.Json; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.Events; | |
using Umbraco.Cms.Core.Notifications; | |
namespace MySite; | |
public class FilenameHandler : IComposer | |
{ |
using Slimsy.DependencyInjection; | |
using Umbraco.Cms.Core.Composing; | |
namespace MyProject; | |
public class RegisterDependencies : IComposer | |
{ | |
public void Compose(IUmbracoBuilder builder) | |
{ | |
builder.AddSlimsy(); |
using Hangfire; | |
using Umbraco.Cms.Core; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.Services; | |
namespace UmbraCalendar.Jobs; | |
public class Scheduler : IComposer | |
{ | |
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#DA627D", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", |
using System.Text.Json.Serialization; | |
using J2N.Collections.Generic; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; | |
namespace Cultiv.Controllers; | |
[ApiController] | |
[Route(".well-known/[controller]")] | |
[Produces("application/json")] |
BEGIN MESSAGE. | |
QkdLqCt3lF4Xp7t Vlh2wiA6frPZWbb kFCMyGHaPwmGgSP LsFYHjUo0BKQ1lx | |
18yd71fqWXmD3iW hMQEafmtZ5PTCKq 6Xr2MZHgg77vfn7 Zbp4ahAceopUB9L | |
2e8iD4hNCSKT7Pc id7EsqGyMRXgYmI XZcKeV0HZXNtzXk y823ngxPxGDA0q0 | |
bH58l6v9xdAN8Ng GzGtGzfl29dtpFm zkRYg3KrLsWxFio Lq4AH. | |
END MESSAGE. |
using Hangfire; | |
using Hangfire.Console; | |
using Hangfire.Server; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Logging; | |
using Umbraco.Cms.Core.Composing; | |
namespace Collaborators.Web; | |
public interface IAwesomeService | |
{ |
using Examine; | |
using Examine.Lucene; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Index; | |
using Lucene.Net.Util; | |
using Microsoft.Extensions.Options; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.Configuration.Models; | |
using Umbraco.Cms.Core.Models; | |
using Umbraco.Cms.Core.Scoping; |
using Examine; | |
using Examine.Lucene; | |
using Microsoft.Extensions.Options; | |
using Umbraco.Cms.Core; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.Security; | |
using Umbraco.Cms.Core.Services; | |
using Umbraco.Cms.Core.Web; | |
namespace MyProject; |
Go into a folder, let's say C:\MyTest
Run: dotnet new globaljson
This will create a global.json
file with your current version of the dotnet CLI in it, for example:
{
"sdk": {
"version": "6.0.100-rc.2.21505.57"
}
}