How to solve a failure of NuGet restores "Package Download Failure," "Cannot Resolve Assembly," "New Attempt to 'FindPackagesByIdAsync" (impossible to access a deleted object) from Visual Studio 2019 package manager
Sometimes it is necessary to call an async method from a method that is not marked async, for example during a synchronous version implementation of an asynchronous method. For this, it is possible to build a synchronous task by using an asynchronous lambda function. For example, either the following asynchronous method, taking a parameter of … Continue reading async / await: calling an async method from a non-async method
GMini Translator 2.0 is a free tool for the Windows desktop that allows you to quickly translate text from the Google Translate service. I wrote this little software in WPF / C# 6.0 / .NET 4.6.2 to have a tool more ergonomic than its counterpart Google translate in the WEB browser: support of the clipboard, … Continue reading GMini Translator 2.0: a free text translator for the Windows desktop
Obtaining information about the caller of a method is very useful in the property binding and log function scenarios. Traditionally, the following processes would be implemented: to identify the calling method: To simply identify the calling method, one can still examine the stack trace, in which the StackFrame objects (namespace System.Diagnostics) provide the GetMethod and … Continue reading C #: Get information about the caller of a method
According to the dictionary (not that of resources , but rather that of the English language: the freed dictionary, "an inflector is the way a word is changed or modified in form in order to reach a new specific meaning". In the case of a WPF resource dictionary, a key inflection mechanism makes it possible … Continue reading WPF: Developing an inflector of resource dictionary keys
GMini Translator is a windowed tool for the Windows desktop that allows fast translations of short texts from the Google Translate translation service as provided by the Google Chrome. Thus no API key is needed to run the service. However, it has limitations (text size, automatic hyphenation on punctuation, ...). The GMini Translator tool circumvents … Continue reading GMini Translator: an ergonomic text translator for the Windows desktop
1. What is ANTLR? ANTLR4 is a lexer / parser generator. A parser takes a text input, and according to a grammar, extracts the recognized lexicons terms (action of the lexer), and produce an AST: Abstract Syntax Tree (action of the parser). We can have parsers without grammars (the PEG: Parsing Expression Grammar, which are … Continue reading First steps with ANTLR4 in C #
Your latest software creation is ready and should be disseminated beyond your borders? So it's time to translate (localization) the resources used. We will see in this ticket a simple way to do it using the appropriate tools: • Visual studio compiler msbuild • free tool Visual Locbaml 1. Preparing the application for localization The … Continue reading Localize a .NET application with locbaml – excel – csvtransformer
The official Google Translate API is available to businesses by paying a license fee ... But it is possible to call the secret API translate.googleapis.com which is used internally by the extension for Google Translate Chrome! On his website Digital Inspiration, the famous Amit Agarwal (historically the 1st Indian blogger) informs us of this possibility … Continue reading Use Google Translate for free on the command line
The CSV Comma Separated Values) files are text files that describe a table. Columns are identified on a line of text by a particular character. For CSV it is normally a comma (comma). The common separators are: comma (,) semicolum (;) tabulation (\t) space ( ) We often use Excel to open the CSV, and … Continue reading Transform the separators of a CSV file
The ClickOnce Microsoft technology will install a Windows application from a single link on a web page. In practice it is a file (setup.exe or .application), which allows the Windows system to start the installation by recovering all the necessary files from the WEB server. This technology can also work via the network neighborhood. The … Continue reading Installing applications using Microsoft ClickOnce technology
Wpf Easing fonctions, otherwise known as the acceleration functions, are functions that slow down or accelerate the motion of an animation according to a mathematical formula. In this post we will see how to make a small WPF application that lists and draws the Easing functions available in the WPF framework. Let's start with the … Continue reading Trace the WPF easing functions
The animation of the zoom (see the previous post: Zoom the UI with WPF ) is done simply by using the mechanism of timer and synchronization provided by the classes WPF. In the case of zoom, you must use the DoubleAnimation value animation class. The code previously seen that applies the zoom value to the … Continue reading Animated Zoom with WPF
How to add the ability to zoom a WPF control and content? We must nest the control or controls that we want to zoom simultaneously in one Grid, on which we apply a transformation Layout type transformation scale. For example : [xml] <Grid.LayoutTransform> </Grid.LayoutTransform> [/xml] the following C # method will apply the desired zoom … Continue reading Zoom the UI with WPF
The animation is an important part of user experience in modern interfaces, whether Web or Desktop. WPF responds to this problem in a very complete way by providing in the .NET framework classes of time management (timers, editing table) and synchronization of controls (calculation and updating of properties). In this article we will see a … Continue reading Animate under WPF via C # extension methods – Part 1
Build a complex layout in CSS is not easy. The Microsoft WPF library, available under .NET, is used to describe UIs with XML tagged language. The designers of this library offer "panel" controls (like elements in HTML) whose purpose is to specify the layout of the elements of the UI (other panels, texts, images, etc … Continue reading WPF Panels – porting in HTML & Javascript – part 1
GMini Translator A Windows desktop tool for text translation GMini Translator is a windowed tool for the Windows desktop that allows fast translation of short texts from the Google Translate translation service as it is available to the Google Chrome browser translation extension. Thus, no API key is needed to run the service. However, it … Continue reading GMini Translator: an ergonomic text translator for the Windows desktop
.Net Accurate Logger for C#
A light and fast logger for C#, fully customizable. Log to console, file, EventLog, Winsock
Google translate free client class library
client for C# of the google translate service. Connect as a Chrome plug-in