-
Notifications
You must be signed in to change notification settings - Fork 252
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
Central Package Management causes build failure without PackageReference #12443
Comments
@dansiegel I tried to create a sample using the information in your bug report, but |
This issue dotnet/maui#12953 is the original one and it has a repro link so maybe it is helpful for additional context and understanding of this issue. |
Just digesting the information provided into a few concepts:
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))">
<!-- Required - WinUI does not yet have buildTransitive for everything -->
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0" />
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
</ItemGroup> So there's really 2 potential problems + some thoughts on moving forward:
|
@nkolev92 Should your findings/observations be posted to dotnet/maui#12953 so that it gains some attention? |
@rrelyea - Would you please look at this issue related to MAUI in 2023-06? |
The linked issue has been addressed. I don't think there's anything else to be done here. |
NuGet Product Used
dotnet.exe, MSBuild.exe, NuGet SDK
Product Version
7.0.200-preview.22628.1
Worked before?
No response
Impact
It's more difficult to complete my work
Repro Steps & Context
When using Central Package Management I may have a number of projects within a given solution. Some of those projects may contain Package References which are required because they are core projects without Framework references. When using .NET MAUI the SDK provides Implicitly Defined Package References. This fails when a PackageVersion exists within the Directory.Packages.props even though the Maui project does not include a PackageReference to the package.
https://github.com/dotnet/maui/blob/5b6663d61c922f6c971542e8f8751303a53ed364/src/Workload/Microsoft.Maui.Sdk/Sdk/BundledVersions.in.targets#L63-L81
In the scenario shown here... the Services Project would work just fine as expected, however the Maui project wouldn't due to the Implicitly Defined References.
Verbose Logs
No response
The text was updated successfully, but these errors were encountered: