Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 3ef24c7

Browse files
[workload] use **FromWorkload** for targeting/runtime pack versions (#2122)
Context: dotnet/sdk#19596 If we use the version number string of `**FromWorkload**`, then our runtime packages don't need to be resolved from a NuGet feed. They can be resolved from the `dotnet/packs` directory. This completely eliminates the need for a `NuGet.config` file for projects when you have the `maui` workload installed. One caveat for dotnet/maui is we have a `$(MicrosoftMauiSdkVersion)`. We'll need to use `**FromWorkload**` in some places, and the actual number when declaring `@(PackageReference)`.
1 parent e781c12 commit 3ef24c7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

samples/Directory.Build.props

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,5 @@
44
<UseMaui Condition=" '$(UseWorkload)' == 'true' ">true</UseMaui>
55
</PropertyGroup>
66
<Import Project="../../../Directory.Build.props" />
7-
<!--
8-
We don't want to use cached Microsoft.Maui.* runtime packs.
9-
This can be removed when we get: https://github.com/dotnet/sdk/issues/14044
10-
-->
11-
<PropertyGroup Condition=" '$(UseMaui)' == 'true' ">
12-
<RestoreNoCache>true</RestoreNoCache>
13-
<RestorePackagesPath>$(MauiRootDirectory)packages/</RestorePackagesPath>
14-
</PropertyGroup>
157
<Import Project="Maui.InTree.props" Condition=" '$(UseMaui)' != 'true' " />
168
</Project>

0 commit comments

Comments
 (0)