Commit Graph

59 Commits

Author SHA1 Message Date
Bjarke Berg
36582f2cd2 Merge pull request #11045 from umbraco/v9/gitignore-in-template
Ship a gitignore in Umbraco V9 dotnet new template
2021-09-08 21:19:35 +02:00
Warren Buckley
d797351349 Update build/templates/UmbracoProject/.gitignore
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-09-08 20:16:07 +01:00
Warren Buckley
c6c924179b Update build/templates/UmbracoProject/.gitignore
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-09-08 19:55:56 +01:00
Bjarke Berg
995595cce1 Merge remote-tracking branch 'origin/v9/dev' into v9/bugfix/fix_issues_when_changing_umbraco_path 2021-09-08 18:17:39 +02:00
Elitsa Marinovska
6c56c298d6 Merge branch 'v9/dev' into v9/bugfix/fix_issues_when_changing_umbraco_path 2021-09-08 08:17:59 +02:00
Warren Buckley
b673ad2b94 Same gitignore as Umbraco Cloud team are using 2021-09-07 16:17:45 +01:00
Warren Buckley
a2a88e5851 Adds the default from dotnet new gitignore 2021-09-07 16:15:39 +01:00
Bjarke Berg
981982d87c Fixes https://github.com/umbraco/Umbraco-CMS/issues/10641 and a couple of other issues with the Umbraco Package dotnet new template.
- Fixed issues with invalid namespace, when using characters like "-"
- Fixed issues with invalid characters in MSBuilder property names, like "."
2021-09-07 10:58:33 +02:00
Bjarke Berg
eca26cd827 Bump version to next rc 2021-09-01 10:57:33 +02:00
Paul Johnson
1e0d82ceee More consistent globs 2021-08-24 20:35:14 +01:00
Paul Johnson
64f4d0ec93 also ignore wwwroot/media 2021-08-24 16:58:05 +01:00
Paul Johnson
fe7067e056 New project - simplify includes/excludes 2021-08-24 16:49:58 +01:00
Bjarke Berg
fbbfcd84c7 Merge remote-tracking branch 'origin/v9/dev' into v9/dev 2021-08-19 10:55:57 +02:00
Bjarke Berg
dba385e5e5 Added App_Plugins to publish output 2021-08-18 16:00:57 +02:00
Elitsa Marinovska
63e12c8dab Changing project ref in dotnet new templates related files 2021-08-18 11:18:30 +02:00
Warren Buckley
d632aa678e Add the same to the _viewimports file for the dotnet new template 2021-08-17 12:58:08 +01:00
Bjarke Berg
c39053d7c1 Bumb version 2021-08-17 08:26:32 +02:00
Elitsa Marinovska
baf69305f3 Exclude the wanted folders in the order Content, Compile, EmbeddedResource and None. Have the None Remove after None Include 2021-08-05 12:51:53 +03:00
Bjarke Berg
e1dab63123 Merge remote-tracking branch 'origin/v9/dev' into patch-separate-sqlce-from-integration-tests 2021-08-04 10:50:33 +02:00
Zeegaan
d76044875b v9: Added missing namespaces to viewimports https://github.com/umbraco/Umbraco-CMS/issues/10776 2021-08-03 12:57:52 +02:00
Bjarke Berg
005b09d58b Fixed version numbers in templates 2021-07-08 09:39:40 +02:00
Bjarke Berg
bed1c18a0b Merge pull request #10531 from umbraco/v9/cyclehack/autogeneration_of_json_schema
V9: Autogeneration of AppSettings JSON schema and Merge the official + Umbraco
2021-07-06 09:48:43 +02:00
Mole
a3af9faad6 Add RazorCompileOnPublish property to UmbracoProject 2021-07-05 12:03:58 +02:00
Warren Buckley
f402c8151a Updated dotnet new templates appsettings to our local stored JSON schema in Umbraco 2021-06-24 11:52:29 +01:00
Bjarke Berg
418ba569f1 remove comments as build script cannot use these in json 2021-06-15 10:47:04 +02:00
Warren Buckley
ceb4db4f45 Adds dotnetRunMessages flag to launch settings for Kestrel (#10472)
https://github.com/dotnet/sdk/issues/12227
https://github.com/dotnet/sdk/pull/12581
https://github.com/dotnet/aspnetcore/blob/v6.0.0-preview.5.21301.17/src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-CSharp/Properties/launchSettings.json#L22
2021-06-15 09:54:46 +02:00
Warren Buckley
8d3434d7d8 dotnet new template - Escape JSON special characters for password & connection string (#10467)
* Fix sourceName to match UmbracoProject and use a generated symbol to replace the Umbraco.Cms.Web.UI.NetCore in Program and Startup files

* Update template.json

* Run `npm update caniuse-lite`

* Regex replacement for Password & Connection strings that gets placed into AppSettings.Development.json So escaping \ and " for JSON strings

* Escaping input and handle namespace replacing. + Updated to beta004

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-15 09:42:52 +02:00
Jason Elkin
0b3eeafb47 fixed a typo in the UmbracoProject template (#10432)
* fixed a typo in the UmbracoProject template

* Update build/templates/UmbracoProject/UmbracoProject.csproj

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-11 14:09:41 +02:00
Bjarke Berg
bcd47db21a https://github.com/umbraco/Umbraco-CMS/issues/10382 - Fix for transitive packages 2021-06-03 14:33:03 +02:00
Warren Buckley
e02ccebf75 No need for a specific namespace replacer it seems sourceName prop is used for that 2021-05-24 14:39:06 +01:00
Warren Buckley
6aca1ca12e Fix for invalid chars used in dotnet new templates creations to ensure namespace is valid & compiles 2021-05-23 13:33:28 +01:00
Mario Lopez
69a507e5db V9 - Include models folder in the project (#10250)
* fixes #10213. When models folder is included in project the models have a Build Action of C# Compiler

* models directory comment indicates correct models location

* added PureLive files to App_Data/Temp

* changed PureLive directory

* include generated models in project

* https://github.com/umbraco/Umbraco-CMS/pull/10250/ - Cleanup in csproj file and fix the generated template too

Co-authored-by: Mario Lopez <mario@monkii.com>
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-05-17 09:50:58 +02:00
Bjarke Berg
9507ba84f2 Updated version to beta003 2021-05-12 14:35:06 +02:00
Warren Buckley
dabecbf7af V9 Netcore: Fix missing launch browser param for dotnet run from template (#10238)
* Adds in launchBrowser for Kestrel/Propject profile so running dotnet run from CLI will launch browser

* Keep in sync with the template file that will we ship
2021-05-06 19:56:04 +02:00
Warren Buckley
f344479b40 Netcore: dotnet new template updates and change HideTopLevelNodeFromPath default value to true (#10222)
* As we always ship with config in V8 to set this to be true makes sense it now because default in code

* Explicitly add JSON Schema property incase user IDE does not automap it

* Escaping issue with example usages
2021-05-04 11:06:25 +02:00
Bjarke Berg
8a2c8f1c09 Update version to beta002 2021-04-28 10:11:41 +02:00
Bjarke Berg
ae3fc84369 Fix templates by only allowing generated https ports withing the range 44300-44399 https://docs.microsoft.com/en-us/iis/extensions/using-iis-express/running-iis-express-without-administrative-privileges#summary 2021-04-28 09:30:05 +02:00
Bjarke Berg
5157d67485 Fix for template 2021-04-27 15:01:13 +02:00
Warren Buckley
473bc53c66 dotnet new template - Support unattended (#10107)
* Remove trailing comma

* Remove duplicate property

* Logo is now transparent & not on a solid a white BG

* Adds in auto Nuget Restore with an option to skip auto restore if you wish to

https://github.com/dotnet/dotnet-template-samples/tree/master/08-restore-on-create

* Fix typo

* Rename from UmbracoSolution to UmbracoProject

Bit misleading as it only ever creates a CSProj & not a SLN

* Couple extra places that needed a rename

* Adds support for HTTP & HTTPS port that will autogenerate an available free port number

https://github.com/dotnet/templating/wiki/Available-Symbols-Generators#port

* Update build/templates/UmbracoProject/.template.config/template.json

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Update build/templates/UmbracoProject/.template.config/template.json

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Rather than COPY appsettings from Umbraco.Web.UI.NetCore we use these specific ones so we can add logic to them

* Support for unattended install with new CLI args

* Change order so all the long textboxes that are optional are together

* Apply suggestions from code review from Elitsa

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2021-04-22 13:22:01 +02:00
Bjarke Berg
efb9aacfe2 Bump version to beta001 2021-03-24 12:30:08 +01:00
Bjarke Berg
f59d36624d Do not copy umbraco folder content to output folder. Only relevant for publish folder (as far as we know) 2021-03-24 11:05:50 +01:00
Bjarke Berg
782e7dfc90 Better descriptions 2021-03-23 19:16:44 +01:00
Bjarke Berg
da539b27c9 Updated targets to allow clear 2021-03-23 12:48:37 +01:00
Bjarke Berg
0e4da70e23 Added nuget info 2021-03-21 12:58:39 +01:00
Bjarke Berg
2a134cf425 Clean up 2021-03-21 12:55:33 +01:00
Bjarke Berg
260d0dc1da Added a new package template to the dotnet template, nad added better info for cli and vs 2021-03-19 22:06:54 +01:00
Mole
2dbc206ce0 Set template default value to 9.0.0-alpha004 2021-03-05 14:06:30 +01:00
Bjarke Berg
6fcfcb0003 https://github.com/umbraco/Umbraco-CMS/issues/9811 Copy static files to publish directory in dotnet template 2021-02-16 07:19:47 +01:00
Bjarke Berg
c98efe047f Cleanup of duplicate entries in csproj and disabled compiled views as default from template (To work with purelive) 2021-02-05 12:27:30 +01:00
Bjarke Berg
246e29f1a6 Updated template to ignore generated files and added _ViewImports.cshtml 2021-02-05 11:46:50 +01:00