Skip to content

Commit

Permalink
[build] add extension point for consuming repositories (#412)
Browse files Browse the repository at this point in the history
* [build] add extension point for consuming repositories

Context: dotnet/android#9237
Context: dotnet/android-tools@34e98e2

Using the latest .NET 9 RC 1 builds, dotnet/android repo fails to
restore with:

    external/debugger-libs/Mono.Debugging/Mono.Debugging.csproj :
    error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.34

To solve this, we generally set `$(RestoreAdditionalProjectSources)`
to a feed that would include the 6.0.34 runtime packages.

Add an "extension point" to mono/debugger-libs, that would allow us to
have a submodule like:

    external/debugger-libs

Then would allow us to create the file:

    external/debugger-libs.override.props

This file would set `$(RestoreAdditionalProjectSources)` until the
6.0.34 runtime is released.

* `.props`! Whoops!
  • Loading branch information
jonathanpeppers authored Aug 21, 2024
1 parent 75683c0 commit d566434
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project>
<!-- Enables git repos using debugger-libs as a submodule to override MSBuild properties -->
<Import
Project="$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.props"
Condition=" Exists('$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.props') "
/>
</Project>

0 comments on commit d566434

Please sign in to comment.