-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] exclude Microsoft.AspNetCore.App.Runtime.linux-* packages (#…
…6207) Context: dotnet/sdk#19891 If you `dotnet new android` and `dotnet build` it without a `NuGet.config` you hit: error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-arm64 with version (= 6.0.0-rc.1.21417.2) I found I could workaround the problem by removing `linux-*` packages at a certain point during the build: <Target Name="_RemoveLinuxFrameworkReferences" AfterTargets="ProcessFrameworkReferences"> <ItemGroup> <_ProblematicRIDs Include="linux-arm;linux-arm64;linux-x86;linux-x64" /> <PackageDownload Remove="Microsoft.AspNetCore.App.Runtime.%(_ProblematicRIDs.Identity)" /> <PackageDownload Remove="Microsoft.NETCore.App.Host.%(_ProblematicRIDs.Identity)" /> </ItemGroup> </Target> With this target in place, I can build projects without a `NuGet.config` file. Let's put this workaround in place until we have another solution for dotnet/sdk#19891. To validate these changes, I removed any instances of the `dotnet6` feed in our MSBuild tests.
- Loading branch information
1 parent
c00a5a1
commit d8fca1c
Showing
3 changed files
with
47 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters