Skip to content

Commit

Permalink
Merge pull request #100 from PrismLibrary/dev/ds/ci-build
Browse files Browse the repository at this point in the history
chore: adding ci build
  • Loading branch information
dansiegel authored Oct 28, 2023
2 parents 706e65c + 69120d2 commit 9587b47
Show file tree
Hide file tree
Showing 143 changed files with 183 additions and 125 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build_wpf_samples

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build-sample:
strategy:
fail-fast: false
matrix:
solution-path: [
'01-BootstrapperShell/BootstrapperShell.sln',
'02-Regions/Regions.sln',
'03-CustomRegions/Regions.sln',
'04-ViewDiscovery/ViewDiscovery.sln',
'05-ViewInjection/ViewInjection.sln',
'06-ViewActivationDeactivation/ActivationDeactivation.sln',
'07-Modules-AppConfig/Modules.sln',
'07-Modules-Code/Modules.sln',
'07-Modules-Directory/Modules.sln',
'07-Modules-LoadManual/Modules.sln',
'07-Modules-Xaml/Modules.sln',
'08-ViewModelLocator/ViewModelLocator.sln',
'09-ChangeConvention/ViewModelLocator.sln',
'10-CustomRegistrations/ViewModelLocator.sln',
'11-UsingDelegateCommands/UsingDelegateCommands.sln',
'12-UsingCompositeCommands/UsingCompositeCommands.sln',
'13-IActiveAwareCommands/UsingCompositeCommands.sln',
'14-UsingEventAggregator/UsingEventAggregator.sln',
'15-FilteringEvents/UsingEventAggregator.sln',
'16-RegionContext/RegionContext.sln',
'17-BasicRegionNavigation/BasicRegionNavigation.sln',
'18-NavigationCallback/BasicRegionNavigation.sln',
'19-NavigationParticipation/NavigationParticipation.sln',
'20-NavigateToExistingViews/NavigationParticipation.sln',
'21-PassingParameters/PassingParameters.sln',
'22-ConfirmCancelNavigation/ConfirmCancelNavigation.sln',
'23-RegionMemberLifetime/RegionMemberLifetime.sln',
'24-NavigationJournal/NavigationJournal.sln',
'26-UsingDialogService/UsingDialogService.sln',
'27-StylingDialog/StylingDialog.sln',
'28-UsingCustomWindow/UsingCustomWindow.sln',
'29-InvokeCommandAction/UsingInvokeCommandAction.sln',
]
uses: avantipoint/workflow-templates/.github/workflows/dotnet-build.yml@master
with:
name: Build Sample
solution-path: ${{ matrix.solution-path }}
dotnet-version: 6.0.x
run-tests: false
artifact-name: ''
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>BootstrapperShell</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 02-Regions/Regions/Regions.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Regions</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 03-CustomRegions/Regions/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Prism.Ioc;
using Prism.Regions;
using Prism.Navigation.Regions;
using Prism.Unity;
using Regions.Views;
using System.Windows;
Expand Down
2 changes: 1 addition & 1 deletion 03-CustomRegions/Regions/Prism/StackPanelRegionAdapter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Prism.Regions;
using Prism.Navigation.Regions;
using System.Windows;
using System.Windows.Controls;

Expand Down
2 changes: 1 addition & 1 deletion 03-CustomRegions/Regions/Regions.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Regions</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 04-ViewDiscovery/ViewDiscovery/ViewDiscovery.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ViewDiscovery</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 04-ViewDiscovery/ViewDiscovery/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Prism.Regions;
using Prism.Navigation.Regions;
using System.Windows;

namespace ViewDiscovery.Views
Expand Down
2 changes: 1 addition & 1 deletion 05-ViewInjection/ViewInjection/ViewInjection.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>BootstrapperShell</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 05-ViewInjection/ViewInjection/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Prism.Ioc;
using Prism.Regions;
using Prism.Navigation.Regions;
using System.Windows;

namespace ViewInjection.Views
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ActiviationDeactiviation</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Unity;
using Prism.Regions;
using Prism.Navigation.Regions;
using System.Windows;
using Prism.Ioc;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Prism.Wpf" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)*.*&quot; &quot;$(SolutionDir)\$(SolutionName)\bin\Debug\net6.0-windows\&quot; /Y" />
<Exec Command="xcopy &quot;$(TargetDir)*.*&quot; &quot;$(SolutionDir)\$(SolutionName)\bin\Debug\$(PrismTargetFramework)\&quot; /Y" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Modules</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Modules</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Prism.Wpf" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)$(TargetName)*$(TargetExt)&quot; &quot;$(SolutionDir)$(SolutionName)\bin\Debug\net6.0-windows\Modules\&quot; /Y /S" />
<Exec Command="xcopy &quot;$(TargetDir)$(TargetName)*$(TargetExt)&quot; &quot;$(SolutionDir)$(SolutionName)\bin\Debug\$(PrismTargetFramework)\Modules\&quot; /Y /S" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Modules</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Modules</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>Modules</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ViewModelLocator</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ViewModelLocator</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ViewModelLocator</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>UsingDelegateCommands</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 12-UsingCompositeCommands/ModuleA/ModuleA.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 12-UsingCompositeCommands/ModuleA/ModuleAModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>UsingCompositeCommands.Core</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>UsingCompositeCommands</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 13-IActiveAwareCommands/ModuleA/ModuleA.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>ModuleA</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion 13-IActiveAwareCommands/ModuleA/ModuleAModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using ModuleA.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using Prism.Navigation.Regions;

namespace ModuleA
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>UsingCompositeCommands.Core</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<TargetFramework>$(PrismTargetFramework)</TargetFramework>
<AssemblyName>UsingCompositeCommands</AssemblyName>
<UseWPF>true</UseWPF>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 9587b47

Please sign in to comment.