-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Updated ReadMe files - Added DotNet CLI template project
- Loading branch information
1 parent
4740f36
commit a980444
Showing
17 changed files
with
384 additions
and
41 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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyVersion("6.3.1")] | ||
[assembly: AssemblyFileVersion("6.3.1")] | ||
[assembly: AssemblyVersion("6.3.2")] | ||
[assembly: AssemblyFileVersion("6.3.2")] | ||
[assembly: AssemblyCompany("TrakHound Inc.")] | ||
[assembly: AssemblyCopyright("Copyright (c) 2024 TrakHound Inc., All Rights Reserved.")] |
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
45 changes: 45 additions & 0 deletions
45
templates/mtconnect.net-agent/MTConnect-NET-Agent-Template.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,45 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<!-- The package metadata. Fill in the properties marked as TODO below --> | ||
<!-- Follow the instructions on https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices --> | ||
<PackageId>MTConnect.NET-Agent-Template</PackageId> | ||
<PackageVersion>1.0.4</PackageVersion> | ||
<Title>MTConnect.NET Agent Template</Title> | ||
<Authors>trakhound</Authors> | ||
<Description>Template to create an embedded MTConnect Agent using the MTConnect.NET project</Description> | ||
<PackageTags>mtconnect agent dotnet</PackageTags> | ||
<PackageProjectUrl>www.TrakHound.com</PackageProjectUrl> | ||
<PackageIconUrl>https://raw.githubusercontent.com/TrakHound/MTConnect.NET/version-6.0/img/mtconnect-net-03-nuget.png</PackageIconUrl> | ||
<PackageLicenceExpression>MIT</PackageLicenceExpression> | ||
<RepositoryUrl>https://github.com/TrakHound/MTConnect.NET</RepositoryUrl> | ||
|
||
<!-- Keep package type as 'Template' to show the package as a template package on nuget.org and make your template available in dotnet new search.--> | ||
<PackageType>Template</PackageType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<IncludeContentInPack>true</IncludeContentInPack> | ||
<IncludeBuildOutput>false</IncludeBuildOutput> | ||
<ContentTargetFolders>content</ContentTargetFolders> | ||
<NoWarn>$(NoWarn);NU5128</NoWarn> | ||
<NoDefaultExcludes>true</NoDefaultExcludes> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LocalizeTemplates>false</LocalizeTemplates> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.TemplateEngine.Tasks" Version="*" PrivateAssets="all" IsImplicitlyDefined="true"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="content\**\*" Exclude="content\**\bin\**;content\**\obj\**" /> | ||
<Compile Remove="**\*" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="README.md" Pack="true" PackagePath="" /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# MTConnect.NET-Agent-Template | ||
An MTConnect Agent can be embedded into an application where the DataSource(s) can be read and the MTConnect Agent can be combined into the same application. This eliminates the need to transfer data from an Adapter to an Agent (typically using the SHDR protocol). | ||
|
||
## Setup | ||
|
||
#### Install Template | ||
Use the **[dotnet CLI](https://learn.microsoft.com/en-us/dotnet/core/tools/)** to install the MTConnect.NET-Agent-Template using the below command: | ||
``` | ||
dotnet new install MTConnect.NET-Agent-Template | ||
``` | ||
|
||
#### Create New Project | ||
This will create a new project using the template in the current working directory | ||
``` | ||
dotnet new mtconnect.net-agent | ||
``` | ||
|
||
## Build & Develop | ||
|
||
#### dotnet CLI | ||
Use the **[dotnet CLI](https://learn.microsoft.com/en-us/dotnet/core/tools/)** to build the project using the below command: | ||
``` | ||
dotnet build -c:Debug | ||
``` | ||
|
||
#### Run | ||
``` | ||
dotnet run -c:Debug | ||
``` | ||
|
||
## Create Installer | ||
Use the **[dotnet CLI](https://learn.microsoft.com/en-us/dotnet/core/tools/)** to build the project using the *Release** configuration using the below command: | ||
``` | ||
dotnet build -c:Release | ||
``` | ||
|
||
#### Install InnoSetup (if not already installed) | ||
information - https://jrsoftware.org/isinfo.php | ||
download - https://jrsoftware.org/isdl.php#stable | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
...s/mtconnect.net-agent/content/MTConnect.NET-Embedded-Agent/.template.config/template.json
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,13 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "TrakHound Inc.", | ||
"classifications": [ "Common", "Console" ], | ||
"identity": "MTConnect.NET-Agent-Template", | ||
"name": "Template to create an embedded MTConnect Agent using the MTConnect.NET project", | ||
"shortName": "mtconnect.net-agent", | ||
"sourceName":"MTConnect.NET-Agent-Template", | ||
"tags": { | ||
"language": "C#", | ||
"type": "project" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
templates/mtconnect.net-agent/content/MTConnect.NET-Embedded-Agent/Agent.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,32 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<TargetFrameworks>net8.0</TargetFrameworks> | ||
<DebugType>full</DebugType> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<TargetFrameworks>net461;net48;net6.0;net7.0;net8.0</TargetFrameworks> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>None</DebugType> | ||
<Optimize>true</Optimize> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<AssemblyName>agent</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MTConnect.NET-Applications-Agents" Version="6.3.1-beta" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Update="agent.config.yaml"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="NLog.config"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.