dependabot[bot] on nuget
dependabot[bot] on nuget
Bump Newtonsoft.Json from 11.0.… (compare)
dependabot[bot] on nuget
dependabot[bot] on nuget
Bump Newtonsoft.Json from 10.0.… (compare)
dependabot[bot] on npm_and_yarn
Bump express from 4.16.2 to 4.1… (compare)
One more question/suggestion. One of the more useful tools for me in storyteller is the custom reports feature. It is something i have been using heavy. But while the feature is powerful, it doesn't really come with any components to make the reports look professional or even like they belong tool. Storyteller is based on bootstrap, but if you want to generate bootstrap components you end up having to roll your own with the very generic HtmlTag and TableTag.
Anyways, what i am getting at is, I rolled my own with wrappers around a bunch of bootstrap components as well as helpers for working with with typed data tables and lists. Would it be worth while for the StoryTeller project for me to port that in? Hopefully save some effort for future users.
public class MappedHtmlTable<TType> : TableTag
{
private readonly List<MappedHtmlColumn<TType>> columns = new List<MappedHtmlColumn<TType>>();
private TableRowTag headerRow = null;
public MappedHtmlTable(IEnumerable<MappedHtmlColumn<TType>> columns)
: base()
{
this.AddClass("table");
this.AddClass("table-hover");
this.Style("width", "100% !important;");
foreach (var column in columns)
{
this.Column(column);
}
}
public MappedHtmlTable<TType> AddRows(IEnumerable<TType> rows)
{
foreach (var row in rows)
{
this.AddRow(row);
}
return this;
}
public TableRowTag AddRow(TType rowData)
{
return this.AddRow(row => this.columns.Each(col => col.Map(rowData, row.Cell())));
}
public TableRowTag AddRow(HtmlTag tag)
{
return this.AddRow(row => row.Cell()
.Attr("colspan", this.columns.Count)
.Children
.Add(tag));
}
protected override void WriteHtml(HtmlTextWriter html)
{
if (this.TBody.Children.Count == 0)
{
var errorMessage = new AlertTag("No Elements Found")
.Update(new HighlightDanger())
.Update(new MakeLarge());
this.AddRow(errorMessage);
}
base.WriteHtml(html);
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<DotNetCliToolReference Include="dotnet-storyteller" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Storyteller" Version="5.4.0" />
</ItemGroup>
</Project>
static void Main(string[] args)
{
StorytellerAgent.Run(args);
}
looks like I get the following when running in a linux container unfortunately
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
You can resolve the problem by installing the specified framework and/or SDK.
Hy all!
I have following problem, when I try to run the quickstarts app (Storyteller v5) with command "dotnet storyteller" (after successful "dotnet restore"):
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '1.0.5' was not found.
- The following frameworks were found:
2.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.16 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
2.1.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
3.1.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=1.0.5&arch=x64&rid=win10-x64
On my old laptop it works because I have version 1.0.5 installed. When I go to the suggested link to download .NetCore.App 1.0.5, I can only see the warning, "This release has reached end of life, meaning it is no longer supported.". So I cant install it.
What am I doing wrong? Can't I use a newer framework version? Thx for help
I fixed it. Just needed to modify the csproj to this (netcoreapp to v3 and versions from 5.0 to 5.4):
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<OutputType>EXE</OutputType>
</PropertyGroup>
<ItemGroup>
<DotNetCliToolReference Include="dotnet-storyteller" Version="5.4.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="dotnet-storyteller" Version="5.4.0" />
<PackageReference Include="StoryTeller" Version="5.4.0" />
</ItemGroup>
</Project>
Just want to say that I work since some days with storyteller for my WPF app and I really love it!
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractio
ns, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.Extensions.DependencyInjec
tion.Abstractions, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at ST.Client.WebApplicationRun
ner.startWebServer(String hostname, Int32 port, WebSocketsHandler webSockets)
at ST.Client.WebApplicationRunner.Star
t(IApplication application, WebApplicationConfiguration additionalConfiguration)
at ST.Client.ApplicationController.
Start()
at ST.Client.OpenCommand.Execute(OpenInput input)
at Oakton.OaktonCommand`1.Oakton.IOaktonCommand.Execut
e(Object input)
at Oakton.CommandExecutor.execute(CommandRun run)
[return: StoryTeller.SelectionList(Sys.Lists.IsIsNot)]
[FormatAs("Person {personUniqueId} {returnValue} in {affiliateSide} Program {programName} Residency")]
public async Task<string> PersonIsInResidency(string personUniqueId, AffiliateSide affiliateSide, string programName)
{
...
return residency == null ? "is not" : "is";
}
CheckModelFixture<T>
with nested types. The grammars for the nested properties in particular allow me to add input but then as soon as I save the spec it whiles out the input and the fields become uneditable: