Skip to content

Commit 47b454f

Browse files
committed
fixing build process
1 parent 6dbdd01 commit 47b454f

File tree

9 files changed

+39
-5
lines changed

9 files changed

+39
-5
lines changed

.github/workflows/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Test net8
3939
run: dotnet test -c $app_conf --no-build -f net8.0
4040
- name: Pack
41-
run: dotnet pack -c $app_conf -o `pwd`/artifacts -p:Version=$app_version -p:InformationalVersion="$app_version:$GITHUB_SHA" -p:CommitSHA=$GITHUB_SHA
41+
run: dotnet pack -c $app_conf -o `pwd`/artifacts -p:AddPackDeps=true -p:Version=$app_version -p:InformationalVersion="$app_version:$GITHUB_SHA" -p:CommitSHA=$GITHUB_SHA
4242
- uses: actions/upload-artifact@v4
4343
with:
4444
name: artifacts

aspects/Cache/Aspects.Cache.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@
1515
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="3.1.32" />
1616
<PackageReference Include="System.Text.Json" Version="6.0.9" />
1717
</ItemGroup>
18+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
19+
<PackageReference Include="AspectInjector" Version="$(Version)">
20+
<IncludeAssets>All</IncludeAssets>
21+
<ExcludeAssets>build</ExcludeAssets>
22+
</PackageReference>
23+
</ItemGroup>
1824

1925
</Project>

aspects/Directory.Build.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
1818
<OutputItemType>Analyzer</OutputItemType>
1919
</ProjectReference> -->
20-
</ItemGroup>
21-
20+
</ItemGroup>
2221

2322
<!-- <ItemGroup>
2423
<Analyzer Include="$(MSBuildThisFileDirectory)..\..\src\AspectInjector.Analyzer\bin\Debug\netstandard2.0\AspectInjector.Analyzer.dll" />

aspects/Freezable/Aspects.Freezable.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
Powered by AspectInjector.</Description>
77
<PackageProjectUrl>https://github.com/pamidur/aspect-injector/tree/master/samples/src/Freezable</PackageProjectUrl>
88
</PropertyGroup>
9+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
10+
<PackageReference Include="AspectInjector" Version="$(Version)">
11+
<IncludeAssets>All</IncludeAssets>
12+
<ExcludeAssets>build</ExcludeAssets>
13+
</PackageReference>
14+
</ItemGroup>
915
</Project>

aspects/Lazy/Aspects.Lazy.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
</Description>
99
<PackageProjectUrl>https://github.com/pamidur/aspect-injector/tree/master/samples/src/Lazy</PackageProjectUrl>
1010
</PropertyGroup>
11+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
12+
<PackageReference Include="AspectInjector" Version="$(Version)">
13+
<IncludeAssets>All</IncludeAssets>
14+
<ExcludeAssets>build</ExcludeAssets>
15+
</PackageReference>
16+
</ItemGroup>
1117

1218
</Project>

aspects/Logging/Aspects.Logging.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.32" />
1212
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.32" />
1313
</ItemGroup>
14+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
15+
<PackageReference Include="AspectInjector" Version="$(Version)">
16+
<IncludeAssets>All</IncludeAssets>
17+
<ExcludeAssets>build</ExcludeAssets>
18+
</PackageReference>
19+
</ItemGroup>
1420
</Project>

aspects/Notify/Aspects.Notify.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@
66
Powered by AspectInjector.</Description>
77
<PackageProjectUrl>https://github.com/pamidur/aspect-injector/tree/master/samples/src/Notify</PackageProjectUrl>
88
</PropertyGroup>
9+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
10+
<PackageReference Include="AspectInjector" Version="$(Version)">
11+
<IncludeAssets>All</IncludeAssets>
12+
<ExcludeAssets>build</ExcludeAssets>
13+
</PackageReference>
14+
</ItemGroup>
915
</Project>

aspects/Universal/Aspects.Universal.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
</Description>
99
<PackageProjectUrl>https://github.com/pamidur/aspect-injector/tree/master/samples/src/Universal</PackageProjectUrl>
1010
</PropertyGroup>
11-
11+
<ItemGroup Condition="'$(AddPackDeps)' == 'true'">
12+
<PackageReference Include="AspectInjector" Version="$(Version)">
13+
<IncludeAssets>All</IncludeAssets>
14+
<ExcludeAssets>build</ExcludeAssets>
15+
</PackageReference>
16+
</ItemGroup>
1217
</Project>

src/AspectInjector/build/AspectInjector.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<UsingTask Condition="'$(AspectInjector_Location)' != ''" TaskName="AspectInjectorTask" AssemblyFile="$(AspectInjector_Location)" />
4-
<UsingTask Condition="'$(AspectInjector_Location)' == ''" TaskName="AspectInjectorTask" AssemblyFile="(MSBuildThisFileDirectory)../../binaries/AspectInjector.dll" />
4+
<UsingTask Condition="'$(AspectInjector_Location)' == ''" TaskName="AspectInjectorTask" AssemblyFile="$(MSBuildThisFileDirectory)../../binaries/AspectInjector.dll" />
55

66
<ItemGroup>
77
<PackageReference Update="AspectInjector" PrivateAssets="None" />

0 commit comments

Comments
 (0)