Commit graph

7 commits

Author SHA1 Message Date
Mag-nus
43c9300b10
.NET Entity Framework Core 3.1 support (attempt #2) (#3356)
* packages updated, fix compiler errors/warnings

* scaffold

* fix ShardDatabaseOfflineTools

* WorldDatabase fix performance

* ShardDatabase fix GetCharacters

* move comment

stuff

* extend UseMySQL statements

* fix character creation linq parsing

* fix exception

* fix references
2020-12-07 20:59:40 -06:00
gmriggs
b1f540f6de
add pre-normalization to treasure material tables (#3360) 2020-11-22 02:57:05 -05:00
Mag-nus
bff22f9140
PurgeOrphanedBiotas (#2326) 2019-11-24 16:50:50 -06:00
Mag-nus
bacc43ab3f MySql.Data reference removed. Lots more refactoring 2018-03-06 04:37:39 -05:00
Mag-nus
99fb8bcc55
All this does is cleanup a bunch of style issues that Resharper complains about (#629)
* Removed unused using statements

* Removed redudnant ToString()'s

* Removed some redundant type casts

* Removed redundant bool comparisons

* remove redundant initializers

* xml summary in invalid place switched to comments

* Use string interpolation

* use format separators

* Removed redundant parenths

* remove redundant else

* direct cast when safe

* redundant string interpolation

* xml summary fixes

* removed empty ctors

* fix modifier order

* Convert to auto property

* Convert some getters to method bodies

* use format separators

* changelog

* Auto-properties that can made to get-only

* fixed some references in XML comments

* remove redundant base()

* Revert "Auto-properties that can made to get-only"

This reverts commit 32a1225ce8.

* fix starter gear json

* Use collections count property

* simplify conditional ternary expression

* remove redundant return statements

* Constructors for abstract classes changed to protected

* Moved declarations to inner scopes

* Join declaration and assignments

* inline out variables

* Use enum extension methods instead of static methods

* inline out more variables

* more unused usings

* Remove specifying enums as ints
2018-02-09 06:46:49 -06:00
Mag-nus
8263626a5a
ACE switched over to .net core 2.0 (#579)
* ACE switched over to .net core 2.0

ACE.Database\Extensions\DataTableExtensions.cs has been changed. Comments have been added and the new manual method is now the only method used when loading data.

ACE.Database\Database.cs added a debug message before and after the time consuming InitializePreparedStatements()

* Changelog updated noting secure auth breakage.
See this issue regarding updating our web/api stuff to be more .net core/standard compatible: https://github.com/ACEmulator/ACE/issues/574
2017-12-12 07:08:32 -06:00
Mag-nus
51e72b4893 Major migration from .net framework 4.6.1 to .net standard/core 2.0 (#573)
* Remove files not referenced by their project (rogue files)

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.

* Remove Settings.StyleCop from child folders

I believe only the Settings.StyleCop in the root folder is needed, and will take effect for all child projects in the solution.

* ACE.Common and ACE.Entity converted to .net standard 2.0

* ACE.DatLoader switched to .net standard 2.0

This includes the removal of:
ACE.DatLoader\default.ruleset which I believe to be a rogue file.

* ACE.CmdLineLauncher now .net core 2.0

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

* ACE.DatLoader.Tests converted to .net standard 2.0

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.

* ACE.Tests converted to .net standard 2.0

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.

* ACE.Database.Tests converted to .net standard 2

Same project icon issue as noted in the previous test conversions.

* ACE.Database converted to .net standard 2.0

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: Remove GameMessageMotion.cs (rogue file)

* ACE: Remove ACE.Diagnostics reference

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

* ACE.Tests changed to a .net core 2.0 project

When ACE is changed to .net core 2.0, it's test must also be .net core 2.0.

* ACE.Database: Remove MySqlResult

MySqlResult inherited from DataTable and added a property and a couple functions, but they were never used, thus, MySqlResult isn't needed.

* Update remaining MySql.Data references to 6.10.1

* Force appveyor to use VS 2017

* Remove unused System.Net.Http reference from projects.

ACE.Api.Common
ACE.Api.Host
ACE.Api
ACE.AuthApi.Host
ACE.AuthApi
Ace

* Fix appveyor test paths.

* ACE: DataTableExtensions added with Load fix for .net core 2.0

* Changelog

* AppVeyor test fix maybe

* Change ACE.Database.Tests and ACE.DatLoader.Tests to .net core 2.0 + test NuGet dependancies

* ACE.Database: DataTableExtensions improved

Rawaho method is better than Mag-nus method.

* AppVeyor fix that's just cosmetic. Tests still don't actually exec.

* AppVeyor test

* Appveyor test

* AppVeyor test

* Switch AppVeyor from vstest.console to dotnet test

* AppVeyor another test

* AppVeyor test

* AppVeyor final fix maybe?

* AppVeyor: Went wrong way with directories...

* AppVeyor almost there...

* AppVeyor fatt fingers maybe?

* ACE.CmdLineLauncher -> ACE.ACClientLauncher
2017-12-04 19:10:33 -05:00