Questions tagged [pre-compilation]
77 questions
2
votes
1 answer
What do I specify as the "target folder" parameter to ClientBuildManager constructor?
I'd like to experiment with the fourth parameter of ClientBuildManager class constructor that lets me specify the compilation options. The problem is I have to provide the third parameter that specifies the "target folder".
Previously I used the…

sharptooth
- 167,383
- 100
- 513
- 979
2
votes
1 answer
Rails 3.2 Carrierwave precompile error
I got a class AvatarUploader < Carrierwave::Uploader::Base which store User avatars in public/uploads dir:
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
version :main do
process :resize_to_limit…

Rustam Gasanov
- 15,290
- 8
- 59
- 72
1
vote
1 answer
Precompilation in rails 7
As in older versions of rails, in production, we used to precompile our assets first so that performance can be better while serving assets from public. But in rails 7, as default configuration says that you should use all your css , fonts, and…

Muhammad Ans
- 157
- 8
1
vote
3 answers
How to execute a single preprocessor directive in a C file
I have a main.c file containing one or more preprocessor macros defined:
#include
#define VALUE 12
int main(void) {
printf("This file is in version %s and contains value %d\n", VERSION, VALUE);
return 0;
}
I want to export a…

badbouille
- 46
- 5
1
vote
0 answers
linq to sql query precompilation
Depending on the value of search parameters linq can build different sql queries if there is conditional logic in the where clause.
How about taking advantage of query precompilation in this case and take the condition into the account? It looks…

mb666
- 443
- 7
- 16
1
vote
2 answers
Is the Publish option in Visual Studio considered pre-compilation for ASP.net Web applications?
I'm having trouble understanding when the site is considered "pre-compiled". As I understand what I've read, if I use the Publish or Build Deployment Package options from within Visual Studio then it is pre-compiling, but if I just use something…
user4903
1
vote
0 answers
Precompile part of the web application in .NET
Is it possible to precompile some of .cshtml, .ascx, .aspx files in my web application?
My website is built with CMS(Umbraco) and I do not want to include all umbraco files into project and precompile it. I would like to precompile only files that…

Ihor
- 299
- 1
- 11
1
vote
2 answers
calling precompiled module from another file
Primarirly I am c++ developer trying to use python for certain tasks for me.
I have made a python module in python 3.6 and got it pre-compiled in windows 7 using the following command
python -m py_compile myfile.py
using information from this…

AnotherDeveloper
- 2,161
- 2
- 23
- 27
1
vote
2 answers
How to disable JSP Compilation during runtime in tomcat
I need to disable jsp compilation during runtime. I already have pre-compiled all the jsp files into the product. In production environment I do not want any new jsp to run.

user3413804
- 21
- 5
1
vote
1 answer
How can I fix compilation for relative paths using StackExchange.Precompilation?
For https://github.com/StackExchange/StackExchange.Precompilation:
We have some shared views in separate library where we have installed StackExchange.Precompilation. We have to load those views along with the normal web project's views. We have the…

Nate Hitze
- 988
- 1
- 8
- 18
1
vote
0 answers
c# - Is it possible to check the target platform (winexe, exe, library and so on) during compilation
I found this MSDN help page
https://msdn.microsoft.com/en-us/library/swfss70d(v=vs.90).aspx
but this
#if TARGET = "library"
// Do something
#else
// Do something else
#endif
does not work.

bubi
- 6,414
- 3
- 28
- 45
1
vote
1 answer
How to run a script\executable before start debugging in VS2015?
I need to run a code generator before starting compilation\execution of my code in Visual Studio 2015.
Is there any way to add a script that will run my .bat.py file when I click "Start Local Debugger"?
I use UnrealEngine 4 and in my project there…

Artem Selivanov
- 1,867
- 1
- 27
- 45
1
vote
1 answer
Can I apply PL/SQL beautifer rules from command line?
Topic is self-explanatory.
My goal is to automate the process of code beautification, so a program like SQLPlus will compile code after it has been beautified.

Brian
- 203
- 2
- 3
- 13
1
vote
0 answers
Compilation error prevents definiton of library in CMake, but i can't seem to find the source of it
EDIT: I have found the reason why the plugins library is undefined: it simply fails to compile. That said, i still am having an hard time finding the root cause.
The CMakeError.log outputs this:
Determining if the pthread_create exist failed…

Miyu Edelfelt
- 11
- 3
1
vote
1 answer
Trouble Precompiling Views After Updating to .NET Framework 4.6
We are in the process of upgrading our ASP.Net (MVC 5) project from .NET Framework 4.5.2 to .NET Framework 4.6. We have not updated to MVC 6, yet.
We have the MvcBuildViews project property set to true. This has worked fine in the past, but after…

bopapa_1979
- 8,949
- 10
- 51
- 76