Add WebTemplate

This commit is contained in:
Mike Harder 2018-04-27 09:44:07 -07:00
parent 6fec0dc8e9
commit 3a041176e9
2 changed files with 10 additions and 4 deletions

View File

@ -8,6 +8,7 @@ namespace AspNetCoreSdkTests.Templates
{
new ClassLibraryTemplate(),
new ConsoleApplicationTemplate(),
new WebTemplate(),
};
}
}

View File

@ -1,16 +1,21 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace AspNetCoreSdkTests.Templates
{
public class WebTemplate : ConsoleApplicationTemplate
{
public override string Name => "web";
public override TemplateType Type => TemplateType.Application;
public override IEnumerable<string> ExpectedObjFilesAfterRestore => throw new System.NotImplementedException();
public override IEnumerable<string> ExpectedObjFilesAfterBuild => Enumerable.Concat(base.ExpectedObjFilesAfterBuild, new[]
{
$"{Name}.RazorAssemblyInfo.cache",
$"{Name}.RazorAssemblyInfo.cs",
$"{Name}.RazorTargetAssemblyInfo.cache",
}.Select(p => Path.Combine(OutputPath, p)));
public override IEnumerable<string> ExpectedObjFilesAfterBuild => throw new System.NotImplementedException();
public override IEnumerable<string> ExpectedBinFilesAfterBuild => throw new System.NotImplementedException();
}
}