-
Notifications
You must be signed in to change notification settings - Fork 286
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
Consider switching to .NET SDK style projects #737
Comments
You can use netframework as target in a net sdk style project however stuff like WPF, winforms, web applications etc are not supported yet. Since duality is using winforms this is a bit of a bummer. However what we can do for now is upgrade all projects that do not require winforms. Maybe when .NET core 3.0 is out winform support in sdk style projects (for netframework) will be there too. |
Seems there are some more issues. Getting some failing unit tests when I changed DualityTests to be a net sdk style project. Branch can be found here: We should first investigate this further before proceeding. We ran into these issues earlier but now we have a isolated branch with just the sdk style change it might be easier to find out whats going wrong here. |
I think I got it figured out. Net sdk style projects output to a framework specific folder. In this case it would put the test dll in a net472 folder. When running the tests it will run in the context of this net472 folder and will only load plugins that are also in this folder. The tests have some implicit dependencies on certain duality plugins so they now break. This behavior can luckily be disabled by setting a property in the csproj. However iam not sure if we want such implicit dependencies though that might be a discussion for a different issue. Might also be solved if we migrate all projects since they should all end up in a framework specific folder. EDIT: solved it by adding in |
We could also simply add tests that test if we are running the correct backends and not some dummy graphic backend. The tests assume this but its currently not clear. |
Easy way to add the required entries for resx files in a net sdk csproj:
|
Summary
This is already a requirement for netstandard but we also have netframework projects that we could migrate to .NET sdk style projects. This is not strictly required but might still be preferable.
Analysis
dotnet pack
)The text was updated successfully, but these errors were encountered: