How to identify if the DLL is Debug or Release build (in .NET) [duplicate]

IMHO, The above application is really misleading; it only looks for the IsJITTrackingEnabled which is completely independent of whether or not the code is compiled for optimization and JIT Optimization. The DebuggableAttribute is present if you compile in Release mode and choose DebugOutput to anything other than “none”. You also need to define exactly what … Read more

When to use gradle.properties vs. settings.gradle?

settings.gradle The settings.gradle file is a Groovy script, just like the build.gradle file. Only one settings.gradle script will be executed in each build (in comparison to multiple build.gradle scripts in multi-project builds). The settings.gradle script will be executed before any build.gradle script and even before the Project instances are created. Therefore, it is evaluated against … Read more

leiningen – how to add dependencies for local jars?

Just use :resource-paths in your project.clj file. I use it, e.g. to connect to Siebel servers. Just created a resources directory in my project directory and copied the jar files in there. But of course you could use a more generic directory: (defproject test-project “0.1.0-SNAPSHOT” :description “Blah blah blah” … :resource-paths [“resources/Siebel.jar” “resources/SiebelJI_enu.jar”]) Then from … Read more

NuGet auto package restore does not work with MSBuild

If you are using Visual Studio 2017 or later which ships with MSBuild 15 or later, and your .csproj files are in the new PackageReference format, the simplest method is to use the new MSBuild Restore target. No-one has actually answered the original question, which is “how do I get NuGet packages to auto-restore when … Read more

Error – Android resource linking failed (AAPT2 27.0.3 Daemon #0)

The Android resource linking failed error can also appear if you have an error in any of your XML resources. In my case I was using the following line twice in one of my XML drawables in drawable folder: <?xml version=”1.0″ encoding=”UTF-8″?> <?xml version=”1.0″ encoding=”UTF-8″?> I removed the duplicate line and the error disappeared. The … Read more