VulcanAnalytics / DBTester

Simplified MSSQL database testing library
GNU General Public License v3.0
1 stars 2 forks source link

DbTester not working in my project #48

Open darrencomeau opened 5 years ago

darrencomeau commented 5 years ago

Project c# .NET Core 2.1

image

Further message under dependencies;

Package 'VulcanAnalytics.DBTester 1.0.0-beta2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project.

darrencomeau commented 5 years ago

https://stackoverflow.com/questions/42747977/how-do-you-multi-target-a-net-core-class-library-with-csproj

How to compile for multiple frameworks

darrencomeau commented 5 years ago

Duplicated entire project for .netstandard - this project compiles libraries for both .net46 and .netstandard2.0 frameworks, existing .net40 framework still compiled in previous project.

Added all three libraries to the nuget package.

darrencomeau commented 5 years ago

Beta3 NuGet package isn't providing the classes for consumption.

Suspect project.assets.json entries after applying nuget package to project are incorrect;

},
"VulcanAnalytics.DBTester/1.0.0-beta3": {
  "sha512": "MhbEs1x62iuz17nLa7mGXxVUA921E8PIbl2zD//qKchmKBey+zofWM/GWIVRdrPgUbcFhmXvfaGWRFPGVAGYcQ==",
  "type": "package",
  "path": "vulcananalytics.dbtester/1.0.0-beta3",
  "files": [
    ".git/COMMIT_EDITMSG",
    ".git/FETCH_HEAD",
    ".git/HEAD",
    ".git/ORIG_HEAD",
    ".git/config",
    ".git/description",
    ".git/hooks/applypatch-msg.sample",
    ".git/hooks/commit-msg.sample",
    ".git/hooks/post-update.sample",

This file wasn't present in other projects, might be .net core related structure.

darrencomeau commented 5 years ago

Have reverted these changes to the project as other fixes are needed. This will be reviewed again later.