Skip to content

Commit 753003f

Browse files
Merge remote-tracking branch 'github/templates'
2 parents 8bd2483 + b5d5695 commit 753003f

6 files changed

Lines changed: 104 additions & 16 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"author": "Daniel Van Noord",
3+
"classifications": [ "Web" ],
4+
"name": "ASCOM Alpaca Razor",
5+
"identity": "ASCOM.Alpaca.Razor", // Unique name for this template
6+
"shortName": "alpacacs", // Short name that can be used on the cli
7+
"tags": {
8+
"language": "C#" // Specify that this template is in C#.
9+
},
10+
"sourceName": "AlpacaDriverDemo", // Will replace the string 'Sayedha.StarterWeb' with the value provided via -n.
11+
"preferNameDirectory" : "true",
12+
"symbols":{
13+
"driverid": {
14+
"type": "parameter",
15+
"dataType": "string",
16+
"defaultValue": "Alpaca.CustomDevice",
17+
"replaces":"Alpaca.CustomDevice"
18+
},
19+
"manufacturer": {
20+
"type": "parameter",
21+
"dataType": "string",
22+
"defaultValue": "C# Alpaca Driver for a custom device",
23+
"replaces":"Your name here"
24+
},
25+
"port": {
26+
"type": "parameter",
27+
"dataType": "int",
28+
"defaultValue": 31234,
29+
"replaces":31234
30+
},
31+
"servername": {
32+
"type": "parameter",
33+
"dataType": "string",
34+
"defaultValue": "A friendly name for the server",
35+
"replaces":"A friendly name for the server"
36+
}
37+
},
38+
"guids": [
39+
"E8C48796-D4D6-44F0-B3BA-22ECF47B918D"
40+
],
41+
}

AlpacaDriverDemo/LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2023 Daniel Van Noord
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

AlpacaDriverDemo/NuGet.config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageRestore>
4+
<add key="enabled" value="True" />
5+
<add key="automatic" value="True" />
6+
</packageRestore>
7+
<packageSources>
8+
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
9+
<add key="MyGet" value="https://www.myget.org/F/ascom-initiative/" />
10+
</packageSources>
11+
<disabledPackageSources />
12+
<activePackageSource>
13+
<add key="All" value="(Aggregate source)" />
14+
</activePackageSource>
15+
</configuration>

AlpacaDriverDemo/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public static void Main(string[] args)
3737
//For Debug ConsoleLogger is very nice. For production TraceLogger is recommended.
3838
Logger = new ASCOM.Tools.ConsoleLogger();
3939

40+
//This region contains startup and logging features, most of the time you shouldn't need to customize this
41+
//You can add custom Command Line arguments here
4042
#region Startup and Logging
4143

4244
Logger.LogInformation($"{ServerName} version {ServerVersion}");

AlpacaDriverDemo/Shared/SurveyPrompt.razor

Lines changed: 0 additions & 16 deletions
This file was deleted.

nuget.csproj

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageType>Template</PackageType>
5+
<PackageVersion>1.0</PackageVersion>
6+
<PackageId>ASCOM.Alpaca.Templates</PackageId>
7+
<Title>ASCOM Alpaca .Net Template</Title>
8+
<Authors>Daniel Van Noord</Authors>
9+
<Description>Template to use when creating an ASCOM Alpaca C# Driver using Blazor, Razor and ASP.Net Core.</Description>
10+
<PackageTags>dotnet-new;templates;ASCOM;alpaca</PackageTags>
11+
<TargetFramework>net8.0</TargetFramework>
12+
<IsPackable>true</IsPackable>
13+
<IncludeContentInPack>true</IncludeContentInPack>
14+
<IncludeBuildOutput>false</IncludeBuildOutput>
15+
<ContentTargetFolders>content</ContentTargetFolders>
16+
<EnableDefaultItems>false</EnableDefaultItems>
17+
</PropertyGroup>
18+
19+
<ItemGroup>
20+
<Content Include="AlpacaDriverDemo\**" Exclude="AlpacaDriverDemo\bin\**;AlpacaDriverDemo\obj\**" />
21+
<Compile Remove="**\*" />
22+
</ItemGroup>
23+
24+
</Project>

0 commit comments

Comments
 (0)