Questions tagged [aspnet-compiler]

165 questions
5
votes
0 answers

How can I override solution's aspnetcompiler.targetpath from the commandline?

I'm calling MSBUILD.exe \pathtosolution\solution.sln /p:Configuration=Release /p:OutputDir=\pathfordlls\ /p:WebProjectOutputDir=\pathtocompileto\ When it finishes compiling the DLLs into the correct directory and calls aspnet_compiler,I am…
ff0000e2
  • 417
  • 7
  • 15
5
votes
1 answer

Force a tool version with MSBuild from inside the file?

I've moved my project over to .NET 4.0 recently, and am having some trouble running the ASP.NET compiler inside of my build. This doesn't work because MSBuild by default uses an old tools version when running the ASP.NET Compiler. I've been able to…
Dave Markle
  • 95,573
  • 20
  • 147
  • 170
5
votes
3 answers

Publish website, aspnet_compiler null reference exception

I'm having trouble publishing a solution through the command line. It intermittently fails on various projects, but every so often succeeds. I get both the null reference error and "The application domain in which the thread was running has been…
Nelson Rothermel
  • 9,436
  • 8
  • 62
  • 81
5
votes
3 answers

What is the advantage of the ASP.NET precompilation?

How useful is it to use Aspnet_compiler.exe instead of conventional Publish via Visual Studio? And what about resource (resx) files?
Bastien Vandamme
  • 17,659
  • 30
  • 118
  • 200
5
votes
1 answer

Why does aspnet_compiler need write access to the Temporary ASP.NET Files folder on my build server?

We use a CI server (Jenkins) to compile an ASP.NET project and deploy to our web servers. I want to precompile the site before deployment to increase performance, so I've set the PrecompileBeforePublish property in the Publish Profile…
Brant Bobby
  • 14,956
  • 14
  • 78
  • 115
5
votes
2 answers

Adding custom attributes to MSBuild Task

I have TeamCity running MSBuild task for an ASP.NET MVC 3 application. Now every now and then (seemingly randomly) it throws "ASPNETCOMPILER : error ASPRUNTIME: The application domain in which the thread was running has been unloaded.". It happens…
Dawid Kowalski
  • 1,197
  • 1
  • 9
  • 23
4
votes
3 answers

How do I get Team Build 2010 to publish web applications as non-updatable?

I'm trying to switch our build from CruiseControl.NET running a custom .msbuild file to Team Build 2010. The application being compiled is a VS2008 solution with numerous projects, two of which are web projects. Using DefaultTemplate.xaml, it…
Andrew
  • 14,325
  • 4
  • 43
  • 64
4
votes
1 answer

aspnet_compiler on Mono

I'm trying to write a build script for a ASP.NET MVC 3 web site for publishing on Mono. Although some devs use Windows for development, the site must be built on Mono, as the build and Web servers are running OS X. I'm using xbuild to run MSBuild…
Ronald Zarīts
  • 11,819
  • 8
  • 39
  • 42
4
votes
1 answer

Should I use the aspnet_compiler with a website project?

We use Nant and devenv.com to build all our assemblies including the website project. Then we would use aspnet_compiler.exe to compile the published website. Is this the correct way to do it? Historically, we always used the aspnet_compiler with…
jaffa
  • 26,770
  • 50
  • 178
  • 289
4
votes
1 answer

aspnet_compiler as a post-build event is encountering IIS error on an empty MVC3 app

I am running aspnet_compiler as a post-build event, using the following command: aspnet_compiler.exe -v / -p \ I am getting this error on compile: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond…
awright
  • 1,224
  • 1
  • 13
  • 23
4
votes
0 answers

Precompiling Razor Views in class library

Using VS2015 and MVC 5.2.3, I am trying to shift areas of functionality including Razor views to class libraries, so that I can share it between multiple projects. I use the MvcBuildViews facility as typically described, and setup like the…
stephen
  • 303
  • 1
  • 8
4
votes
1 answer

ASP.NET compiler fails with an XmlSerializers error, during web-deployment project

We're using Visual Studio 2010 Web deployment projects to compile web-application websites during our build. Visual Studio 2010 is not installed on our build-agents. We get an error (see below) during the build relating to the…
Peter Mounce
  • 4,105
  • 3
  • 34
  • 65
4
votes
5 answers

aspnet_compiler looking for jsharp code provider on a C# mvc2 application

I am compiling an MVC2 application in Visual Studio 2010 on Windows 7 64-bit. I am running the following as a post-build event command: aspnet_compiler.exe -v / -p \ It results in the following error:- The CodeDom provider type…
awright
  • 1,224
  • 1
  • 13
  • 23
4
votes
0 answers

Improving the time it takes to precompile a large ASP.NET WebForms application

Consider having large ASP.NET web forms application with thousands of pages and controls with thousands of page views per second. The application was originally written in ASP.NET 1.0 and have been maintained since then. Today it runs using ASP.NET…
bloudraak
  • 5,902
  • 5
  • 37
  • 52
4
votes
2 answers

aspnet_compiler and msbuild.exe

I am pretty new to msbuild and aspnet_compiler. I am using aspnet_compiler to compile web application project. Now I just saw the MSBuild.exe and noticed that its builds my website into the /mywebsite/precompiledWeb folder. Now why do I need to use…
vikasde
  • 5,681
  • 10
  • 45
  • 62
1 2
3
10 11