Skip to content

Visual Studio 2022 with .net 6 throws error for lambda while deploying #1449

@karthickcse05

Description

@karthickcse05

Describe the issue

I installed Visual Studio 2022 enterprise with .net 6 and .net 7 . I created a simple server less lambda application using .net 6 framework

net6.0

"Runtime": "dotnet6",

but i am getting below error when i try to publish to aws lambda from Visual Studio. Any help is much appreciated over here :)

**error NU1202: Package Amazon.Lambda.AspNetCoreServer 8.0.0 is not compatible with net60 (.NETFramework,Version=v6.0). Package Amazon.Lambda.AspNetCoreServer 8.0.0 supports:

net6.0 (.NETCoreApp,Version=v6.0)
netcoreapp3.1 (.NETCoreApp,Version=v3.1)**
Moreover why here .net refers like .net60 and .net6.0 ?

Links

**error NU1202: Package Amazon.Lambda.AspNetCoreServer 8.0.0 is not compatible with net60 (.NETFramework,Version=v6.0). Package Amazon.Lambda.AspNetCoreServer 8.0.0 supports:

net6.0 (.NETCoreApp,Version=v6.0)
netcoreapp3.1 (.NETCoreApp,Version=v3.1)**
Moreover why here .net refers like .net60 and .net6.0 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis is a problem with documentation.module/aspnetcore-supportresponse-requestedWaiting on additional info and feedback. Will move to close soon in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions