Firstly, I’d like to say a big “Thank You” for putting together a very good, practical, complete and articulate summary of WebAPI along with a concrete (Tomato) use-case. I found your blog to be very meaningful and helpful. I was able to replicate most of the stuff own my own. However, when I tried to leverage your sample code I ran into some trouble, namely that related to current version of packages (as of 9/2/2018) and the packages registered in your zip file. While I was able to figure out many discrepancies, I ran into some that I could not figure out as the older versions are not available today. I was wondering if you would be so kind as to upgrade your zip file to the with latest packages or perhaps (better) write a blog about how to upgrade/maintain the json so that I/we/anyone can upgrade on one’s own.
My build output was:
C:\Program Files\dotnet\sdk\2.1.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning : The tool ‘Microsoft.EntityFrameworkCore.Tools.DotNet’ is now included in the .NET Core SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box). [C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj]
C:\Program Files\dotnet\sdk\2.1.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning : The tool ‘Microsoft.DotNet.Watcher.Tools’
is now included in the .NET Core SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box). [C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj]
C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : warning NU1603: Microsoft.Extensions.Primitives 2.0.0-preview1-final depends on System.Runtime.CompilerServices.Unsafe (>= 4.4.0-preview1–25219–04) but System.Runtime.CompilerServices.Unsafe 4.4.0-preview1–25219–04 was not found. An approximate best match
of System.Runtime.CompilerServices.Unsafe 4.4.0-preview1–25305–02 was resolved.
C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: Detected package downgrade: Microsoft.Extensions.Logging from 2.0.0-preview1-final to 1.1.1. Reference the package directly from the project to select a different version.
C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: TomatoAPI -> Microsoft.EntityFrameworkCore.Sqlite.Design 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore.Relational.Design 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore.Relational 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore 2.0.0-preview1-final -> Microsoft.Extensions.Logging (>= 2.0.0-preview1-final)C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: TomatoAPI -> Microsoft.Extensions.Logging (>= 1.1.1)C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: Detected package downgrade: Microsoft.Extensions.Logging from 2.0.0-preview1-final to 1.1.1. Reference the package directly from the project to select a different version.
C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: TomatoAPI -> Microsoft.EntityFrameworkCore.Sqlite.Design 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore.Sqlite.Core 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore.Relational 2.0.0-preview1-final -> Microsoft.EntityFrameworkCore 2.0.0-preview1-final -> Microsoft.Extensions.Logging (>= 2.0.0-preview1-final)C:\Users\srp\Desktop\SandBox_WebAPI\tomatoapi-master\TomatoAPI.csproj : error NU1605: TomatoAPI -> Microsoft.Extensions.Logging (>= 1.1.1)
The build failed. Please fix the build errors and run again.