dotnet / dotnet/aspnetcore

.NET 10 regression in publishing extra files

Open
#67,003 0 comments 1 reaction 0 assignees View on GitHub
area-middleware Regression
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

I am using Visual Studio to deploy ASP.NET Core website to IIS, presumably using MSDeploy. When targeting .NET 8, this causes files to be deployed to the server:

```xml


PreserveNewest

```

However, when I change the project to target .NET 10, these files do not get deployed. I tried `CopyToPublishDirectory`, I tried `Content`, I tried `Update`, but I just cannot figure out how to get them deployed. I did not see any breaking change notes in the .NET 10 release notes either. What trick am I missing?

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.