dotnet / dotnet/aspnetcore

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

Open
#63,611 0 comments 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] 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: https://github.com/dotnet/aspnetcore/issues/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
`

net9.0
enable
enable
Railway.WebHosting
True
true
true
win-x64;win-x86

`

# 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.