1

In Command Prompt, I would use:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler -p "C:\Visual Studio 2013\myProjectFolder" -v /-u "C:\CompiledFilesFolder"
5
  • This should also work in PowerShell. What error do you get? Commented Nov 18, 2016 at 6:23
  • Not getting an error, Martin, thanks. Just wondered if it could be done - and how - in PowerShell. Commented Nov 18, 2016 at 6:45
  • How do I thank you here? Commented Nov 18, 2016 at 6:46
  • I will add an answer which you can accept using the green checkmark. Commented Nov 18, 2016 at 6:48
  • Yes, it works! Thanks! Commented Nov 18, 2016 at 6:51

1 Answer 1

1

Your code will also work in . Here is a slightly improved way to do it:

$aspnetCompiler = (Join-Path $env:windir 'Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler')
& $aspnetCompiler -p "C:\Visual Studio 2013\myProjectFolder" -v /-u "C:\CompiledFilesFolder"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.