Build emits outputs to wrong directory on ASP.NET Core
See original GitHub issueI’m submitting a bug report
- Library Version: 0.22.0
Please tell us about your environment:
-
Operating System: Windows 8.1
-
Node Version: 6.5.0
- NPM Version: 3.10.9
-
Browser: all
-
Language: all
Current behavior:
Running au build
produces the bundles in the ./scripts folder instead of ./wwwroot/scripts in ASP.NET Core projects
Expected/desired behavior:
- au new --here
- Choose 2 (ASP.NET Core)
- Choose 1 or 2 (Babel or TypeScript)
- Choose 1 (No CSS pre-processor)
- Choose 1 (Yes for unit testing)
- Choose 1 (Create project)
- Choose 1 (Install dependencies)
- run
au build
- a ‘scripts’ folder is created with the bundles in the current folder, not in the wwwroot folder
-
What is the expected behavior? The build output should be in ./wwwroot/scripts This can be fixed after creating the project by changing the
build.targets.output
in aurelia.json from ‘scripts’ to ‘wwwroot/scripts’ -
What is the motivation / use case for changing the behavior? index.html cannot load the bundles (404) and the app does not work
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Change the build output directory - Visual Studio (Windows)
To change the build output directory using the legacy .NET Project Designer or C++ property pages. Right-click on the project node in ...
Read more >ASP.NET Core Change Build directory - Stack Overflow
Does anyone know how to change the Build directory of an ASP.NET Core project? In the project settings under build, the output path...
Read more >.NET Core 6 Found multiple publish output files with the same ...
Describe the bug On .NET Core 6 where when publishing with Web Deploy via Visual Studio 2022. I'm receiving the following error: Error...
Read more >.NET Core SDK Projects: Controlling Output Folders and ...
In Markdown Monster Addins compile into a non-standard folder in the main EXE's output folder, so when building the project I want my...
Read more >Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The fix here for asp.net using --here flag -
scripts
towwwroot/scripts
a. Changeindex
towwwroot/index.html
.
to./wwwroot
I’ll try to PR this and test it but if anyone wants to steal that and PR it it is working for me.
Yep, I think #418 fixed this (aurelia.json script and index properties contain wwwroot now). The baseURL is still incorrect for new apps though, but that is tracked in https://github.com/aurelia/cli/issues/531