Skip to content

Commit

Permalink
Merge pull request #6 from gui-cs/v2
Browse files Browse the repository at this point in the history
Update to target v2 Terminal.Gui
  • Loading branch information
tznind authored Sep 19, 2024
2 parents fabd0cb + 7fd6235 commit 377d63f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
run: dotnet pack
- name: Publish to Nuget
if: contains(github.ref, 'refs/tags/v')
run: dotnet nuget push ./bin/Debug/Terminal.Gui.templates.$(fgrep \<PackageVersion\> ./Terminal.Gui.templates.csproj | grep -oEi '[0-9.]+').nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push ./bin/Debug/Terminal.Gui.templates.$(fgrep \<PackageVersion\> ./Terminal.Gui.templates.csproj | grep -oEi '[0-9a-zA-Z.-]+').nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
20 changes: 11 additions & 9 deletions Terminal.Gui.templates.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,29 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>1.0.3</PackageVersion>
<PackageVersion>2.0.0-v2-develop.2203</PackageVersion>
<PackageId>Terminal.gui.templates</PackageId>
<Title>Terminal.Gui templates</Title>
<Authors>Thomas Nind</Authors>
<Description>Templates to use when creating an application for Terminal.Gui.</Description>
<PackageTags>dotnet-new;templates;csharp;terminal;c#;gui;template;consol</PackageTags>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<PackageProjectUrl>https://github.com/gui-cs/Terminal.Gui.templates</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
<PackageReleaseNotes>
v1.0.3
- Added Title to window showing quit shortcut
v1.0.2
- Renamed package Terminal.Gui.templates
v1.0.1
- Added README.md to package
- Changed Terminal.Gui package dependency to be 1.* instead of explicitly 1.7.2
2.0.0-v2-develop.2203
- Update for version 2 of Terminal.Gui (latest Terminal Gui Designer compatible edition)
v1.0.3
- Added Title to window showing quit shortcut
v1.0.2
- Renamed package Terminal.Gui.templates
v1.0.1
- Added README.md to package
- Changed Terminal.Gui package dependency to be 1.* instead of explicitly 1.7.2
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions templates/basic/MyGuiCsProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Terminal.Gui" Version="1.*" />
<PackageReference Include="Terminal.Gui" Version="2.0.0-v2-develop.2203" />
</ItemGroup>

</Project>
10 changes: 2 additions & 8 deletions templates/basic/MyView.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion templates/basic/MyView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class MyView {

public MyView() {
InitializeComponent();
button1.Clicked += () => MessageBox.Query("Hello", "Hello There!", "Ok");
button1.Accept += (s, e) => MessageBox.Query("Hello", "Hello There!", "Ok");
}
}
}

0 comments on commit 377d63f

Please sign in to comment.