I have two projects in the same solution, Project.Server.csproj
and Project.Client.esproj
. Folder structure looks like this:
Project
│ Project.Sln
│
└───src
│ │ Directory.Build.props
│ │
│ └───Project.Server
│ │ │ Project.Server.csproj
│ │ │ ...
│ │
│ └───Project.Client
│ │ Project.Client.esproj
│ │ ...
│
└───bin
│
└───obj
First one is compiled using NativeAOT. The last one uses Microsoft.VisualStudio.JavaScript.SDK
SDK, producing output in Project/src/Project.Client/dist
folder.
The question is, how to make MSBuild copy files from .esproj
to publish directory when dotnet publish
is called on the entire solution from command line? In my case, publish directory is Project/bin/$(Configuration)/$(RuntimeIdentifier)/publish
and I don’t see any way of adjusting it. Perhaps it is possible to override the path of NativeAOT artifacts?