forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build package correlation and include in updater
- Loading branch information
Showing
6 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/EnsureDotNetPackageCorrelation.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<PackageCorrelationDirectory>$(MSBuildThisFileDirectory)..\DotNetPackageCorrelation</PackageCorrelationDirectory> | ||
<DotNetCoreDirectory>$(MSBuildThisFileDirectory)..\..\dotnet-core</DotNetCoreDirectory> | ||
<PackageCorrelationFile>$(MSBuildThisFileDirectory)dotnet-package-correlation.json</PackageCorrelationFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(PackageCorrelationFile)" CopyToOutputDirectory="PreserveNewest" /> | ||
</ItemGroup> | ||
|
||
<Target Name="BuildDotNetPackageCorrelationFile" BeforeTargets="Build" DependsOnTargets="Restore"> | ||
<Exec Command="dotnet run --core-location "$(DotNetCoreDirectory)" --output "$(PackageCorrelationFile)"" WorkingDirectory="$(PackageCorrelationDirectory)" /> | ||
</Target> | ||
|
||
<Target Name="CleanDotNetPackageCorrelationFile" BeforeTargets="Clean"> | ||
<Delete Files="$(PackageCorrelationFile)" Condition="Exists('$(PackageCorrelationFile)')" /> | ||
</Target> | ||
|
||
<Target Name="RebuildDotNetPackageCorrelationFile" BeforeTargets="Rebuild" DependsOnTargets="CleanDotNetPackageCorrelationFile"> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule dotnet-core
added at
649080