release

Best practices with Nuget: Debug or Release?

时光毁灭记忆、已成空白 提交于 2019-11-26 15:13:05
问题 Currently, I package the release builds with Nuget for the official builds to nuget.org, but I package the debug builds with Nuget for the symbol source pushes to symbolsource.org. EDIT: (Jon Skeet, with some bias from Noda Time development) NuGet now supports pushing to both NuGet gallery and symbolsource.org (or similar servers), as documented. Unfortunately, there are two contradictory requirements here: When just using a library without any need for debugging, you really want a release

C# if/then directives for debug vs release

≯℡__Kan透↙ 提交于 2019-11-26 14:49:25
In Solution properties, I have Configuration set to "release" for my one and only project. At the beginning of the main routine, I have this code, and it is showing "Mode=Debug". I also have these two lines at the very top: #define DEBUG #define RELEASE Am I testing the right variable? #if (DEBUG) Console.WriteLine("Mode=Debug"); #elif (RELEASE) Console.WriteLine("Mode=Release"); #endif My goal is to set different defaults for variables based on debug vs release mode. Remove the #define DEBUG in your code. Set preprocessors in the build configuration for that specific build (DEBUG/_DEBUG

Remove PDB references from released file

℡╲_俬逩灬. 提交于 2019-11-26 14:24:22
问题 I use to take always a look at the final binary executable or dll after debugging and creating a file with any IDE. Now I am trying Visual C++ 2010, in the search for the best release, without trash or unnecessary references. So, I created a new solution with two projects: a executable and its dll. VC++ created a lot of intermediary files between the code and the final file. I opened the .exe and the .dll with a hexadecimal editor and saw something that I don't like. Somewhere inside the file

How do I manage building a Lite vs Paid version of an iPhone app?

二次信任 提交于 2019-11-26 13:59:50
I'm starting to get to the point where I want to consider building a lite version of my iPhone app. I've found a few things on the web that talk about the process a bit, namely: http://developer.apple.com/tools/XCode/XCodeprojects.html http://www.pacificspirit.com/blog/2009/01/27/building_for_multiple_iphone_targets_in_xcode What I'm specifically interested in is simplifying the process of managing which files are included in the different versions of my app as I continually modify and enhance my paid for version. Original answer is from the days before in app purchase. The correct answer now

Programmatically detecting Release/Debug mode (.NET) [duplicate]

天涯浪子 提交于 2019-11-26 13:37:00
Possible Duplicate: How to find out if a .NET assembly was compiled with the TRACE or DEBUG flag Possible Duplicate: How to idenfiy if the DLL is Debug or Release build (in .NET) What's the easiest way to programmatically check if the current assembly was compiled in Debug or Release mode? Davy Landman bool isDebugMode = false; #if DEBUG isDebugMode = true; #endif If you want to program different behavior between debug and release builds you should do it like this: #if DEBUG int[] data = new int[] {1, 2, 3, 4}; #else int[] data = GetInputData(); #endif int sum = data[0]; for (int i= 1; i <

What Git branching models work for you?

丶灬走出姿态 提交于 2019-11-26 12:33:32
问题 Our company is currently using a simple trunk/release/hotfixes branching model and would like advice on what branching models work best for your company or development process. Workflows / branching models Below are the three main descriptions of this I have seen, but they are partially contradicting each other or don\'t go far enough to sort out the subsequent issues we\'ve run into (as described below). Thus our team so far defaults to not so great solutions. Are you doing something better?

Objective-C Difference between setting nil and releasing

这一生的挚爱 提交于 2019-11-26 12:02:46
问题 I\'ve learned that in dealloc you do [object release]; but in viewDidUnload (in a UIViewController subclass) you do self.object = nil . What is really the difference because self.object = nil (we\'re assuming object is a (nonatomic, retain) property) retains nil (which does nothing) and then releases the old value and then the reference count is 0 right? 回答1: self.object = nil calls your setter, which will release the old value, set the member to nil , and possibly do other things (it's a

Asp.net release build vs debug build

*爱你&永不变心* 提交于 2019-11-26 11:37:28
问题 How do I determine if my app was compiled as \"release\" instead of \"debug\"? I went to VS 2008 Project Properties > Build and set the configuration from Debug to Release but I noticed no change? This is an ASP.NET project. 回答1: HttpContext.IsDebuggingEnabled 回答2: If you want to know if the dll was built in Debug mode, with the debug attributes, then your best bet is reflection. Taken from "How to tell if an existing assembly is debug or release": Assembly assembly = Assembly.GetAssembly

Google play console said “You can&#39;t edit this app until you create a new app release declaring sensitive permissions” how to fix it?

与世无争的帅哥 提交于 2019-11-26 11:13:49
问题 I couldn\'t publish my new released on google play console this morning. It has shown, \"You can\'t edit this app until you create a new app release declaring sensitive permissions\" And it does not provide the option to fix. Does anyone know how to fix it? 回答1: In my case Google removed my app from production, to be able to submit a new release without using the sms i had to: Retain the previous release (where i was using sms), Because of the first step the permission form appeared, I filled

Phonegap iOS 5.1 and localStorage

痞子三分冷 提交于 2019-11-26 10:57:34
问题 I was using localstorage for save one value in my App, that works with PhoneGap, but when Apple has released the new iOS 5.1, my App now doesn\'t save the value. Does anybody know how to solve this problem? Thank you very much!!! Edit: I put the code I was using: window.localStorage.setItem(\"login\", $(\'#login\').val()); I use it for save the value, and I use it for read the value: function onDeviceReady() { var login = window.localStorage.getItem(\"login\"); if (login != null) { $(\'#login