msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

VS 2022 - Only JSON files are copied to the bin folder after Solution build

Open argelj289 opened this issue 3 years ago • 0 comments

Issue Description

Is there a reason why the project build don't include the other files generated by Angular CLI's ng build?

it only includes JSON files but the other files e.g. JS files are not included on the BIN folder

Refer to related link below:

https://stackoverflow.com/questions/73717625/asp-net-razor-pages-angular-dist-files-not-copying-to-bin-folder?noredirect=1#comment130193108_73717625

https://stackoverflow.com/questions/73699810/asp-net-razor-pages-dist-folder-getting-removed-during-build

Steps to Reproduce

Steps:

  • Open project in VS 2022 preview
  • execute Solution build so that the csproj that contains NPM commands will generate the Angular 14 build files
  • Wait for build to finish
  • Check bin folder

I tried this sample below and changed the value of it to net6.0 and just removed the target named "CopyPartials" from the csproj upon pulling the source code: https://github.com/AlahmadiQ8/RazorPagesAngular

Expected Behavior

Angular 14 build files to be included on ASP.NET Razor Pages build files

Actual Behavior

Angular 14 build files not included on ASP.NET Razor Pages build files and only sees JSON files on the BIN folder

Analysis

I don't know where the fault is. its beyond my knowledge

Versions & Configurations

argelj289 avatar Sep 16 '22 05:09 argelj289