Skip to content
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

Allow build/running on WSL/Mono #9119

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ivandrofly
Copy link
Member

This commit ensures that the System.Resources.Extensions library is included in both the build process and the installer scripts to address potential runtime issues from the absence of this dependency. Specifically, the library is added to the files copied during the build (build.bat and build_beta.bat) and to the application's installer configuration to ensure it is properly distributed with the application.

Related to
#9107

Add System.Resources.Extensions package and optimize resources

Added System.Resources.Extensions to Directory.Packages.props and updated related project files to enhance resource handling. Enabled preserialized resource generation in SubtitleEdit.csproj for potential performance improvements. Removed unused App.config reference from Test.csproj for cleanup purposes.
Included System.Resources.Extensions in the installer and both build scripts to ensure consistent packaging of required dependencies. This addresses any potential runtime issues caused by the missing DLL. No other files were modified.
@ivandrofly ivandrofly changed the title Devcontainer/develop Allow build/running on WSL/Mono Dec 21, 2024
@niksedk
Copy link
Member

niksedk commented Dec 30, 2024

Would this make it possible to run the unit tests as a Github action (on Linux)?

# Conflicts:
#	Directory.Packages.props
#	src/Tests/Tests.csproj
Fix inconsistent indentation in Directory.Packages.props

Adjusted the indentation for PropertyGroup and ItemGroup elements to ensure consistency across the file. This improves code readability and maintains a uniform style throughout the project configuration.
```
@ivandrofly
Copy link
Member Author

Would this make it possible to run the unit tests as a Github action (on Linux)?

I think so, haven't test it though.
As long as mono is included in github action Linux image I think it should work just fine

I was able to run tests using Ubuntu on WSL with mono.
There are couple test failing mostly due to trivial error e.g expecting \n instead of \r\n

There are the failing tests:
image

Merry Christmas 🎄 and Happy New Year 🎆

/cc @niksedk @diomed

@diomed
Copy link
Contributor

diomed commented Jan 1, 2025

Happy New Year and blessed holidays and days to come to you as well Ivandro and Nikolaj!

@ivandrofly
Copy link
Member Author

Links to #9175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants