-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add new 'Umbraco Package RCL' project template #13776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3c2c506
Add new 'Umbraco Package RCL' project template
ronaldbarendse 66712eb
Add --no-restore, hide --framework and remove conflicting -v paramete…
ronaldbarendse b894ba4
Hide --framework and --PackageTestSiteName, remove conflicting -v par…
ronaldbarendse 453f763
Merge branch 'v11/dev' into v11/feature/templates-umbracopackage-rcl
ronaldbarendse 9eb4ce8
Revert changes to Framework and UmbracoVersion parameter names
ronaldbarendse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
templates/UmbracoPackageRcl/.template.config/dotnetcli.host.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/dotnetcli.host.json", | ||
| "symbolInfo": { | ||
| "Framework": { | ||
| "longName": "Framework", | ||
| "shortName": "F", | ||
| "isHidden": true | ||
| }, | ||
| "UmbracoVersion": { | ||
| "longName": "version", | ||
| "shortName": "" | ||
| }, | ||
| "SkipRestore": { | ||
| "longName": "no-restore", | ||
| "shortName": "" | ||
| }, | ||
| "SupportPagesAndViews": { | ||
| "longName": "support-pages-and-views", | ||
| "shortName": "s" | ||
| } | ||
| } | ||
| } |
20 changes: 20 additions & 0 deletions
20
templates/UmbracoPackageRcl/.template.config/ide.host.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/ide.host.json", | ||
| "order": 0, | ||
| "icon": "../../icon.png", | ||
| "description": { | ||
| "id": "UmbracoPackageRcl", | ||
| "text": "Umbraco Package RCL - An empty Umbraco package/plugin (Razor Class Library)." | ||
| }, | ||
| "symbolInfo": [ | ||
| { | ||
| "id": "UmbracoVersion", | ||
| "isVisible": true | ||
| }, | ||
| { | ||
| "id": "SupportPagesAndViews", | ||
| "isVisible": true, | ||
| "persistenceScope": "templateGroup" | ||
| } | ||
| ] | ||
| } |
82 changes: 82 additions & 0 deletions
82
templates/UmbracoPackageRcl/.template.config/template.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/template.json", | ||
| "author": "Umbraco HQ", | ||
| "classifications": [ | ||
| "Web", | ||
| "CMS", | ||
| "Umbraco", | ||
| "Package", | ||
| "Plugin", | ||
| "Razor Class Library" | ||
| ], | ||
| "name": "Umbraco Package RCL", | ||
| "description": "An empty Umbraco package/plugin (Razor Class Library).", | ||
| "groupIdentity": "Umbraco.Templates.UmbracoPackageRcl", | ||
| "identity": "Umbraco.Templates.UmbracoPackageRcl.CSharp", | ||
| "shortName": "umbracopackage-rcl", | ||
| "tags": { | ||
| "language": "C#", | ||
| "type": "project" | ||
| }, | ||
| "sourceName": "UmbracoPackage", | ||
| "defaultName": "UmbracoPackage1", | ||
| "preferNameDirectory": true, | ||
| "symbols": { | ||
| "Framework": { | ||
| "displayName": "Framework", | ||
| "description": "The target framework for the project.", | ||
| "type": "parameter", | ||
| "datatype": "choice", | ||
| "choices": [ | ||
| { | ||
| "displayName": ".NET 7.0", | ||
| "description": "Target net7.0", | ||
| "choice": "net7.0" | ||
| } | ||
| ], | ||
| "defaultValue": "net7.0", | ||
| "replaces": "net7.0" | ||
| }, | ||
| "UmbracoVersion": { | ||
| "displayName": "Umbraco version", | ||
| "description": "The version of Umbraco.Cms to add as PackageReference.", | ||
| "type": "parameter", | ||
| "datatype": "string", | ||
| "defaultValue": "11.0.0", | ||
|
ronaldbarendse marked this conversation as resolved.
|
||
| "replaces": "UMBRACO_VERSION_FROM_TEMPLATE" | ||
| }, | ||
| "SkipRestore": { | ||
| "displayName": "Skip restore", | ||
| "description": "If specified, skips the automatic restore of the project on create.", | ||
| "type": "parameter", | ||
| "datatype": "bool", | ||
| "defaultValue": "false" | ||
| }, | ||
| "SupportPagesAndViews": { | ||
| "type": "parameter", | ||
| "datatype": "bool", | ||
| "defaultValue": "false", | ||
| "displayName": "Support pages and views", | ||
| "description": "Whether to support adding traditional Razor pages and Views to this library." | ||
| } | ||
| }, | ||
| "primaryOutputs": [ | ||
| { | ||
| "path": "UmbracoPackage.csproj" | ||
| } | ||
| ], | ||
| "postActions": [ | ||
| { | ||
| "id": "restore", | ||
| "condition": "(!SkipRestore)", | ||
| "description": "Restore NuGet packages required by this project.", | ||
| "manualInstructions": [ | ||
| { | ||
| "text": "Run 'dotnet restore'" | ||
| } | ||
| ], | ||
| "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025", | ||
| "continueOnError": true | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
| <PropertyGroup> | ||
| <TargetFramework>net7.0</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <AddRazorSupportForMvc Condition="'$(SupportPagesAndViews)' == 'True'">true</AddRazorSupportForMvc> | ||
| <RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">UmbracoPackage</RootNamespace> | ||
| <StaticWebAssetBasePath>App_Plugins/UmbracoPackage</StaticWebAssetBasePath> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <PackageId>UmbracoPackage</PackageId> | ||
| <Product>UmbracoPackage</Product> | ||
| <Title>UmbracoPackage</Title> | ||
| <Description>...</Description> | ||
| <PackageTags>umbraco plugin package</PackageTags> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition="'$(SupportPagesAndViews)' == 'True'"> | ||
| <FrameworkReference Include="Microsoft.AspNetCore.App" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Umbraco.Cms.Web.Website" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
| <PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="UMBRACO_VERSION_FROM_TEMPLATE" /> | ||
| </ItemGroup> | ||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "UmbracoPackage", | ||
| "version": "", | ||
| "allowPackageTelemetry": true | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.