Base solution for your next web application
Open Closed

Latest version compile warnings #6732


User avatar
0
statuscast created

Hi all --

One of the great things I've always appreciated with AspNetZero is that the entire framework compiles very clean, no warnings etc. It's been a while since I grabbed an updated version but it seems that this has changed. Are the following warning known? Are there plans to remedy?

` 1>------ Rebuild All started: Project: StatusCast.Core.Shared, Configuration: Debug Any CPU ------ 2>------ Rebuild All started: Project: StatusCast.Core, Configuration: Debug Any CPU ------ 3>------ Rebuild All started: Project: StatusCast.Application.Shared, Configuration: Debug Any CPU ------ 2>MultiTenancy\SubscriptionExpireEmailNotifierWorker.cs(52,21,52,113): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. 2>MultiTenancy\SubscriptionExpirationCheckWorker.cs(77,25,77,89): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. 2>MultiTenancy\SubscriptionExpirationCheckWorker.cs(97,13,97,98): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. 2>StatusCast.Core -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Core\bin\Debug\netcoreapp2.2\StatusCast.Core.dll 2>Done building project "StatusCast.Core.csproj". 4>------ Rebuild All started: Project: StatusCast.EntityFrameworkCore, Configuration: Debug Any CPU ------ 4>StatusCast.EntityFrameworkCore -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.EntityFrameworkCore\bin\Debug\netcoreapp2.2\StatusCast.EntityFrameworkCore.dll 5>------ Rebuild All started: Project: StatusCast.Migrator, Configuration: Debug Any CPU ------ 3>StatusCast.Application.Shared -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Application.Shared\bin\Debug\netstandard2.0\StatusCast.Application.Shared.dll 6>------ Rebuild All started: Project: StatusCast.Application, Configuration: Debug Any CPU ------ 7>------ Rebuild All started: Project: StatusCast.GraphQL, Configuration: Debug Any CPU ------ 8>------ Rebuild All started: Project: StatusCast.Application.Client, Configuration: Debug Any CPU ------ 9>------ Rebuild All started: Project: StatusCast.ConsoleApiClient, Configuration: Debug Any CPU ------ 8>C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Application.Client\StatusCast.Application.Client.csproj : warning NU1701: Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 9>Program.cs(41,31,41,46): warning CS0618: 'DiscoveryClient' is obsolete: 'This type will be deprecated or changed in a future version. It is recommended that you switch to the new extension methods for HttpClient. They give you much more control over the HttpClient lifetime and configuration. See the docs here: https://identitymodel.readthedocs.io' 9>Program.cs(47,39,47,50): warning CS0618: 'TokenClient' is obsolete: 'This type will be deprecated or changed in a future version. It is recommended that you switch to the new extension methods for HttpClient. They give you much more control over the HttpClient lifetime and configuration. See the docs here: https://identitymodel.readthedocs.io' 8>StatusCast.Application.Client -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Application.Client\bin\Debug\netstandard2.0\StatusCast.Application.Client.dll 8>Done building project "StatusCast.Application.Client.csproj". 10>------ Rebuild All started: Project: StatusCast.Mobile.Shared, Configuration: Debug Any CPU ------ 5>StatusCast.Migrator -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Migrator\bin\Debug\netcoreapp2.2\StatusCast.Migrator.dll 10>C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Mobile.Shared\StatusCast.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl 1.1.6' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Mobile.Shared\StatusCast.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl.Async 1.0.165' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Mobile.Shared\StatusCast.Mobile.Shared.csproj : warning NU1701: Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Mobile.Shared\StatusCast.Mobile.Shared.csproj : warning NU1701: Package 'PCLStorage 1.0.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 9>StatusCast.ConsoleApiClient -> C:\src\aspnetzero\StatusCast\aspnet-core\test\StatusCast.ConsoleApiClient\bin\Debug\netcoreapp2.2\StatusCast.ConsoleApiClient.dll 9>Done building project "StatusCast.ConsoleApiClient.csproj". 7>StatusCast.GraphQL -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.GraphQL\bin\Debug\netcoreapp2.2\StatusCast.GraphQL.dll 6>StatusCast.Application -> C:\src\aspnetzero\StatusCast\aspnet-core\src\StatusCast.Application\bin\Debug\netcoreapp2.2\StatusCast.Application.dll 11>------ Rebuild All started: Project: StatusCast.Web.Core, Configuration: Debug Any CPU ------ 12>------ Rebuild All started: Project: StatusCast.Test.Base, Configuration: Debug Any CPU ------ 10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2114,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ImageCircle.Forms.Plugin.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 10>Controls\HideableToolbarItem.cs(10,60,10,172): warning CS0618: 'BindableProperty.Create<TDeclarer, TPropertyType>(Expression<Func<TDeclarer, TPropertyType>>, TPropertyType, BindingMode, BindableProperty.ValidateValueDelegate

`


