Include project file in F# Worker Service template (#25180)
- add test of this project template
This commit is contained in:
parent
b0530a68c0
commit
c2f0331805
|
|
@ -59,6 +59,7 @@
|
|||
<GeneratedContent Include="WebApi-CSharp.csproj.in" OutputPath="content/WebApi-CSharp/Company.WebApplication1.csproj" />
|
||||
<GeneratedContent Include="WebApi-FSharp.fsproj.in" OutputPath="content/WebApi-FSharp/Company.WebApplication1.fsproj" />
|
||||
<GeneratedContent Include="Worker-CSharp.csproj.in" OutputPath="content/Worker-CSharp/Company.Application1.csproj" />
|
||||
<GeneratedContent Include="Worker-FSharp.fsproj.in" OutputPath="content/Worker-FSharp/Company.Application1.fsproj" />
|
||||
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Client.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Client/ComponentsWebAssembly-CSharp.Client.csproj" />
|
||||
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Shared.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Shared/ComponentsWebAssembly-CSharp.Shared.csproj" />
|
||||
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Server.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Server/ComponentsWebAssembly-CSharp.Server.csproj" />
|
||||
|
|
|
|||
|
|
@ -21,13 +21,17 @@ namespace Templates.Test
|
|||
public ProjectFactoryFixture ProjectFactory { get; }
|
||||
public ITestOutputHelper Output { get; }
|
||||
|
||||
[ConditionalFact]
|
||||
[ConditionalTheory]
|
||||
[OSSkipCondition(OperatingSystems.Linux, SkipReason = "https://github.com/dotnet/sdk/issues/12831")]
|
||||
public async Task WorkerTemplateAsync()
|
||||
[InlineData("C#")]
|
||||
[InlineData("F#")]
|
||||
public async Task WorkerTemplateAsync(string language)
|
||||
{
|
||||
Project = await ProjectFactory.GetOrCreateProject("worker", Output);
|
||||
Project = await ProjectFactory.GetOrCreateProject(
|
||||
$"worker-{ language.ToLowerInvariant()[0] }sharp",
|
||||
Output);
|
||||
|
||||
var createResult = await Project.RunDotNetNewAsync("worker");
|
||||
var createResult = await Project.RunDotNetNewAsync("worker", language: language);
|
||||
Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create/restore", Project, createResult));
|
||||
|
||||
var publishResult = await Project.RunDotNetPublishAsync();
|
||||
|
|
|
|||
Loading…
Reference in New Issue