Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c205ed0

Browse files
ViktorHofersafern
andauthored
Support dotnet pack on libs src project (dotnet#40107)
* Support dotnet pack on libs src project * Update eng/packaging.targets Co-authored-by: Santiago Fernandez Madero <[email protected]>
1 parent 3edfaad commit c205ed0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

eng/packaging.targets

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,16 @@
2626
'$(_excludeCompile)' == 'true' and
2727
'%(Dependency.Identity)' != '_._'" />
2828
</Target>
29-
</Project>
29+
30+
<PropertyGroup>
31+
<PkgProjPath>$(MSBuildProjectDirectory)\..\pkg\$(MSBuildProjectName).pkgproj</PkgProjPath>
32+
<!-- Point to our custom pack target which builds the pkgproj instead. -->
33+
<PackDependsOn Condition="'$(IsSourceProject)' == 'true' and
34+
Exists('$(PkgProjPath)')">_BuildPkgProj</PackDependsOn>
35+
</PropertyGroup>
36+
37+
<Target Name="_BuildPkgProj">
38+
<MSBuild Projects="$(PkgProjPath)"
39+
Targets="Build" />
40+
</Target>
41+
</Project>

0 commit comments

Comments
 (0)