10 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, Thanks for reporting. We will fix this.

  • User Avatar
    0
    aaron created
    Support Team
  • User Avatar
    0
    rvanwoezik created

    Are you sure? downloaded a fresh version 6.9.1 Angular Core and i have same compile warnings

  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, i have tried fresh download of 6.9.1 and did not see those warnings.

  • User Avatar
    0
    rvanwoezik created

    I've downloaded Angular Core version one solution, when i start the mobile solution i get the following errors when building:

    Severity Code Description Project File Line Suppression State Error File on disk is not included in project FP.Phoogle.Mobile.Droid C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Droid\Renderer\FontExtensions.cs 0 Warning CS0618 'Frame.OutlineColor' is obsolete: 'OutlineColor is obsolete as of version 3.0.0. Please use BorderColor instead.' FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\Controls\CardView.cs 14 N/A Warning CS0618 'BindableProperty.Create<TDeclarer, TPropertyType>(Expression<Func<TDeclarer, TPropertyType>>, TPropertyType, BindingMode, BindableProperty.ValidateValueDelegate<TPropertyType>, BindableProperty.BindingPropertyChangedDelegate<TPropertyType>, BindableProperty.BindingPropertyChangingDelegate<TPropertyType>, BindableProperty.CoerceValueDelegate<TPropertyType>, BindableProperty.CreateDefaultValueDelegate<TDeclarer, TPropertyType>)' is obsolete: 'Create<> (generic) is obsolete as of version 2.1.0 and is no longer supported.' FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\Controls\HideableToolbarItem.cs 10 N/A Warning The referenced component 'System.ObjectModel' could not be found. FP.Phoogle.Mobile.Droid Warning The referenced component 'System.Threading.Tasks' could not be found. FP.Phoogle.Mobile.Droid Warning Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. FP.Phoogle.Mobile.Droid Warning The referenced component 'System.Runtime' could not be found. FP.Phoogle.Mobile.Droid Warning The referenced component 'System.Collections' could not be found. FP.Phoogle.Mobile.Droid Warning The $(TargetFrameworkVersion) for FFImageLoading.Platform.dll (v9.0) is greater than the $(TargetFrameworkVersion) for your project (v8.1). You need to increase the $(TargetFrameworkVersion) for your project. FP.Phoogle.Mobile.Droid C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Droid\FP.Phoogle.Mobile.Droid.csproj Warning The $(TargetFrameworkVersion) for FFImageLoading.Forms.Platform.dll (v9.0) is greater than the $(TargetFrameworkVersion) for your project (v8.1). You need to increase the $(TargetFrameworkVersion) for your project. FP.Phoogle.Mobile.Droid C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Droid\FP.Phoogle.Mobile.Droid.csproj Warning NU1701 Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. FP.Phoogle.Application.Client C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Application.Client\FP.Phoogle.Application.Client.csproj 1 Warning NU1701 Package 'Microsoft.Bcl 1.1.6' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\FP.Phoogle.Mobile.Shared.csproj 1 Warning NU1701 Package 'Microsoft.Bcl.Async 1.0.165' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\FP.Phoogle.Mobile.Shared.csproj 1 Warning NU1701 Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\FP.Phoogle.Mobile.Shared.csproj 1 Warning NU1701 Package 'PCLStorage 1.0.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. FP.Phoogle.Mobile.Shared C:\Users\RenevanWoezik\Downloads\Phoogle6.91\Phoogle\src\FP.Phoogle.Mobile.Shared\FP.Phoogle.Mobile.Shared.csproj 1 Warning MSB3245 Could not resolve this reference. Could not locate the assembly "ImageCircle.Forms.Plugin.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. FP.Phoogle.Mobile.Shared C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 2110

  • User Avatar
    0
    statuscast created

    Just downloaded latest and still getting a TON of warnings on a clean build. May I please ask when these are going to be addressed? They point to potentially core issues that we would like to see fixed before merging the latest in to our code base.

    1>------ Build started: Project: SC.Core.Shared, Configuration: Debug Any CPU ------ 1>SC.Core.Shared -> C:\src\aspnet-core\src\SC.Core.Shared\bin\Debug\netstandard2.0\SC.Core.Shared.dll 2>------ Build started: Project: SC.Core, Configuration: Debug Any CPU ------ 3>------ Build started: Project: SC.Application.Shared, Configuration: Debug Any CPU ------ 2>SC.Core -> C:\src\aspnet-core\src\SC.Core\bin\Debug\netcoreapp2.2\SC.Core.dll 4>------ Build started: Project: SC.EntityFrameworkCore, Configuration: Debug Any CPU ------ 4>Migrations\Seed\Host\DefaultSettingsCreator.cs(26,17,26,20): warning CS0162: Unreachable code detected 4>SC.EntityFrameworkCore -> C:\src\aspnet-core\src\SC.EntityFrameworkCore\bin\Debug\netcoreapp2.2\SC.EntityFrameworkCore.dll 4>Done building project "SC.EntityFrameworkCore.csproj". 5>------ Build started: Project: SC.Migrator, Configuration: Debug Any CPU ------ 3>SC.Application.Shared -> C:\src\aspnet-core\src\SC.Application.Shared\bin\Debug\netstandard2.0\SC.Application.Shared.dll 6>------ Build started: Project: SC.Application, Configuration: Debug Any CPU ------ 7>------ Build started: Project: SC.GraphQL, Configuration: Debug Any CPU ------ 8>------ Build started: Project: SC.Application.Client, Configuration: Debug Any CPU ------ 9>------ Build started: Project: SC.ConsoleApiClient, Configuration: Debug Any CPU ------ 8>C:\src\aspnet-core\src\SC.Application.Client\SC.Application.Client.csproj : warning NU1701: Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 9>Program.cs(41,31,41,46): warning CS0618: 'DiscoveryClient' is obsolete: 'This type will be deprecated or changed in a future version. It is recommended that you switch to the new extension methods for HttpClient. They give you much more control over the HttpClient lifetime and configuration. See the docs here: https://identitymodel.readthedocs.io' 9>Program.cs(47,39,47,50): warning CS0618: 'TokenClient' is obsolete: 'This type will be deprecated or changed in a future version. It is recommended that you switch to the new extension methods for HttpClient. They give you much more control over the HttpClient lifetime and configuration. See the docs here: https://identitymodel.readthedocs.io' 5>SC.Migrator -> C:\src\aspnet-core\src\SC.Migrator\bin\Debug\netcoreapp2.2\SC.Migrator.dll 9>SC.ConsoleApiClient -> C:\src\aspnet-core\test\SC.ConsoleApiClient\bin\Debug\netcoreapp2.2\SC.ConsoleApiClient.dll 9>Done building project "SC.ConsoleApiClient.csproj". 8>SC.Application.Client -> C:\src\aspnet-core\src\SC.Application.Client\bin\Debug\netstandard2.0\SC.Application.Client.dll 8>Done building project "SC.Application.Client.csproj". 10>------ Build started: Project: SC.Mobile.Shared, Configuration: Debug Any CPU ------ 10>C:\src\aspnet-core\src\SC.Mobile.Shared\SC.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl 1.1.6' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnet-core\src\SC.Mobile.Shared\SC.Mobile.Shared.csproj : warning NU1701: Package 'Microsoft.Bcl.Async 1.0.165' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnet-core\src\SC.Mobile.Shared\SC.Mobile.Shared.csproj : warning NU1701: Package 'modernhttpclient 2.4.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\src\aspnet-core\src\SC.Mobile.Shared\SC.Mobile.Shared.csproj : warning NU1701: Package 'PCLStorage 1.0.2' was restored using '.NETPortable,Version=v0.0,Profile=Profile259, .NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. 10>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2114,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ImageCircle.Forms.Plugin.Abstractions". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 7>SC.GraphQL -> C:\src\aspnet-core\src\SC.GraphQL\bin\Debug\netcoreapp2.2\SC.GraphQL.dll 6>SC.Application -> C:\src\aspnet-core\src\SC.Application\bin\Debug\netcoreapp2.2\SC.Application.dll 11>------ Build started: Project: SC.Web.Core, Configuration: Debug Any CPU ------ 12>------ Build started: Project: SC.Test.Base, Configuration: Debug Any CPU ------ 10>Controls\HideableToolbarItem.cs(10,60,10,172): warning CS0618: 'BindableProperty.Create<TDeclarer, TPropertyType>(Expression<Func<TDeclarer, TPropertyType>>, TPropertyType, BindingMode, BindableProperty.ValidateValueDelegate<TPropertyType>, BindableProperty.BindingPropertyChangedDelegate<TPropertyType>, BindableProperty.BindingPropertyChangingDelegate<TPropertyType>, BindableProperty.CoerceValueDelegate<TPropertyType>, BindableProperty.CreateDefaultValueDelegate<TDeclarer, TPropertyType>)' is obsolete: 'Create<> (generic) is obsolete as of version 2.1.0 and is no longer supported.' 10>Controls\CardView.cs(14,17,14,29): warning CS0618: 'Frame.OutlineColor' is obsolete: 'OutlineColor is obsolete as of version 3.0.0. Please use BorderColor instead.' 10>SC.Mobile.Shared -> C:\src\aspnet-core\src\SC.Mobile.Shared\bin\Debug\netstandard2.0\SC.Mobile.Shared.dll 10>Done building project "SC.Mobile.Shared.csproj". 12>SC.Test.Base -> C:\src\aspnet-core\test\SC.Test.Base\bin\Debug\netcoreapp2.2\SC.GraphQL.Test.Base.dll 13>------ Build started: Project: SC.Tests, Configuration: Debug Any CPU ------ 14>------ Build started: Project: SC.GraphQL.Tests, Configuration: Debug Any CPU ------ 13>SC.Tests -> C:\src\aspnet-core\test\SC.Tests\bin\Debug\netcoreapp2.2\SC.Tests.dll 11>SC.Web.Core -> C:\src\aspnet-core\src\SC.Web.Core\bin\Debug\netcoreapp2.2\SC.Web.Core.dll 15>------ Build started: Project: SC.Web.Host, Configuration: Debug Any CPU ------ 16>------ Build started: Project: SC.Web.Public, Configuration: Debug Any CPU ------ 14>SC.GraphQL.Tests -> C:\src\aspnet-core\test\SC.GraphQL.Tests\bin\Debug\netcoreapp2.2\SC.GraphQL.Tests.dll 15>SC.Web.Host -> C:\src\aspnet-core\src\SC.Web.Host\bin\Debug\netcoreapp2.2\SC.Web.Host.dll 15>SC.Web.Host -> C:\src\aspnet-core\src\SC.Web.Host\bin\Debug\netcoreapp2.2\SC.Web.Host.Views.dll 16>SC.Web.Public -> C:\src\aspnet-core\src\SC.Web.Public\bin\Debug\netcoreapp2.2\SC.Web.Public.dll 16>SC.Web.Public -> C:\src\aspnet-core\src\SC.Web.Public\bin\Debug\netcoreapp2.2\SC.Web.Public.Views.dll ========== Build: 16 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

  • User Avatar
    0
    maliming created
    Support Team

    This PR fix is that the project is web instead of Mobile.

  • User Avatar
    1
    ryancyq created
    Support Team

    @maliming there is another PR to fix some of the warnnings on mobile solution

    https://github.com/aspnetzero/aspnet-zero-core/pull/2376

  • User Avatar
    0
    maliming created
    Support Team

    @ryancyq awesome!

  • User Avatar
    0
    rvanwoezik created

    @ryancyq Thnx!