44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
|
|
namespace AspNetCoreSdkTests.Templates
|
|
{
|
|
public class ClassLibraryTemplate : Template
|
|
{
|
|
public ClassLibraryTemplate() { }
|
|
|
|
public override string Name => "classlib";
|
|
|
|
public override string OutputPath => Path.Combine("Debug", "netstandard2.0", RuntimeIdentifier.Path);
|
|
|
|
public override TemplateType Type => TemplateType.ClassLibrary;
|
|
|
|
public override IEnumerable<string> ExpectedObjFilesAfterBuild => Enumerable.Concat(base.ExpectedObjFilesAfterBuild, new[]
|
|
{
|
|
$"{Name}.AssemblyInfo.cs",
|
|
$"{Name}.AssemblyInfoInputs.cache",
|
|
$"{Name}.assets.cache",
|
|
$"{Name}.csproj.CoreCompileInputs.cache",
|
|
$"{Name}.csproj.FileListAbsolute.txt",
|
|
$"{Name}.csprojAssemblyReference.cache",
|
|
$"{Name}.dll",
|
|
$"{Name}.pdb",
|
|
}.Select(p => Path.Combine(OutputPath, p)));
|
|
|
|
public override IEnumerable<string> ExpectedBinFilesAfterBuild => new[]
|
|
{
|
|
$"{Name}.deps.json",
|
|
$"{Name}.dll",
|
|
$"{Name}.pdb",
|
|
}.Select(p => Path.Combine(OutputPath, p));
|
|
|
|
public override IEnumerable<string> ExpectedFilesAfterPublish => new[]
|
|
{
|
|
$"{Name}.deps.json",
|
|
$"{Name}.dll",
|
|
$"{Name}.pdb",
|
|
};
|
|
}
|
|
}
|