doc/articles/uno-howto-create-a-repro.md
This documentation describes the steps needed to create a "repro" or reproduction project, which will help the community and maintainers troubleshoot issues that you may find when developing with Uno Platform.
The goal of a repro app is to find the smallest possible piece of code that demonstrates the problem, with the least dependencies possible. This is needed to make the resolution as fast as possible, as the Uno Platform team and community members do not have access to your projects sources nor understand your own expertise domain.
Some steps and questions to answer:
dotnet new unoapp --preset=blank app.[!TIP] Watch out for the size of zip created. Check the section below on reducing the sample size.
mp4 files in issues.<TextBlock Text="{Binding}" /><TextBlock Text="{Binding MyProperty}" /><TextBlock Text="{Binding Command, ElementName=MyButton}" />DataContextChanged in the code behind to see if and when the DataContext changed.Windows, Microsoft, or Uno should be visible in the app's output. If not, make sure to setup the logging properly.Yowza, that’s a big file Try again with a file smaller than 10MB.
-- Github
If you get the above message when attempting to upload the zipped sample, thats usually because you have included, beside the source codes, needless build outputs inside bin and obj folders for each target heads.
You can usually reduce this by performing Build > Clean Solution before zipping the entire solution folder. It also helps to manually delete the bin\ and obj\ folders under each project heads that you've compiled.
However, sometimes that still may not be enough. In such case, you can leverage the git tool and a .gitignore file to further reduce the size of the solution.
If you're inside of Visual Studio:
git clean -fdxOnce done, you can zip the folder and send it to github in your issue or discussion.
Using the command prompt:
dotnet new gitignoregit initgit add .git commit -m "Initial sample commit"git archive HEAD --format zip --output sample.zipexplorer /select,sample.zipOnce done, you can send the sample.zip to github in your issue or discussion.
Using a terminal:
wget https://raw.githubusercontent.com/github/gitignore/main/VisualStudio.gitignore -O .gitignoregit initgit add .git commit -m "Initial sample commit"git clean -fdxOnce done, you can zip the folder and send it to github in your issue or discussion.