I have a very large web site solution in visual studio 2010 with lots of web forms and user controls. The problem is that every time I compile this web site, it tooks more that 5 minutes to complete. If there was an error, when I fix it and build again, compile starts from scratch and compiles previously compiled components.
I tried the command line command asp_compiler.exe it tooks only 10 seconds.
So, what is the difference between visual studio compile and asp_compiler command and how can I speed up visual studio compiler?
asp_compiler isn't doing what vs is doing.
Reasons
Slow machine is one.
Antivirus getting in the way, put source in a specific path and exclude it for A/V
Break your code up in to seperate dlls, and minimise the number of places one can touch the other.
in aspnet_compiler, there is a command line -c that forces aspnet_compiler to compile from scratch, I thought visual studio will add this switch (parameter) in calling aspnet_compiler
but I do not how to force vs to not do that
Related
I'm trying to find the location Visual Studio puts ASP.NET applications when they're compiled and running. I ask because when I run my project from VS it's running an old branch I was looking at yesterday instead of the branch I have open in VS to work on (which is updated). I remember finding the location before and deleting these files causing VS to re-make (or recompile?) them. So where is the compiled code kept?
They go here:
%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files
Link
Every site my asp.net site starts, Visual Studio C# Command line compiler starts running. It takes more CPU space and continue to run for few hours.
While it is running my sites does not open.
I facing this problem very badly and need some help.
My Server with Xenon CPU, 8 GB Ram and windows 2012 installed on it.
Thanks
Are you doing compile at run-time? Consider pre-compiling the application to solve this problem.
Refer: https://msdn.microsoft.com/en-us/library/aa983464(v=vs.110).aspx
I have an asp.net 4.0 project which uses visual studio publishing. Is there a way I can speed it up possibly by forcing multi-proc build?
It is using aspnet_compiler and aspnet_merge. I couldn't see any cmd line switches for multi-thread/ multi-proc support.
I already have an SSD and it didn't seem to speed up the compile time much when it was added.
http://msdn.microsoft.com/en-us/library/bb385193.aspx
I might be wrong, but if you build before you publish and do not make changes you should not have to re-build during publish. Therefore, using information from the above article you should be able to build it much faster.
I am working on a project with a build that is automated using NAnt. The automated build includes NAnt tasks to clean the machine, including deleting and re-creating the virtual directory, clearing out VSWebCache, etc. Once the machine is reset, it attempts to compile the site with this:
<exec program="${visualstudio.install.dir}\devenv.com" commandline="SolutionFile.sln" failonerror="true"/>
The problem is that the automated build locks up at this point.
If I open the .sln file interactively, the first thing that happens is Visual Studio prompts me with a dialog box. I suspect this dialog box is "opening" (invisibly) when I run the NAnt script and I can't click on it to proceed.
The dialog message is:
Microsoft Visual Studio
The web (URL) is currently configured for use with ASP.NET 1.1. Web project (name) is targeting ASP.NET 4.0; if not configured some features may make incorrect assumptions, and pages designed with the tool may not render correctly.
Would you like the site to be configured for use with ASP.NET 4.0?
I do in fact have 3 different versions of .NET on my machine-- I work on multiple projects. I can't configure the site ahead of time because the build script will blow away my configuration anyway. I guess what I need is either an automated way to accept the dialog (as if I clicked the YES button) or a NAnt task that will automatically set up the vdir to be an ASP.NET 4.0 application.
I do have free reign to modify the build script as I see fit, but I cannot simply remove the portion that resets the machine-- our build box is shared with other projects and we have to reset everything to a known good state before running our compile.
Use MSBUILD directly, don't use devenv. It's the full IDE, and all you need is to build.
Hi i developed a small code in sharepoint which will copy one list items to another list,when i debug in visual studio to track error ,the break point isn't firing .Initially it was working fine but later on i did not know happened,it is not working,i did all the ways like (1)modifying in web.config file ,(2)placing GAC (3)Adding PDF in to GAC MSIL Folder(4)attaching process to the managed code (5)i have copied DLL and PDB file in virtual directory of my application ,tried all the ways,
But non was worked..if any one have the solution to this issue kindly let me know ,i am very happy person if i get one..i lost three days on this issue
thank you
Balu
Make sure you perform an IIS reset after each build. The GAC code is cached.
In VS Post-Build event, I have this in my projects.
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe" /i $(TargetPath)
iisreset
This will perform the task for you. Then just refresh the site and attach to the w3wp.exe for the web site.