[Assets][Project File Management][Resizetizer] Image Management in nested folder structure resulting in Exceptions #19497
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Issue first mentioned in #19486 seperated for brewity:
Successfully reproducable and possible issue source is the Uno.Resizetizer in my opinion but absolutly possible, its a combination with the Visual Studio csproj project management:
20250210-2030-03.1036322.mp4
Noticeable:
dotnet new unoapp -preset blank -toolkit false
to get the lowest configuration possible, but reading documentation, its not possible, even in a blank preset, to exclude the Resizitizer to exclude it from any other possible issue source.
In the documentation is not mentioned, that its not allowed to have nested folders, but somehow it seems Visual Studio 2022 .csproj file management might have issues with this, but to be sure, I would like to have one of the Uno Team check the Resizetizer actions and known automated uno.sdk actions on the .csproj file generation maybe sourcing in the uno things before giving the issue-ball back to the visual studio dev team
Edit:
my example in the video is a Resizetizer compartible png. In case you doing the repro steps listed below, you can estimate the initial issue message in this form:
Expected behavior
How to reproduce it (as minimally and precisely as possible)
<UnoImage Include=Assets\Images\someimagename.png
manually inside of an ItemGroup to the csproj, everything will be fine<UnoImage Include=Assets\Images\*
as research able in the getting started documenation and Uno.Resitzetizer, any Image you now add in this folder will be added just fine as UnoImageAssets\Images\
, your UnoImage will now be Prefixed with Remove instead of Include (Folder from 10 still untouched) and you can start this diagramm back at step 5Workaround
Do not try to not-use Uno.Resizetizer
for those who not know how to start Uno Apps with using assets, the Uno Counter App is a good starting point, including the link to the Uno.Resizetizer after providing a sample svg which is also a Resizetizer compartible format
Any non Uno Image has to be added to the csproj file by manual approach with adding it in a ItemGroup
Works on UWP/WinUI
Yes
Environment
No response
NuGet package version(s)
Automatically added from above listed cmd:
Affected platforms
Build tasks
IDE
Visual Studio 2022
IDE version
17.12.4
Relevant plugins
none
Anything else we need to know?
Application is Building, but this issue is not letting the developer add images as he wants and binds him to the Uno.Resizetizer which should not be the case or target
The text was updated successfully, but these errors were encountered: