Skip to content

When I create WebApi project and using Single-file deployment report partial api 404 #63611

@lianggx

Description

@lianggx

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi, every one.

When I create WebApi project and using Single-file deployment report partial api 404.

I found issues of 2019,it same to me: #17079.

Could you like to tell me if this issue has been fixed in .net9.0?

The project version of .net 9.0, it pure WebApi, I just Publish a single-file app in visual studio 2022.

the below is publish config

<PropertyGroup> <TargetFramework>net9.0</TargetFramework> <Nullable>enable</Nullable> <ImplicitUsings>enable</ImplicitUsings> <RootNamespace>Railway.WebHosting</RootNamespace> <GenerateDocumentationFile>True</GenerateDocumentationFile> <PublishSingleFile>true</PublishSingleFile> <SelfContained>true</SelfContained> <RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers> </PropertyGroup>

FolderProfile.pubxml

`

false false true Release Any CPU FileSystem bin\Release\net9.0\win-x64\publish\ FileSystem <_TargetId>Folder net9.0 win-x64;win-x86 e9d4380c-6c97-0a11-6471-41ad64bd2eba true ` Image Image Image

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions