Skip to content

Commit

Permalink
Upgrade to MORYX8
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxantron committed Dec 7, 2023
1 parent dfe6cc6 commit fbbed96
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<!-- Central package version management -->
<PropertyGroup>
<MoryxFrameworkVersion>6.1.3</MoryxFrameworkVersion>
<MoryxFactoryVersion>6.1.1</MoryxFactoryVersion>
<MoryxFrameworkVersion>8.*</MoryxFrameworkVersion>
<MoryxFactoryVersion>8.*</MoryxFactoryVersion>
</PropertyGroup>

<!-- Package versions for package references across all projects -->
Expand Down
2 changes: 1 addition & 1 deletion src/MyApplication.App/MyApplication.App.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 5 additions & 2 deletions src/MyApplication.App/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Moryx.Asp.Integration;
using Moryx.Model;
using Moryx.Runtime.Kernel;
using Moryx.Runtime.Modules;
using Moryx.Tools;
using MyApplication.App;
using System.Globalization;
Expand Down Expand Up @@ -99,8 +100,10 @@
#endregion

app.Services.UseMoryxConfigurations("Config");
app.Services.StartMoryxModules();

var moduleManager = app.Services.GetRequiredService<IModuleManager>();
moduleManager.StartModules();

app.Run();

app.Services.StopMoryxModules();
moduleManager.StopModules();
2 changes: 1 addition & 1 deletion src/MyApplication.Resources/MyApplication.Resources.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/MyApplication.Resources/SomeResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
namespace MyApplication.Resources
{
[ResourceRegistration] // Only necessary for dependency injection like logging or parallel operations
public class SomeResource : PublicResource, ISomeResource
public class SomeResource : Resource, ISomeResource
{
[DataMember, EntrySerialize]
[Description("Configured value for the capabilities")]
Expand Down
2 changes: 1 addition & 1 deletion src/MyApplication/MyApplication.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/MyApplication/Resources/ISomeResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace MyApplication.Resources
{
public interface ISomeResource : IPublicResource
public interface ISomeResource : IResource
{
}
}
2 changes: 1 addition & 1 deletion src/Tests/MyApplication.Tests/MyApplication.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DebugType>full</DebugType>
</PropertyGroup>
Expand Down

0 comments on commit fbbed96

Please sign in to comment.