ASP.NET core project does not create executable in published files when referenced by another project in .net 9.0
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
Hello team, we are seeing an issue wherein one of our ASP.NET core app referencing another app when published does not generate the executable expected for the referenced project in the publish folder. This has only started to happen after we moved to .net 9.0.
Following are the .csproj of the primary and referenced apps.
Primary:
```
Exe
net8.0
enable
enable
win-x64
true
```
Referenced:
```
net8.0
enable
enable
win-x64
true
```
The way we publish the primary App is by running the command:
`dotnet publish .\PrimaryExeApp\PrimaryExeApp.csproj --no-restore -c Release -r win-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishReadyToRunComposite=true -o ./publish8.0 /warnaserror`
Adding screenshot for the publish folder for .net8.0 and .net9.0
.net8.0
.net9.0
Since our primary app depends on the executable generated by the referenced app, we expect the same publish behavior we were seeing in .net8.
Ask: Steps, change on how we can get the executable of a referenced project when publishing the primary app referencing the project.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.