Console Apps
30 TopicsI created an Outlook add-in sample with python for the community
Hello everyone, I just finished creating an Outlook apps addin template for python! https://github.com/Masterjx9/Outlook-Addin-TaskPane-python Its basically a modified version of the office addin taskpane JS repository from here: https://github.com/OfficeDev/Office-Addin-TaskPane-JS combined with a modified version of the azure webapp sample from here: https://github.com/Azure-Samples/python-docs-hello-world Why is this good? - This allows you to use Python as the backend for your Outlook addin instead of using node.js. So you can use flask, and any other python modules with your outlook addin. Microsoft ONLY has examples from https://asp.net/ or node.js for there office addin samples, so I am hoping this will help others who want to make an addin for outlook or office in general but with using something like python.9.6KViews1like0CommentsVS 2022 and the execution of new Angular Template
Hi, Visual Studio 2022 has a new template for Angular projects and it's very nice. I'm not Angular specialist, so I'm not sure if my question will be a bit silly.... For the site to be executed, there is a need of a command prompt window to be opened and make the typescript compilation using node, besides provisioning a server. The problem is this window sometimes open, sometimes not. When it decides not to open, I get lost about what to do to ensure it will open again on next execution. Sometime it appears to be related to the execution of a Build before the execution, but not always. What may I be doing wrong, how could I work around this and execute the project easier? A workaround for this is to execute npm start on the package manager console window. But by doing this, when we need to compile again we need to close Visual Studio and open again. Any better way to work with this?3.6KViews0likes0CommentsMicrosoft.ACE.OLEDB.12.0 Issue
So I have a C# app that reads from Excel (using Microsoft.ACE.OLEDB.12.0) in order to then add those rows into a larger consolidated sheet. It's worked fine for a long time. Suddenly the past couple of weeks I received trouble reports from endusers that the app isn't functioning. When I debugged it, seems that the Excel source files have zero rows read. No runtime errors or anything. I have verified that the column headings are correct, against the OleDbCommand.CommandText query. And the column headings are based on a generic template that all of these source sheets use. The source sheets have rows of valid data. A year or two ago I recall there was a Windows Update that affected some of these Excel OLEDB operations. Due to MDAC era components being deprecated. Hence why I changed over to ACE OLEDB 12.0. Since I did that this app has run without fail. Anyone know if there was indeed a Windows Update that would've affected things? Running this on Windows 10 Pro. I can provide my source code, although it's been unmodified and is relatively verbose.Solved1.4KViews0likes1CommentIssue with unexpected capability Microsoft.storeFilter.core.notSupported_8wekyb3d8bbwe
Dear comunity, we are preparing an update of our app on the Microsoft partner Center portal. After uploading the new “.appxupload” package, in addition to the capabilities we defined in the app manifest, we also find the following capability: "Microsoft.storeFilter.core.notSupported_8wekyb3d8bbwe" We tried to execute again the app build, also verifying the app manifest, but we still obtain such extra capability that seems to be added after the upload of “.appxupload” package. We also tried to search in the Web for it, but we didn’t get any clarification. Can you please provide us clarifications about such extra capability? Can be an issue during review phase for the app we have to release? Thank you in advance, Kind regards,Solved1.2KViews0likes2CommentsUnicode Characters Encoding Issue .Net core
Hello All, I am having an encoding Issue in .Net core Application. Here are the details: When i submit a request through postman to my .net core web api with request body contains special characters as below (жарко). I could able to serialize them and get the response back as special characters. Followed microsoft document: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/character-encoding { "Date": "2019-08-01T00:00:00-07:00", "TemperatureCelsius": 25, "Summary": "жарко" } But when i submit the same Request using SoapUi tool, the Summary field in the request body is converting as (??????) and am unable to serialize them. I have followed the jsonserializerOptons but did not work for me . options = new JsonSerializerOptions { Encoder = JavaScriptEncoder.Create(UnicodeRanges.BasicLatin, UnicodeRanges.Cyrillic), WriteIndented = true }; jsonString = JsonSerializer.Serialize(weatherForecast, options); Could someone help me, whats is happening with SoapUi request and unable to serialize it? thanks in advance.1.2KViews0likes1CommentSuggestions on a music player app
Could someone please suggest how to start a app that plays music locally on a windows machine running a playlist but can be controlled on the LAN using a Blazor screen ? I'm not yet concerned with the Blazor app hearing audio, just controlling the player. Able to to see what is playing, hit play, edit the playlist etc. I'm guessing the player could be a console app with a SQLite database for the playlist, then the Blazor app would connect to the same database and make changes? Would this be Blazor Wasm ? Would a separate console player be best? Any suggestions appreciated.1.1KViews0likes1CommentProduct Life Cycle Management on .Net Core
I am curious to learn if anyone else has the same challenge. We have software and provide support for 3 years which is built on .Net Framework and due to end of the support of .Net framework next year we're planning on adapting .Net6 Challenge is if we adopt .Net 6 there'll still be previous versions built on .Net framework which need support according to our 3 years support policy. - How do you handle this? - Do you use patches? Any ideas? Do you know any software companies or examples? Thank you in advance.983Views0likes1Comment关于Microsoft Defender对VisualBasic.Net编写的软件报毒问题
大家好,我之前使用VS2019写过 VB.net 程序,该程序使用了Winform框架,除了导入了system.data.sqlite之外,其余任何组件都是使用的winform自带的组件,没有使用第三方库,并且仅仅只是一个数据库查询以及创建窗体的功能,将它编译好后,在打开时Microsoft Defender对其报毒(Trojan.xxx.A.xx)了,并且它不是每次打开都会报毒,是偶尔报一次毒,这对我的体验很不好,我无法找到它报毒的原因,请问这应该怎么解决?或者说我在写代码时应该注意什么以避免此问题。期待收到大家的回复,非常感谢950Views1like0CommentsResourceReader prepends 4 bytes when debugger is attached
Edit Today discovered my workaround isn't always working. I've tested using ResourceWriter then immediately using ResourceReader, and confirmed there's extra padding. (So that rules out CodeDomProvider.CompileAssemblyFromSource.) Below is my new workaround. Setting using (var rw = new ResourceWriter(resPath)) { for(int i = 0; i < resName.Length; i++) { string n = resName[i]; string nl = resName[i] + "Length"; byte[] o = ToByteArray(data[i]); if (o.GetType() == typeof(string)) { rw.AddResource(n, o); } else { rw.AddResourceData(n, "ResourceTypeCode.ByteArray", o); } rw.AddResource(nl, o.Length); // Needed to reliably determine length (see GetResource) } } Getting using (var rr = new ResourceReader(stream)) { string dataType = null; byte[] data = null; string dataLengthType = null; byte[] bDataLength = null; int dataLength = -1; try { rr.GetResourceData(resName, out dataType, out data); rr.GetResourceData(resName + "Length", out dataLengthType, out bDataLength); dataLength = BitConverter.ToInt32(bDataLength, 0); } catch (Exception) { continue; } if (data.Length != dataLength) { int offset = data.Length - dataLength; byte[] data2 = new byte[data.Length - offset]; Array.Copy(data, offset, data2, 0, data2.Length); return data2; } else { return data; } } Original I'm building something that uses CodeDomProvider.CompileAssemblyFromSource to build a self-contained installer, which includes resources. If I'm running from the debugger, I have to remove the first 4 bytes (e.g. corrupts JSON). If I'm running from binary (outside VS), it's fine. The first 4 bytes can be, from what I remember: NUL: ASCII (0) EOT: ASCII (3 or 4?) ®: ANSI (174) Here's a snippet of how I have to work around it: using (var rr = new ResourceReader(stream)) { string dataType = null; byte[] data = null; try { rr.GetResourceData(resName, out dataType, out data); } catch (Exception) { continue; } if (Debugger.IsAttached) { byte[] data2 = new byte[data.Length - 4]; Array.Copy(data, 4, data2, 0, data2.Length); return data2; } else { return data; } } Has anyone seen this? I'm targeting .NET framework 4.7.2.898Views0likes1Comment