Skip to content

Commit

Permalink
Fix single-feed error with Release Studio nuget.config (#1549)
Browse files Browse the repository at this point in the history
(cherry picked from commit 376cd32)
  • Loading branch information
dagood committed Feb 11, 2025
1 parent 19645c5 commit b6579b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 1 addition & 6 deletions eng/release-studio/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@
<configuration>
<packageSources>
<clear />
<!-- Only one feed is allowed. https://aka.ms/cfs/nuget -->
<add key="MicroBuildToolset" value="https://pkgs.dev.azure.com/dnceng/_packaging/MicroBuildToolset/nuget/v3/index.json" />
<!--
When the .NET SDK version doesn't match the TargetFramework, get targeting
packs (Microsoft.NETCore.App.Ref, Microsoft.WindowsDesktop.App.Ref, and
Microsoft.AspNetCore.App.Ref) from here.
-->
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
12 changes: 11 additions & 1 deletion eng/release-studio/ReleaseStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@

<!-- Minimal info for '.csproj' to work. -->
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<!--
We only have a single NuGet feed, and that feed doesn't have any targeting
packs (Microsoft.NETCore.App.Ref, Microsoft.WindowsDesktop.App.Ref, and
Microsoft.AspNetCore.App.Ref). To avoid downloading any targeting packs,
we need the Target Framework to match the .NET SDK exactly. The SDK may be
upgraded without our knowledge, so a hard-coded version is fragile. Use
BundledNETCoreAppTargetFrameworkVersion to be flexible.
We aren't actually building an app anyway, we just need the RM package.
-->
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions eng/signing/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<configuration>
<packageSources>
<clear />
<!-- Multiple feeds are allowed, but only because they are both in dnceng/public. -->
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
</packageSources>
Expand Down

0 comments on commit b6579b2

Please sign in to comment.