Skip to content

Manual updates 20250318 nuget.config for new pipelines #1112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
28 changes: 28 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-android -->
<add key="darc-pub-dotnet-android-e7876a4" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-e7876a4f/nuget/v3/index.json" />
<add key="darc-pub-dotnet-android-82d8938" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-82d8938c/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-android -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<!-- ensure only the sources defined below are used -->
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" protocolVersion="3" />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" protocolVersion="3" />
<!-- This is for packages needed by debugger-libs -->
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
<add key="dotnet10-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json" />
<!-- This is needed (currently) for the Xamarin.Android.Deploy.Installer dependency, getting the installer -->
<!-- Android binary, to support delta APK install -->
<add key="xamarin.android util" value="https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json" />
<!-- Added manually for dotnet/runtime 8.0.11 -->
<add key="darc-pub-dotnet-emsdk-91b783e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-91b783ed/nuget/v3/index.json" />
<add key="darc-pub-dotnet-runtime-ef07c4f" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ef07c4f2/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources />
</configuration>
3 changes: 3 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#addin nuget:?package=SharpZipLib&version=1.4.2

// Imported scripts
#load "build/cake/nuget-install.cake"
#load "build/cake/setup-environment.cake"
#load "build/cake/update-config.cake"
#load "build/cake/tests.cake"
Expand Down Expand Up @@ -43,6 +44,8 @@ Information ($"BUILD_COMMIT : {BUILD_COMMIT}");
Information ($"BUILD_NUMBER : {BUILD_NUMBER}");
Information ($"BUILD_TIMESTAMP : {BUILD_TIMESTAMP}");

RunTarget("nuget-install");

Task ("packages")
.IsDependentOn ("binderate")
.IsDependentOn ("nuget");
Expand Down
2 changes: 2 additions & 0 deletions build/cake/binderate.cake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Task ("binderate")
var configFile = MakeAbsolute (new FilePath ("./config.json")).FullPath;
var basePath = MakeAbsolute (new DirectoryPath ("./")).FullPath;

EnsureDirectoryExists ("./output");

// Run the binderator project
var args = new ProcessArgumentBuilder ()
.Append ("binderate")
Expand Down
6 changes: 6 additions & 0 deletions build/cake/build-and-package.cake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ Task ("nuget")
"./generated/AndroidX.sln",
new DotNetBuildSettings { MSBuildSettings = settings }
);

// validation fails on CI if the package is in the output directory
DeleteFile ($"./output/cliwrap.3.8.2.nupkg");
DeleteFile ($"./output/holisticware.core.net.http.0.0.4.nupkg");
DeleteFile ($"./output/holisticware.core.io.0.0.4.nupkg");
DeleteFile ($"./output/holisticware.xamarin.tools.componentgovernance.0.0.1.4.nupkg");
});

// Builds the .csproj projects
Expand Down
97 changes: 97 additions & 0 deletions build/cake/nuget-install.cake
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
Nuget download

https://www.nuget.org/api/v2/package/{packageID}/


https://api.nuget.org/v3/index.json?package=CliWrap&version=3.8.2
https://api.nuget.org/v3-flatcontainer/cliwrap/3.8.2/cliwrap.3.8.2.nupkg
},
https://www.nuget.org/api/v2/package/cake.coreclr/1.3.0/

*/
/*
#addin nuget:https://api.nuget.org/v3/index.json?package=Mono.Cecil&version=0.11.6
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Xamarin.Tools.ComponentGovernance&version=0.0.1.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.Net.HTTP&version=0.0.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.IO&version=0.0.4
*/

Dictionary<string, string> nuget_packages = new ()
{
// { "cake.coreclr", "1.3.0" }
{ "HolisticWare.Xamarin.Tools.ComponentGovernance", "0.0.1.4" },
{ "HolisticWare.Core.Net.HTTP", "0.0.4" },
{ "HolisticWare.Core.IO", "0.0.4" },
};

