Skip to content

Commit

Permalink
EnableSourcyAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhurst committed Jan 18, 2025
1 parent bd59999 commit e93e67a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
20 changes: 9 additions & 11 deletions TUnit.Pipeline/Modules/GetPackageProjectsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ public class GetPackageProjectsModule : Module<List<File>>
{
await Task.CompletedTask;

return Get().ToList();
}

private IEnumerable<File> Get()
{
yield return Sourcy.DotNet.Projects.TUnit_Assertions;
yield return Sourcy.DotNet.Projects.TUnit_Core;
yield return Sourcy.DotNet.Projects.TUnit_Engine;
yield return Sourcy.DotNet.Projects.TUnit;
yield return Sourcy.DotNet.Projects.TUnit_Playwright;
yield return Sourcy.DotNet.Projects.TUnit_Templates;
return
[
Sourcy.DotNet.Projects.TUnit_Assertions,
Sourcy.DotNet.Projects.TUnit_Core,
Sourcy.DotNet.Projects.TUnit_Engine,
Sourcy.DotNet.Projects.TUnit,
Sourcy.DotNet.Projects.TUnit_Playwright,
Sourcy.DotNet.Projects.TUnit_Templates
];
}
}
6 changes: 6 additions & 0 deletions TUnit.Pipeline/TUnit.Pipeline.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<EnableTrimAnalyzer>false</EnableTrimAnalyzer>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="Sourcy.EnableSourcyAttribute">
<_Parameter1>$(MSBuildProjectFullPath)</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
9 changes: 3 additions & 6 deletions TUnit.Templates/TUnit.Templates.csproj
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- The package metadata. Fill in the properties marked as TODO below -->
<!-- Follow the instructions on https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices -->
<PackageId>TUnit.Templates</PackageId>
<PackageVersion>1.0</PackageVersion>
<Title>TODO: fill the package name here</Title>
<Title>TUnit Templates</Title>
<Authors>Tom Longhurst</Authors>
<Description>TODO: fill the package description here</Description>
<Description>Templates for getting started with TUnit</Description>
<PackageTags>TUnit,test,testing,unit,integration,acceptance</PackageTags>
<PackageProjectUrl>https://www.github.com/thomhurst/TUnit</PackageProjectUrl>

<!-- Keep package type as 'Template' to show the package as a template package on nuget.org and make your template available in dotnet new search.-->
<PackageType>Template</PackageType>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IncludeContentInPack>true</IncludeContentInPack>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>content</ContentTargetFolders>
Expand Down

0 comments on commit e93e67a

Please sign in to comment.