Open thirstyape opened 8 months ago
Here is the section of the .csproj file for Easy-Password-Validator that includes the files in question.
<ItemGroup>
<None Include="..\BadLists\**" Link="BadLists\%(RecursiveDir)\%(Filename)%(Extension)" />
<None Update="..\BadLists\top-10k-passwords.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="..\BadLists\top-100k-passwords.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Here is the section of the .csproj file for Easy-Password-Validator that includes the files in question.
<ItemGroup> <None Include="..\BadLists\**" Link="BadLists\%(RecursiveDir)\%(Filename)%(Extension)" /> <None Update="..\BadLists\top-10k-passwords.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="..\BadLists\top-100k-passwords.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> </ItemGroup>
Seems the first line with the recursive include is the issue; updating to the below works. But this seems odd as the Documentation states that the None
tag Represents files that should have no role in the build process.
<ItemGroup>
<None Include="..\BadLists\top-10k-passwords.txt" Link="BadLists\top-10k-passwords.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="..\BadLists\top-100k-passwords.txt" Link="BadLists\top-100k-passwords.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
The project I noted earlier can be used to repro.
Verified this issue with Visual Studio 17.10.0 Preview 2(maui version 8.0.10). Cannot repro this issue.
Hi @QianaJiao,
You need checkout the specific commit as per above, I can see from the logs that version 1.2.2 is noted. The problem version is 1.2.1.
I just installed VS 17.10 Preview 2 and produced the issue again. This is on a clean install of Windows 11 22H2 with all updates applied as well.
Thank you for your reminder. After switching to f70e8a27acf57ad2a50bd3fda23344d8d48a9fd2, I can reproduce the issue in Visual Studio 17.10.0 Preview 2 (Maui version 8.0.14).
Description
I have been working on adding a MAUI based GUI to this library; everything is ready, it runs in debug mode through Visual Studio 2022 17.9, but publishing fails.
After nearly losing my mind I discovered that during the part of the publish where the MSIX package gets generated, there was an error within the \obj\Release\net8.0-windows10.0.19041.0\package.map.txt file. What happened is that the static files output with the core library ended up using a double backslash as a directory separator instead of a single backslash. The error lines looked similar to the following:
But they should look similar to this:
Steps to Reproduce
Easy-Password-Validator.csproj
to the MAUI appdotnet publish 'C:\MauiApp1\MauiApp1.csproj' -c Release -f net8.0-windows10.0.19041.0 -p:RuntimeIdentifierOverride=win-x64
Link to public reproduction project repository
No response
Version with bug
8.0.3 GA
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.19041.0
Did you find any workaround?
& 'C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\microsoft.windows.sdk.buildtools\10.0.22621.756\bin\10.0.22621.0\x64\makeappx.exe' pack /l /h sha256 /f C:\MauiApp1\obj\Release\net8.0-windows10.0.19041.0\win10-x64\package.map.txt /o /p C:\MauiApp1\bin\Release\net8.0-windows10.0.19041.0\win10-x64\AppPackages\MauiApp1_0.0.1.0_Test\MauiApp1_0.0.1.0_x64.msix
Relevant log output