question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build emits outputs to wrong directory on ASP.NET Core

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
plwalterscommented, Jan 12, 2017

The fix here for asp.net using --here flag -

  1. aurelia.json (all locations) a. Change scripts to wwwroot/scripts a. Change index to wwwroot/index.html
  2. run.js a. Change baseUrl from . 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.

0reactions
JeroenVinkecommented, Mar 12, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found