Skip to content

Commit

Permalink
Add nuget.config to root when building on onebranch (#183)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett authored Jan 9, 2025
1 parent 75ceaac commit 1906648
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions scripts/onebranch/Nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation
SPDX-License-Identifier: MIT
-->
<configuration>
<packageSources>
<clear />
<add key="undock_PublicPackages" value="https://pkgs.dev.azure.com/microsoft/undock/_packaging/Undock_PublicPackages/nuget/v3/index.json" />
</packageSources>
</configuration>
8 changes: 7 additions & 1 deletion scripts/onebranch/pre-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ $scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
# Change the parent directory for the script directory
Set-Location $scriptPath\..\..

.\scripts\initialize_repo.ps1
try {
Copy-Item .\scripts\onebranch\nuget.config .\nuget.config
.\scripts\initialize_repo.ps1
}
catch {
throw "Failed to initialize the repository."
}

Get-ChildItem -Path ./external -Filter *.dll -Recurse | Remove-Item

0 comments on commit 1906648

Please sign in to comment.