-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance project structure; inner dev loop
- Loading branch information
1 parent
8c8c38f
commit d72c187
Showing
27 changed files
with
221 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory = $True)] | ||
[string] | ||
$Project | ||
) | ||
|
||
Write-Host "Packing logic-node project at ``${Project}``" -ForegroundColor Blue | ||
$RepositoryRoot = Resolve-Path (Join-Path $PSScriptRoot '../') | ||
$SdkDir = Join-path $PSScriptRoot 'tools/gira' | ||
$DistDir = Resolve-Path (Join-Path $PSScriptRoot '../dist') | ||
|
||
Write-Host "Repository: ``${RepositoryRoot}``" | ||
Write-Host "SDK-Tools: ``${SdkDir}``" | ||
Write-Host "Output: ``${DistDir}``" | ||
|
||
$NodeToolPath = Join-Path -Path $SdkDir -ChildPath 'LogicNodeTool.exe' | ||
|
||
$CreateNodeArgs = @( | ||
'create' | ||
"${Project}" | ||
"${DistDir}" | ||
) | ||
|
||
Write-Host "${NodeToolPath} ${CreateNodeArgs}" -ForegroundColor Magenta | ||
. $NodeToolPath $CreateNodeArgs |
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project> | ||
|
||
<!--<ItemGroup> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net45" Version="$(MicrosoftNetFramework45PackageVersion)"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup>--> | ||
|
||
<ItemGroup> | ||
<Using Remove="System.Net.Http"/> | ||
</ItemGroup> | ||
|
||
</Project> |
16 changes: 16 additions & 0 deletions
16
dotnet/src/NecatiMeral.Logic.Doorbird/DoorbirdListenerNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Necati_Meral_Yahoo_De.LogicNodes; | ||
|
||
namespace Necati_Meral_Yahoo_De.Logic.Doorbird; | ||
|
||
public class DoorbirdListenerNode : LocalizablePrefixLogicNodeBase | ||
{ | ||
protected ITypeService TypeService { get; } | ||
|
||
public DoorbirdListenerNode(INodeContext context) | ||
: base(context, LogicNodeConsts.InputPrefix) | ||
{ | ||
context.ThrowIfNull("context"); | ||
|
||
TypeService = context.GetService<ITypeService>(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"PackageFormatVersion": "1.0", | ||
"Assembly": "Necati_Meral_Yahoo_De.Logic.Doorbird.dll", | ||
"PackageName": { | ||
"en": "Doorbird nodes" | ||
}, | ||
"DependentFiles": [ | ||
"NecatiMeral.LogicNodes.dll" | ||
], | ||
"Version": "1.0.0", | ||
"Author": "Necati Meral", | ||
"Copyright": "COPYRIGHT", | ||
"DeveloperId": "necati_meral_yahoo_de", | ||
"License": "Free", | ||
"PackageId": "CB18E39C-C1A8-421F-882A-4E3B4B36A996", | ||
"Nodes": [ | ||
{ | ||
"Type": "Necati_Meral_Yahoo_De.Logic.Doorbird.DoorbirdListenerNode", | ||
"Name": { | ||
"en": "Logic Node" | ||
}, | ||
"IsConverter": false, | ||
"Category": "Node", | ||
"DefaultIcon": "", | ||
"HelpTooltip": { | ||
"en": "Logic Node." | ||
}, | ||
"HelpFileReference": null | ||
} | ||
] | ||
} |
29 changes: 29 additions & 0 deletions
29
dotnet/src/NecatiMeral.Logic.Doorbird/NecatiMeral.Logic.Doorbird.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="..\..\logic-node.props" /> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net48</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\NecatiMeral.LogicNodes\NecatiMeral.LogicNodes.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="Manifest.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<!-- TODO: Create a more developer and VS friendly approach--> | ||
<!-- <PropertyGroup> | ||
<PostBuildEvent>"$(SolutionDir)src\LogicNodesSDK\LogicNodeTool.exe" create "$(TargetDir) " "$(SolutionDir)Zip" | ||
echo INFO: Logic Nodes are not signed yet and can only be used in the simulation in GPA. | ||
REM "$(SolutionDir)src\LogicNodesSDK\SignLogicNodes.exe" $(SolutionDir)..\..\build\dev\gira-developer-cert.p7b [certificate_password] $(SolutionDir)Zip</PostBuildEvent> | ||
</PropertyGroup> --> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Necati_Meral_Yahoo_De.LogicNodes; | ||
public static class LogicNodeConsts | ||
{ | ||
public const string InputPrefix = "Input"; | ||
} |
31 changes: 5 additions & 26 deletions
31
dotnet/src/NecatiMeral.LogicNodes/NecatiMeral.LogicNodes.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<Import Project="..\..\logic-node.props"/> | ||
|
||
<PropertyGroup> | ||
<Platform>AnyCPU</Platform> | ||
<ProjectGuid>{3F1FF768-FD27-46A2-961C-B6EFDF9CB3B3}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net45</TargetFramework> | ||
<TargetFramework>net48</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="LogicModule.Nodes.Helpers"> | ||
<HintPath>..\LogicNodesSDK\LogicModule.Nodes.Helpers.dll</HintPath> | ||
</Reference> | ||
<Reference Include="LogicModule.ObjectModel"> | ||
<HintPath>..\LogicNodesSDK\LogicModule.ObjectModel.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net45" Version="$(MicrosoftNetFramework45PackageVersion)"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="Manifest.json"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
<!-- TODO: Create a more developer and VS friendly approach--> | ||
<!-- <PropertyGroup> | ||
<PostBuildEvent>"$(SolutionDir)src\LogicNodesSDK\LogicNodeTool.exe" create "$(TargetDir) " "$(SolutionDir)Zip" | ||
echo INFO: Logic Nodes are not signed yet and can only be used in the simulation in GPA. | ||
REM "$(SolutionDir)src\LogicNodesSDK\SignLogicNodes.exe" $(SolutionDir)..\..\build\dev\gira-developer-cert.p7b [certificate_password] $(SolutionDir)Zip</PostBuildEvent> | ||
</PropertyGroup> --> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
|
||
namespace Necati_Meral_Yahoo_De.DoorbirdListener.Tests; | ||
public class Class1 | ||
{ | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
dotnet/test/NecatiMeral.DoorbirdListener.Tests/NecatiMeral.DoorbirdListener.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net48</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\NecatiMeral.Logic.Doorbird\NecatiMeral.Logic.Doorbird.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters