Skip to content

Commit 38c8565

Browse files
authored
Merge pull request #471 from nblumhardt/app-skill-publishing
Update app building skill with publishing gotcha
2 parents 572578a + f427e9c commit 38c8565

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • src/SeqCli/Skills/Resources/building-seq-plug-in-apps

src/SeqCli/Skills/Resources/building-seq-plug-in-apps/SKILL.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ Input apps use `Seq.Input.{Name}` naming.
4646
<PackageReference Include="Seq.Apps" Version="..." />
4747
<!-- Add Seq.Syntax (project or package reference) if using the Seq template language -->
4848
</ItemGroup>
49+
<ItemGroup>
50+
<!-- Package dependencies into primary NUPKG file, except those shipped in the app host itself -->
51+
<None Include="./obj/publish/**/*" Exclude="./obj/publish/$(MSBuildProjectName).dll;./obj/publish/Seq.Apps.dll;./obj/publish/Serilog.dll" Pack="true" PackagePath="lib/$(TargetFramework)" />
52+
</ItemGroup>
4953
</Project>
5054
```
5155

@@ -521,10 +525,14 @@ Take care that the smoke test project doesn't exit or assume completion before a
521525
- Default time zone: `Etc/UTC`
522526
- Default date/time format: `o` (ISO-8601 round-trip)
523527

528+
## Gotchas
529+
530+
- Seq does not resolve package dependencies when installing apps. Apps must package assembly dependencies into their own NUPKG (see CSPROJ conventions above).
531+
524532
## References
525533

526534
- [CLEF specification](https://clef-json.org) — the Compact Log Event Format (`@t`, `@mt`, `@m`, `@l`, `@x`, `@i`, `@r`)
527-
- [Posting raw events](https://docs.datalust.co/docs/posting-raw-events) — CLEF reference including Seq trace extensions (`@tr`, `@sp`, `@ps`, `@st`, `@sc`, `@ra`, `@sk`)
535+
- [Posting raw events](https://docs.datalust.co/docs/posting-raw-events) — CLEF reference including Seq trace extensions (`@tr`, `@sp`, `@ps`, `@st`, `@sa`, `@ra`, `@sk`)
528536
- [Template syntax](https://docs.datalust.co/docs/template-syntax) — documentation for the Seq template language used in app settings
529537
- [seq-apps-runtime](https://github.com/datalust/seq-apps-runtime) — source code for the `Seq.Apps` API (`SeqApp`, `ISubscribeToAsync<LogEvent>`, `ISubscribeToJsonAsync`, etc.)
530538
- [seqcli](https://github.com/datalust/seqcli) — source code for the `seqcli app run` command that Seq uses to host apps at runtime

0 commit comments

Comments
 (0)