Task("nuget-install")
.Does
(
() =>
{
EnsureDirectoryExists("./output");

/*
nuget.exe must be in the PATH
NuGetInstall
(
"HolisticWare.Xamarin.Tools.ComponentGovernance",
new NuGetInstallSettings
{
Version = "0.0.1.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"HolisticWare.Core.Net.HTTP",
new NuGetInstallSettings
{
Version = "0.0.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"HolisticWare.Core.IO",
new NuGetInstallSettings
{
Version = "0.0.4",
OutputDirectory = "./tools/Addins"
}
);
NuGetInstall
(
"CliWrap",
new NuGetInstallSettings
{
Version = "3.8.2",
OutputDirectory = "./tools/Addins"
}
);
*/
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/cliwrap/3.8.2/cliwrap.3.8.2.nupkg",
$"./output/cliwrap.3.8.2.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.core.net.http/0.0.4/holisticware.core.net.http.0.0.4.nupkg",
$"./output/holisticware.core.net.http.0.0.4.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.core.io/0.0.4/holisticware.core.io.0.0.4.nupkg",
$"./output/holisticware.core.io.0.0.4.nupkg"
);
DownloadFile
(
"https://api.nuget.org/v3-flatcontainer/holisticware.xamarin.tools.componentgovernance/0.0.1.4/holisticware.xamarin.tools.componentgovernance.0.0.1.4.nupkg",
$"./output/holisticware.xamarin.tools.componentgovernance.0.0.1.4.nupkg"
);
/*
*/
}
);
23 changes: 22 additions & 1 deletion tests/common/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,29 @@
<packageSources>
<clear />
<add key="Local Output" value="../output" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<!--Begin: Package sources managed by Dependency Flow automation. Do not edit the sources below.-->
<!-- Begin: Package sources from dotnet-android -->
<add key="darc-pub-dotnet-android-e7876a4" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-e7876a4f/nuget/v3/index.json" />
<add key="darc-pub-dotnet-android-82d8938" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-android-82d8938c/nuget/v3/index.json" />
<!-- End: Package sources from dotnet-android -->
<!--End: Package sources managed by Dependency Flow automation. Do not edit the sources above.-->
<!-- ensure only the sources defined below are used -->
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" protocolVersion="3" />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" protocolVersion="3" />
<!-- This is for packages needed by debugger-libs -->
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
<add key="dotnet9" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json" />
<add key="dotnet9-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9-transport/nuget/v3/index.json" />
<add key="dotnet10" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json" />
<add key="dotnet10-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10-transport/nuget/v3/index.json" />
<!-- This is needed (currently) for the Xamarin.Android.Deploy.Installer dependency, getting the installer -->
<!-- Android binary, to support delta APK install -->
<add key="xamarin.android util" value="https://pkgs.dev.azure.com/xamarin/public/_packaging/Xamarin.Android/nuget/v3/index.json" />
<!-- Added manually for dotnet/runtime 8.0.11 -->
<add key="darc-pub-dotnet-emsdk-91b783e" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-emsdk-91b783ed/nuget/v3/index.json" />
<add key="darc-pub-dotnet-runtime-ef07c4f" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-ef07c4f2/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources />

<!--
https://docs.microsoft.com/en-us/nuget/consume-packages/package-source-mapping
Expand Down
13 changes: 11 additions & 2 deletions utilities.cake
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
/*
// debugging prerequisity
#tool nuget:?package=Cake.CoreCLR
*/
/*
dotnet cake spell-check.cake
dotnet cake spell-check.cake -t=spell-check
*/
#addin nuget:?package=WeCantSpell.Hunspell&version=5.0.0
#addin nuget:?package=WeCantSpell.Hunspell&version=6.0.0
#addin nuget:?package=Newtonsoft.Json&version=13.0.3
#addin nuget:?package=Cake.FileHelpers&version=7.0.0
#addin nuget:?package=Mono.Cecil&version=0.11.5
#addin nuget:?package=Mono.Cecil&version=0.11.6

#addin nuget:?package=HolisticWare.Xamarin.Tools.ComponentGovernance&version=0.0.1.4
#addin nuget:?package=HolisticWare.Core.Net.HTTP&version=0.0.4
#addin nuget:?package=HolisticWare.Core.IO&version=0.0.4

/*
#addin nuget:https://api.nuget.org/v3/index.json?package=Mono.Cecil&version=0.11.6
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Xamarin.Tools.ComponentGovernance&version=0.0.1.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.Net.HTTP&version=0.0.4
#addin nuget:https://api.nuget.org/v3/index.json?package=HolisticWare.Core.IO&version=0.0.4
*/

#load "build/cake/performance-timings.cake"

using System.Collections.Generic;
Expand Down
Loading