Skip to content

Run .NET Framework project on VS code #23203

Open
@mHsuann

Description

@mHsuann

As title, I have generated a C# project on Visual Studio, and it uses .Net Framework.
However, now I want to edit this project on VS Code.

When I edit on VS Code, there is some trouble as below:

  1. After executing dotnet build, the message said 'Build success' but I start to debug by .NET Core Launch (Console) with 'insert-target-framework-here insert-project-name-here .dll' does not exist' error.

-> Building .Net Framework will generate <project-name>.exe in Debug folder
-> Building .Net Core will generate <project-name>.dll in Debug folder

  1. .Net Core cannot run .exe directly

I have viewed the similar issue #1912, but I am still not sure how to do for that.

Is there any idea or solution for that?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions