Base solution for your next web application

Activities of "20summers"

Question

I am creating my first Create/Edit Modal

I keep on getting ar error on the following line: var project = input.MapTo<Project>();

I have confirmed there is definitely data that is populated in input

public class CreateOrUpdateProjectDto 
    {
               public ProjectEditDto Project { get; set; }
    }

 [AutoMapFrom(typeof(Project))]
        public class ProjectEditDto 
        {

            public int? Id { get; set; }

            public string Name { get; set; }

            public string Summary { get; set; }

            public  string ProjectNumber { get; set; }

            public  string FinanceReference { get; set; }

            public  DateTime? RegistrationDateTime { get; set; }

            public  DateTime? StartonSiteDateTime { get; set; }

            public  DateTime? ActualCompletionDateTime { get; set; }

            public  DateTime? EstimatedCompletionDateTime { get; set; }

            public  string ProjectGuid { get; set; }

            public  int? ProjectTypeId { get; set; }

            public string ProjectTypeType { get; set; }

            public string ProjectTypeText { get; set; }
    }


 [AbpAuthorize(AppPermissions.Pages_Tenant_Projects_Create)]
        public async Task CreateOrUpdateProject(CreateOrUpdateProjectDto input)
        {
            if (!input.Project.Id.HasValue)
            {
                await CreateProjectAsync(input);
            }
            else
            {
                await EditProjectAsync(input);
            }

        }

        protected virtual async Task CreateProjectAsync(CreateOrUpdateProjectDto input)
        {
            var project = input.MapTo<Project>();
            await _projectRepository.InsertAsync(project);
        }

Hi,

Anyone setup internal mailing features that you would be willing to share? :) Thx

I have just purchased the template. When I open it in VS2017 I get the following messages:

Severity Code Description Project File Line Suppression State Error Package Abp.RedisCache 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.RedisCache 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.ProjectModel 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.ProjectModel 4.0.0-rtm-2283 supports:

  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.Versioning 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.Versioning 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.0 (.NETStandard,Version=v1.0) Error Package NuGet.Common 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Common 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Zero.EntityFramework 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Zero.EntityFramework 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.ProjectModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.ProjectModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.Frameworks 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.Frameworks 4.0.0-rtm-2283 supports:
  • net40-client (.NETFramework,Version=v4.0,Profile=Client)
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Microsoft.Extensions.DependencyModel 1.0.3 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Microsoft.Extensions.DependencyModel 1.0.3 does not support any target frameworks. Error Package Abp.EntityFramework 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.EntityFramework 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.EntityFramework.Common 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.EntityFramework.Common 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.Web.SignalR 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Web.SignalR 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Frameworks 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.Frameworks 4.0.0-rtm-2283 supports:
  • net40-client (.NETFramework,Version=v4.0,Profile=Client)
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.TestBase 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.TestBase 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error One or more packages are incompatible with .NETFramework,Version=v4.6.1. Error Package NuGet.Repositories 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.Repositories 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.Repositories 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Repositories 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Web.Common 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Web.Common 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.LibraryModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.LibraryModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.AspNetCore 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.AspNetCore 1.5.1 supports: net461 (.NETFramework,Version=v4.6.1) Error Package Abp.Castle.Log4Net 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Castle.Log4Net 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.RedisCache 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.RedisCache 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.LibraryModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.LibraryModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Castle.Log4Net 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Castle.Log4Net 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Microsoft.Extensions.Logging 1.1.0 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.Logging 1.1.0 supports: netstandard1.1 (.NETStandard,Version=v1.1) Error Package Microsoft.DotNet.PlatformAbstractions 1.0.3 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Microsoft.DotNet.PlatformAbstractions 1.0.3 does not support any target frameworks. Error Package Abp.HangFire 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.HangFire 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Microsoft.DotNet.PlatformAbstractions 1.0.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.DotNet.PlatformAbstractions 1.0.3 does not support any target frameworks. Error Package NuGet.Configuration 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Configuration 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package System.Security.Cryptography.ProtectedData 4.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package System.Security.Cryptography.ProtectedData 4.0.0 supports:
  • monoandroid10 (MonoAndroid,Version=v1.0)
  • monotouch10 (MonoTouch,Version=v1.0)
  • xamarinios10 (Xamarin.iOS,Version=v1.0)
  • xamarinmac20 (Xamarin.Mac,Version=v2.0)
  • xamarintvos10 (Xamarin.TVOS,Version=v1.0)
  • xamarinwatchos10 (Xamarin.WatchOS,Version=v1.0) Error Package NuGet.Packaging.Core 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Packaging.Core 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.RuntimeModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.RuntimeModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Zero.EntityFramework 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Zero.EntityFramework 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Packaging 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Packaging 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.AspNetCore 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.AspNetCore 1.5.1 supports: net461 (.NETFramework,Version=v4.6.1) Error Package Abp.HangFire 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.HangFire 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.Owin 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Owin 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.EntityFramework.Common 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.EntityFramework.Common 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Versioning 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.Versioning 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.0 (.NETStandard,Version=v1.0) Error Package NuGet.Frameworks 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Frameworks 4.0.0-rtm-2283 supports:
  • net40-client (.NETFramework,Version=v4.0,Profile=Client)
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error One or more packages are incompatible with .NETFramework,Version=v4.6.1 (win7-x86). Error Package NuGet.RuntimeModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.RuntimeModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error One or more packages are incompatible with .NETCoreApp,Version=v1.0. Error Package Abp.Zero.AspNetCore 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Zero.AspNetCore 1.5.1 supports: net461 (.NETFramework,Version=v4.6.1) Error Package Abp.Zero 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Zero 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package log4net 2.0.8 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package log4net 2.0.8 supports:
  • net20 (.NETFramework,Version=v2.0)
  • net35 (.NETFramework,Version=v3.5)
  • net35-client (.NETFramework,Version=v3.5,Profile=Client)
  • net40 (.NETFramework,Version=v4.0)
  • net40-client (.NETFramework,Version=v4.0,Profile=Client)
  • net45 (.NETFramework,Version=v4.5) Error Package NuGet.Versioning 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Versioning 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.0 (.NETStandard,Version=v1.0) Error Package Hangfire.Core 1.6.10 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Hangfire.Core 1.6.10 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.ProjectModel 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.ProjectModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.DependencyResolver.Core 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Owin 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Owin 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.RuntimeModel 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.RuntimeModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Web.SignalR 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Web.SignalR 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.Zero.AspNetCore 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Zero.AspNetCore 1.5.1 supports: net461 (.NETFramework,Version=v4.6.1) Error Package Microsoft.Extensions.DependencyModel 1.0.3 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Microsoft.Extensions.DependencyModel 1.0.3 does not support any target frameworks. Error Package log4net 2.0.8 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package log4net 2.0.8 supports:
  • net20 (.NETFramework,Version=v2.0)
  • net35 (.NETFramework,Version=v3.5)
  • net35-client (.NETFramework,Version=v3.5,Profile=Client)
  • net40 (.NETFramework,Version=v4.0)
  • net40-client (.NETFramework,Version=v4.0,Profile=Client)
  • net45 (.NETFramework,Version=v4.5) Error Package NuGet.LibraryModel 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.LibraryModel 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.Zero 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.Zero 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Protocol.Core.v3 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Protocol.Core.v3 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Abp.EntityFramework 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.EntityFramework 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.AutoMapper 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.AutoMapper 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Abp.Web.Common 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.Web.Common 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package Microsoft.Extensions.DependencyModel 1.0.3 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.Extensions.DependencyModel 1.0.3 does not support any target frameworks. Error Package Abp.AutoMapper 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package Abp.AutoMapper 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.Protocol.Core.Types 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.Protocol.Core.Types 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package NuGet.Repositories 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package NuGet.Repositories 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Hangfire.Core 1.6.10 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Hangfire.Core 1.6.10 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3) Error Package Microsoft.DotNet.PlatformAbstractions 1.0.3 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Microsoft.DotNet.PlatformAbstractions 1.0.3 does not support any target frameworks. Error Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 is not compatible with net461 (.NETFramework,Version=v4.6.1) / win7-x86. Package NuGet.Packaging.Core.Types 4.0.0-rtm-2283 supports:
  • net45 (.NETFramework,Version=v4.5)
  • netstandard1.3 (.NETStandard,Version=v1.3)
Showing 11 to 13 of 13 entries