Posts

msbuild - Programmatically (using C#) determine current Visual Studio build configuration -

My Visual Studio 2013 C # app needs to programmatically determine whether another studio solution "Build mode "Or" Release "mode." Is there an API to accomplish this? Alternatively, I'm thinking of using the MSBield API to create and view a solution Was that the app is a symbol of debug or not? When you create an assembly in debug mode, the compiler automatically [assembly: Debuggable-additives] you can use reflection to see if this feature is present in the assembly or not. Take a look here for details on how to read the properties of assembly:

Generating Android build with Gitlab CI -

I have just installed Geethalab as a repository for my projects and I want to take advantage of their Gitlab CI system . After each commit I want to automatically debug and debug. I googled but I did not get anything as tutorials or similar cases. If someone can guide me in some way, then it will be good. Thank you! I just wrote a blog post. The fastest way can be with .gitlab-ci.yml with the following content: image: openjdk: 8-jdk variable: ANDROID_TARGET_SDK: "24" ANDROID_BUILD_TOOLS: "24.0.0" ANDROID_SDK_TOOLS: "24.4.1" before_script: - apt-get- - Some updates - yes - apt-get --quiet Install --yes wget tar unzip lib32stdc ++ 6 lib32z1 - wget --quiet --output-document = android-sdk.tgz https://dl.google.com / android / android-sdk_r $ {ANDROID_SDK_TOOLS} -linux. Tgz - tar --extract --gzip --file = android-sdk.tgz - echo wi | Android-sdk-linux / tools / android -silent update sdk --no-ui --all --filter android - $ {ANDROID_TARGET_SDK} -...

c# - How to turn a 3D array into multiple 2D arrays -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मेरे पास मूल्यों की एक सरणी है एक 3-डी सरणी में, [x, y, z] के रूप में संग्रहीत। एक 3-डी सरणी पिछले फ़ंक्शन के लिए उपयोगी है, लेकिन वर्तमान फ़ंक्शन में, मैं [x, y] सरणियों के 'z श्रृंखला' चाहूंगा क्या यह संभव है? मेरे पास सरणी इनपुट [x, y, z] है, और मैं इसे 2-डी सरणियों में फिर से करना चाहूंगा एक्स और वाई 2-डी सरणी के लिए मान हैं। var dict = नया शब्दकोश & lt; int, double [,] & gt; (); फाइलें var dict = नया शब्दकोश & lt; int, double [,] & gt; (); (एन्टी फाइलें = 0; फाइलें & lt; input.GetLength (2); फ़ाइलें ++) {डबल [,] दो डी = नया डबल [इनपुट। गैटलांटा (0), इनपुट। गैटल लैंप (1)]; के लिए (int x = 0; x & lt; input.GetLength (0); x ++) के लिए (int y = 0; y & lt; input.GetLength (1); y ++) दोडी [x, y] = इनपुट [x, y , फ़ाइलें]; Dict.Add (फ़ाइलें, दो डी); } भी मदद कर सकता है। ध्यान दें कि यह मानता है कि आपका z मान अद्वितीय हैं।

c# - How to extract just the date from a DateTimeOffsetDateTimeOffset object -

एक DateTimeOffsetDateTimeOffset ऑब्जेक्ट से सिर्फ दिनांक कैसे निकाल सकते हैं? मैंने सोचा कि तिथि संपत्ति केवल तारीख भाग लौटाएगी। लेकिन, मैं पूरी तिथि रखता हूं, अर्थात 7/17/2014 12:00:00 पूर्वाह्न -04: 00 । मुझे केवल 7/17/2014 दिनांक भाग प्राप्त करना है। यह मेरा कोड है। Func & lt; DataRow, string, DateTimeOffset & gt; GetFieldNullableDate = (पंक्ति, फ़ील्ड) = & gt; {If (! String.IsNullOrWhiteSpace ((पंक्ति [क्षेत्र]? String.Empty) .String ())) DateTimeOffset.Parse (पंक्ति [फ़ील्ड] वापस। स्ट्रिंग ()) दिनांक; और नल वापसी; }; मदद करने के लिए धन्यवाद आप इसे केवल MM / DD / YYYY निकालने के लिए उपयोग कर सकते हैं दिनांकटाइमऑफ़सेट? चर। दिनांकटाइमऑफ़सेट? TestOne = नल; Var अंतिम = testOne.HasValue? TestOne.Value.Date.ToShortDateString (): शून्य; // रिक्त दिनांकटाइमऑफ़सेट? TestTwo = नया दिनांकटाइमऑफ़सेट (डेटटाइम। आज); Var notNull = testTwo.HasValue? TestTwo.Value.Date.ToShortDateString (): null; // 7/24/2014

actionscript 3 - HTML embeded swf behaving awkwardly -

I have recently completed a Flash Website and have tested it offline on the local host, and it is completely work done. I uploaded the website: and this happens when things get weird When offline, I put the music of the website in the loop. It works very well, the song will reach the end, play again. But online, it reaches halfway through the song, "It assumes" that it is finished, and loops Not all this, though, there are countless other problems, and they point to all the fact that Flash Website / Songs are not being fully loaded. I'm small and simple: I want swf and song to start playing after and they while They are loading how do I do this? In this way I am loading SDF at this time: & lt; Html & gt; & Lt; Body marginwidth = "0" margin-light = "0" bg paint = "# 000000" & gt; & Lt; Embed width = "100%" height = "100%" name = "plugin" src = "RPG 33.swf" type = ...

Returning binary file from controller in ASP.NET Web API -

I am working on a web service using the new webapp of ASP.NET MVC which will complete the binary files, Mostly .cab and .exe files. The following control method works, which means that it gives a file, but this content type is Application / Jason : Public HTTPPRESS Pacemase & lt; Stream & gt; Post (string version, string environment, string file type) {var path = "" C: \ temp \ test.exe "; Var stream = new filestream (path, filemod.open); new HTTPPRESS pacesmasters & lt; stream & gt; Return the stream, the new MediaTapHeader value ("App / octet-stream");} Is there a better way to do this? Its a content to use one with the property Shish: // Using System.IO; // Using System.Net.Http; // Using System.Net.Http.Headers; Public HttpResponseMessage Post (string Version, string environment, string filetype) {var path = "" C: \ temp \ test.exe "; HttpResponseMessage results = new HTTPPasspacemessage (HTTPPatus c...

android - Red mark over google play services lib in eclipse -

मैंने सेरेवल गाइड का पालन किया है, पुस्तकालय फ़ोल्डर को अपने कार्यक्षेत्र में कॉपी किया है और फिर उसे आयात किया है ग्रहण, मैंने इसे एक दर्जन बार साफ किया है और फिर भी यह लाल विस्मयादिबोधक चिह्न है जो मुझे जारी रखने में असमर्थ बनाता है जैसा कि आप देख सकते हैं कि बिन फ़ोल्डर में कोई .जर नहीं है और मुझे पता नहीं क्यों, एंड्रॉइड मैनिफ़ेस्ट। एक्सएमएल रिक्त है, मुझे नहीं पता कि यह क्या है। कृपया मदद करें, मैंने इस पर घंटे बिताई है और मैं इसे समझ नहीं पा रहा हूं। मेरे लिए , AndroidManifest.xml में निम्न शामिल हैं: & lt;? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & Lt; मैनिफ़ेस्ट xmlns: एंड्रॉइड = "http://schemas.android.com/apk/res/android" package = "com.google.android.gms" एंड्रॉइड: versionCode = "4323030" एंड्रॉइड: versionName = "4.3.23 (106972 9-030) "& gt; & Lt; उपयोग- sdk एंड्रॉइड: minSdkVersion = "9" / & gt; & Lt; / प्रकट & gt;