Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	templates/OneWareExtensionTemplate/src/OneWareExtensionTemplate/OneWareExtensionClassTemplateModule.cs
#	templates/OneWareExtensionTemplate/src/OneWareExtensionTemplate/OneWareExtensionTemplate.csproj
  • Loading branch information
HendrikMennen committed Feb 29, 2024
2 parents 32839b6 + 6a31521 commit 3d9fd0f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OneWare.Templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>0.12.1.1</PackageVersion>
<PackageVersion>0.12.7.0</PackageVersion>
<PackageId>OneWare.Templates</PackageId>
<Title>OneWare Templates</Title>
<Description>Templates for creating OneWare extensions and libraries.</Description>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Dotnet Templates for OneWare

[![Publish Nuget Packages](https://github.com/ProtopSolutions/OneWare.Templates/actions/workflows/publish-nuget.yml/badge.svg)](https://github.com/ProtopSolutions/OneWare.Templates/actions/workflows/publish-nuget.yml)

For more information about `dotnet new` templates see [here](https://blogs.msdn.microsoft.com/dotnet/2017/04/02/how-to-create-your-own-templates-for-dotnet-new/).

## Installing the templates
Expand Down
11 changes: 11 additions & 0 deletions install-dev-templates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Uninstall the OneWare.Templates
dotnet new uninstall OneWare.Templates

# Remove .nupkg files from bin directory and its subdirectories
rm bin/**/*.nupkg

# Pack and capture the output to find the package name
result=$(dotnet pack | grep -oP "Successfully created package '\K(.*)(?=')")

# Install the package
dotnet new install "$result"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using OneWare.Essentials.Models;
using OneWare.Essentials.Models;
using OneWare.Essentials.Services;
using OneWare.Essentials.ViewModels;
using Prism.Ioc;
Expand Down

0 comments on commit 3d9fd0f

Please sign in to comment.