We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By default, when publishing an ASP.NET application to a remote server, the frontend static files will be copied to \wwwroot folder.
\wwwroot
In ASP.NET 6, I can change this remote folder when publishing by using this in my project .csproj
.csproj
Here will using \Public folder rather than the default \wwwroot
\Public
<ItemGroup> <DistFiles Include="$(SpaRoot)build\**" /> <ResolvedFileToPublish Include="@(DistFiles->'%(FullPath)')" Exclude="@(ResolvedFileToPublish)"> <RelativePath>Public\%(RecursiveDir)%(FileName)%(Extension)</RelativePath> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> <ExcludeFromSingleFile>true</ExcludeFromSingleFile> </ResolvedFileToPublish> </ItemGroup>
In .NET 8, it separated the client project using .esproj and server project .csproj, and there is no configuration to modify this setting.
.esproj
There may be a solution there but I can't find out, but if not, could consider having it in the future?
I am using ASP.NET 8 with React project on Windows 10 Application is published to remote Windows server 2019 via Web Deploy using Visual Studio 2022
The text was updated successfully, but these errors were encountered:
Same issue
Sorry, something went wrong.
No branches or pull requests
Is your feature request related to a problem? Please describe.
By default, when publishing an ASP.NET application to a remote server, the frontend static files will be copied to
\wwwroot
folder.In ASP.NET 6, I can change this remote folder when publishing by using this in my project
.csproj
Here will using
\Public
folder rather than the default\wwwroot
In .NET 8, it separated the client project using
.esproj
and server project.csproj
, and there is no configuration to modify this setting.Describe the solution you'd like
There may be a solution there but I can't find out, but if not, could consider having it in the future?
Additional context
I am using ASP.NET 8 with React project on Windows 10
Application is published to remote Windows server 2019 via Web Deploy using Visual Studio 2022
The text was updated successfully, but these errors were encountered: