Open michalleptuch opened 2 years ago
Hello michalleptuch, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.
This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.
FYI @marb2000 @ocalvo
The ModernFlyouts Team is also experiencing this issue. This is a major breaking bug that has had no solution for 4 months. @marb2000 @ocalvo @michael-hawker
I also experienced the same issue when I updated the VisualStudio2019. As a temporal solution I had to go back to the previous version and I can't upgrade until this bug won't be fixed.
Has anyone filed a new issue with the Visual Studio team for this regression? If so, can they link to that issue here?
Has been reported here https://developercommunity2.visualstudio.com/t/Visual-Studio-16100-breaks-support-for/1634426?q=microsoft.toolkit&ftype=problem&space=8&stateGroup=active&sort=newest
Can everyone please upvote this issue so it can get fixed.
It seems that the toolkit msbuild code that detects if the Xaml Applicaton dll has been added already is now not detecting it and ends up adding 2 entries of the same dll.
Please replace this section of your wap project as follows:
<ItemGroup>
<ProjectReference Include="..\RoundedFlyout.Uwp\RoundedFlyout.Uwp.csproj" />
<ProjectReference Include="..\RoundedFlyout.Wpf\RoundedFlyout.Wpf.csproj" />
</ItemGroup>
<Target Name="_RemoveWinMDFromAppxManifest" BeforeTargets="_GenerateCurrentProjectAppxManifest">
<ItemGroup>
<_AppxWinmdFilesToHarvest Remove="@(_AppxWinmdFilesToHarvest)" />
</ItemGroup>
</Target>
<Target Name="_StompSourceProjectForWapProject" BeforeTargets="_ConvertItems">
<ItemGroup>
<_TemporaryFilteredWapProjOutput Include="@(_FilteredNonWapProjProjectOutput)" />
<_FilteredNonWapProjProjectOutput Remove="@(_TemporaryFilteredWapProjOutput)" />
<_FilteredNonWapProjProjectOutput Include="@(_TemporaryFilteredWapProjOutput)">
<SourceProject>
</SourceProject>
</_FilteredNonWapProjProjectOutput>
<_DetailedPriXml Remove="@(_DetailedPriXml)" />
</ItemGroup>
</Target>
Seems to work, Thanks @ocalvo. When should we expect this to be properly fixed?
@ocalvo Yes, it works for building, but during packaging app for the Store I get this error:
1>PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.
1>PRI222: 0x80073b0f - Unspecified error occurred.
Branch: FixForVS
Thank you @ocalvo, it works for me as well
@ocalvo, after I added your suggestion to the project, I submitted the build to the Store, but the certification process did not start at all. After 4 days of waiting we received an email from the support:
The submission has been cancelled due to an invalid package. Error details: Error: DirectWriteForwarder : Gatekeeper error GK0028 : GK0028 Assembly ‘DirectWriteForwarder’ is a mixed mode assembly containing managed and native code. Only pure managed assemblies are compatible with .NET Native.
I reverted this change, created an app package with an older VS 2019 (16.9.1) and tried to submit to the store. Almost immediatelly started the certification process, so I think this workaround cause the issue.
Do you have any idea?
@atiyka How did you create an app package? I stucked on this https://github.com/CommunityToolkit/Microsoft.Toolkit.Win32/issues/328#issuecomment-1021592542.
Well, I just added the code above (except the first 4 lines) at the end of the .wapproj
file in the UWP project before the closing </Project>
tag. It created the app package without any issues for the packaging project in VS.
This is a major breaking bug that has been a problem for 6 months now. Any eta on when we can expect an official solution / patch shipped? @marb2000 @ocalvo @michael-hawker
Also reported here: https://github.com/MicrosoftDocs/windows-dev-docs/issues/3544. This issue still exists in the latest version of Visual Studio 2022 unfortunately so I'm still stuck using Visual Studio 2019 16.9.8.
Describe the bug
I can't build my XamlIsland apps in Visual Studio 2019 v16.10 and higher. Even Visual Studio 2022 Preview doesn't handle it. Visual Studio 2019 v16.9.8 is the last tested and working version.
Steps to Reproduce
Steps to reproduce the behavior:
Expected behavior
Correctly building of solution
Environment
Additional context
I found similar issues that describe the same situations but solutions don't work for me: