Saturday, August 26, 2023

Wizard

good topic on wizard

  1. Nullable Types in C#
  2. In this article, we will extensively break down the concept of Nullable types in C#. We will discuss the kinds of Nullable types in C#, their characteristics, and how we can use them when building applications.

  3. SimpleWizardUpdate
  4. The SimpleWizardUpdate is a complete rewrite of the SimpleWizard project that was first posted on CodeProject in 2010 but later moved to github. The last activity was 5 years ago and the owner has shut the project down.

  5. Nullable value types (C# reference)
  6. A nullable value type T? represents all values of its underlying value type T and an additional null value. For example, you can assign any of the following three values to a bool? variable: true, false, or null. An underlying value type T cannot be a nullable value type itself.

  7. Type-testing operators and cast expressions - is, as, typeof and casts
  8. These operators and expressions perform type checking or type conversion. The is operator checks if the run-time type of an expression is compatible with a given type. The as operator explicitly converts an expression to a given type if its run-time type is compatible with that type. Cast expressions perform an explicit conversion to a target type. The typeof operator obtains the System.Type instance for a type.

  9. Default values of C# types (C# reference)
  10. The following table shows the default values of C# types:

  11. Nullable reference types
  12. In a nullable oblivious context, all reference types were nullable. Nullable reference types refers to a group of features enabled in a nullable aware context that minimize the likelihood that your code causes the runtime to throw System.NullReferenceException. Nullable reference types includes three features that help you avoid these exceptions, including the ability to explicitly mark a reference type as nullable:

  13. Digging Into Nullable Reference Types in C#
  14. This topic has been on my TODO: list for quite a while now. As I work with clients, many of them are just ignoring the warnings that you get from Nullable Reference Types. When Microsoft changed to make them the default, some developers seemed to be confused by the need. Here is my take on them: I also made a Coding Short video that covers this same topic, if you’d rather watch than read:

  15. The current .NET SDK does not support targeting. Net 6.0 Use target 5.0 or lower On Visual 2022 17.3.1
  16. The current .NET SDK does not support targeting. Net 6.0 Use target 5.0 or lower On Visual 2022 17.3.1

  17. Adding configuration to windows forms on .NET 5.0
  18. I'm migrating an existing windows forms C# app to .NET 5.0 and I'm trying to follow the instrutions presented on the migration docs. Everything is working ok, but there's still one thing to do: migrate the debug/release settings from app.config files.

  19. How to upgrade a Windows Forms desktop app to .NET 7
  20. This article describes how to upgrade a Windows Forms desktop app to .NET 7. Even though Windows Forms runs on .NET, a cross-platform technology, Windows Forms is still a Windows-only framework. The following Windows Forms-related project types can be upgraded with the .NET Upgrade Assistant:

  21. Upgrade a Windows Forms App to .NET 5 with the .NET Upgrade Assistant
  22. Upgrade a Windows Forms App to .NET 5 with the .NET Upgrade Assistant

Friday, August 25, 2023

PPArser

PPArser

  1. PParser
  2. Defining innovation beyond the limits of Chomsky

  3. PParser - Part 2
  4. Specify grammatical contexts

Sunday, August 13, 2023

build version

build version

    My Installation on my PC

  1. Automatic Versions 2
  2. Automatically increments or updates version numbers in a project, based on configurable settings. You can set all Version attributes in any assembly, including .Net Core and .Net Standard assemblies, to specify a custom System.Version format, or you can set the AssemblyInfo V...

  3. Automatic Versions 3
  4. Automatically increments or updates version numbers in a project, based on configurable settings. You can set all Version attributes in any assembly, including .Net Core and .Net Standard assemblies, to specify a custom System.Version format, or you can set the AssemblyInfo V...

    Good Articles

  5. Project Version Updater
  6. pdates the AssemblyVersion and FileVersion attributes in the AssemblyInfo file for a project

  7. Versioner: An AssemblyInfo version incrementer
  8. A simple C# program that will increment the AssemblyVersion attribute of an AssemblyInfo.cs file.

  9. How to auto increment version number of assembly in .NET and Visual Studio using C#
  10. In .NET, version information for an assembly follows following format - [*.*.*.*].

  11. Visual Studio: How to Auto Increment Version Number
  12. This post shows you How to auto-increment version number of assembly in .NET If you want to increase the assembly version automatically, you can do the following in Visual Studio.

  13. Autoincrement Version in Visual Studio
  14. Autoincrement version in Visual Studio

  15. How To Update Assembly Version Number Automatically
  16. A small utility which allows to modify AssemblyVersion attribute specified in AssemblyInfo.cs files

  17. Project Definition and Versioning
  18. Project Structure and build scenarios

  19. Versioning Controlled Build
  20. A Visual Studio add-in and command-line utility that automates versioning of .NET and VC++ projects

  21. Getting File Version Information
  22. Getting file version information using C# 2.0.

  23. Automatic Build Versioning in Visual Studio
  24. Automatic build version awareness, incrementing, and archiving.

  25. How to automatically increment build versions in Visual Studio
  26. Some instructions on how to automatically increment the build number of your Visual Studio project. What was important to me was to automatically increment the build and version number of my executable files using Visual Studio. Some important StackOverflow links helped me to achieve this:

  27. A Simple Auto-Incrementing Version Number for C# / 25 May 2020
  28. There are many solutions out there, but for posterity's sake (read: I am forgetful which link I used last time) I will record the easiest to implement and manage here. Maybe it will help someone (besides myself).

  29. How to set your App's Version Number to auto-increment the Build and Revision portions and Display the Version in a Label
  30. Setting an assembly's version number to a "starting point" but allowing Visual Studio to auto-increment the Build and Revision elements of the Version Info, and then display that in an About box

  31. Versioning Controlled Build
  32. A Visual Studio add-in and command-line utility that automates versioning of .NET and VC++ projects

  33. SharpSVN module

  34. SharpSvn
  35. This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-

  36. SharpSvn
  37. Subversion wrapped for .Net 4.0+ and .Net Core SharpSvn wraps the Subversion client (and a few more low level) apis in an easy to use .Net friendly client.

  38. SharpSVN: A Gentle Introduction
  39. SharpSVN is a really useful library which encapsulates the functionality of the Subversion client so we can leverage it programmatically from .NET applications. I can think of many uses for this. In the past, in some of the automation frameworks I’ve worked with, updating the source code from SVN has been a manual task ran weekly. Using SharpSVN, we could write a simple console application to accomplish this. It could also be useful to automate repetitive SVN tasks in a development environment.

  40. SharpSvn Brings Subversion to .NET
  41. CollabNet now hosts and supports AnkhSVN, the Subversion plugin for Visual Studio. Some of our goals are to help the AnkhSVN community grow and accelerate the development of the plugin. To kickstart this, we started by collaboratively creating a roadmap for AnkhSVN. Subversion 1.5 compatibility is number one on that roadmap, including good merge support. To properly support Subversion 1.5, we either needed to update our internal C# Subversion binding (NSvn) or take advantage of SharpSvn, a .NET binding for Subversion. We chose the SharpSvn route. To understand why, let's learn more about SharpSvn.

  42. SharpSvn — Connecting and fetching logs from Remote repositories — Rahul Singla
  43. In continuation to my pevious blog post on defining configuration path to connect to remote repos using SharpSvn, I present quick sample code for connecting to and fetching logs from a remote svn repo requiring authentication.

  44. SharpSvn – SharpSvn.SvnFormatException: Can’t determine the user’s config path
  45. Till the beginning of this month, I was a regular SVN user using SVN as my Version Control System for many projects. But then, somewhere in the second week of this month, I have turned a SVN developer (not writing code for SVN itself, but providing solutions off SVN).

  46. 【杂项】SharpSVN的官方使用方法参考
  47. 【杂项】SharpSVN的官方使用方法参考

  48. C# (CSharp) SharpSvn SvnClient Examples
  49. good examples...

Saturday, August 12, 2023

configuration manager

set up my own application configuration: start from easier ones...

    Quick Jump

  1. Read/Write App.Config File with .NET 2.0
  2. Learn what .NET 2.0 offers you to read/write App.Config files

  3. Four Ways To Read Configuration Setting In C#
  4. This article will demonstrate how we can get/read the configuration setting from Web.Config or App.Config in C#. There are different ways to set the values inside the configuration file and read their values, which are based on the defined keys. We define those values inside the configuration section, which might be needed to make it more secure. It can be some secret keys or the value, which should be received frequently.

  5. C# Application Configuration Basics
  6. Configurations are integral to applications that has to deal with user preferences or configurable components. C# .NET offers two standard means of handling configurations. They are rich and extendable, however, the defaults are adequate for the basic needs. Here I review the basic usage of the two configuration methods.

  7. App.Config: Basics and Best Practices
  8. In one of my previous posts, I wrote about the .NET build configuration system. I mentioned the app.config file, but didn’t really dive into it. So let’s take a closer look at this file now. When you create a (non-web) .NET Framework application in Visual Studio, an app.config file is added to your project. When you create a class library or a .NET Core project, such a file is not included, although it can be done afterward.

  9. What Is CSharp App Config And How To Use It
  10. Csharp's App Config is a cornerstone for developers working with .NET applications. This article delves into its practical applications, offering a clear understanding of how to efficiently manage application settings.

  11. Use Visual C# to store and retrieve custom information from an application configuration file
  12. This article introduces how to store custom information from a configuration file that you can retrieve later during run time by its associated application. It's helpful when you must define data that's associated with an application.

  13. Manage application settings (.NET)
  14. Application settings enable you to store application information dynamically. With application settings, you can use a client computer to store information that shouldn't be included in the application code at runtime. Application settings can include connection strings, user preferences, and more.

  15. What is App.config in C#.NET? How to use it?
  16. I have done a project in C#.NET where my database file is an Excel workbook. Since the location of the connection string is hard coded in my coding, there is no problem for installing it in my system, but for other systems there is.

    More Basics

  17. Multiple app.config in C# Solution based on Build Selection
  18. This is a nifty trick which I have learned in the recent months, so I thought to share …

  19. App.Config in C#
  20. This tutorial will explain the App.Config file in a C# project and demonstrate how it can be used.

  21. How to use App.config in Visual Studio C# .NET
  22. Add reference to System.Configuration :

  23. docs/ide/how-to-add-app-config-file.md
  24. good collection of config tricks

  25. Creating Custom Configuration Sections in App.config
  26. I recently started a new job as a Software Developer working on extending Sage software functionality. Much of this development is done in Visual C#. Through the projects I have been given, there have been a few concepts I have learnt that have proven to be very useful. One such concept is custom Configuration Sections in a Visual C# application’s App.config file.

  27. How to use Configuration in a C# Console Project
  28. Its very common and good practice to use a configuration file if you want your application to be externally configurable. This article shows how to create and use one in your C# Console Application.

  29. Four Ways to Read Configuration Setting in C#
  30. This article will demonstrate us how we can get/read the configuration setting from Web.Config or App.Config in C#. There are different purposes to set the values inside the configuration file and read their values based on defined keys, we define those values inside the configuration section which might be need to make it more secure, it could be some secret keys or the value which should get frequently.

  31. C# Example: Reading Configuration Values from App.config File
  32. C# Example: Reading Configuration Values from App.config File

  33. C# – Store Variables and Collections in Config file
  34. In this article, we will talk about the config file used for a C# application. What is the goal of it, and how to use it. How to get values and create your own config section.

  35. Using the Settings file in C#
  36. As a software developer, how many times have you needed to store your application’s settings in a file, be it an ini file, an xml file, or maybe even a plain text file? It is a common requirement for many developers, and with C# it is really simple to do.

  37. C# custom App.config sections
  38. C# custom App.config sections: source code example

    intermediate

  39. Configuration Management
  40. his article shows how to store/handle configuration settings in a config file and backend database.

  41. Managing configuration settings persistence in .NET applications
  42. A simple way to manage config settings read/write persistence through ADO.NET and XML.

  43. Cinchoo - Simplified Configuration Manager
  44. Easy configuration management in .NET

  45. Unraveling the Mysteries of .NET 2.0 Configuration
  46. In this article, you will learn how to utilize the powerful new .NET 2.0 configuration features to simplify and centralize your configuration code.

  47. Custom Configuration Sections in .NET
  48. Learn how to create custom configuration sections in .NET to help you simplify your application's configuration

  49. Implementing Protected Configuration With Windows Apps
  50. How to use the ProtectedConfiguration API to protect sensitive information in your application’s configuration file.

  51. Application and component configuration
  52. Application and component configuration from XML .config files.

  53. Manage .NET configuration file appsettings section
  54. This is .NET 2.0 Windows Form Application wich can help you to none tech user to update you appsettings in your application configuration file.

  55. Creating a Custom Configuration Section in C#
  56. Creation of a custom configuration section similar to AppSettings. Stores settings for both Development and Production environments, and returns the appropriate settings based on the machine’s configuration in which the application is being executed.

  57. Modifying Configuration Settings at Runtime
  58. This article will demonstrate how to add, delete, and update key value pairs in an App.config file.

  59. Custom Configuration Sections in .NET 2.0
  60. Creating a custom configuration section in .NET 2.0.

  61. TreeConfiguration - configuration made as simple as it gets (or sets)
  62. Manage configuration data with a few lines of code. Very few.

  63. C# Tutorial - How to Display a Value from TextBox as Label Output
  64. This video will demonstrate how to get value from textbox and show it as output on label

Visual Studio project building error in C# project

when I rebuild my project #zLoader#, I ran into this problem.

  1. Build error: "The process cannot access the file because it is being used by another process"
  2. I have found a simple solution which works for me. It goes like this: When the problem occurs, just change the building configuration at the top (if in “Release” to “Debug” and vice versa), build and then change back to previous configuration and build again.

  3. FIX The Process Cannot Access the File Because It Is Being Used by Another Process
  4. FIX The Process Cannot Access the File Because It Is Being Used by Another Process

  5. Visual Studio: The process cannot access the file .dll because it is being used by another process
  6. Open up the project (.csproj) file in an XML editor Add this property to the first <PropertyGroup > in the project <GenerateResourceNeverLockTypeAssemblies >true </GenerateResourceNeverLockTypeAssemblies >

using NuGet package in Visual Studio project

after upload my project into GitHub, how to use NuGet package in my local project?

  1. VisualStudio.gitignore
  2. this is the updated stanadard .gitignore file to use my project..

  3. Restore packages with NuGet Package Restore
  4. NuGet Package Restore restores all of a project's dependencies that are listed in either a project file or a packages.config file. You can restore packages manually with nuget restore, dotnet restore, msbuild -t:restore, or through Visual Studio. The dotnet build and dotnet run commands automatically restore packages, and you can configure Visual Studio to restore packages automatically when it builds a project.

  5. Package consumption workflow
  6. Between nuget.org and private package galleries that your organization might establish, you can find tens of thousands of highly useful packages to use in your apps and services. But regardless of the source, consuming a package follows the same general workflow.

  7. Omitting NuGet packages in source control systems
  8. Developers typically omit NuGet packages from their source control repositories and rely instead on package restore to reinstall a project's dependencies before a build.

  9. 7.11 Git Tools - Submodules
  10. Submodules It often happens that while working on one project, you need to use another project from within it. Perhaps it’s a library that a third party developed or that you’re developing separately and using in multiple parent projects. A common issue arises in these scenarios: you want to be able to treat the two projects as separate yet still be able to use one from within the other.

Thursday, August 10, 2023

building installer and check Windows OS version

installer

  1. Inno Setup Dependency Installer
  2. Download and install any dependency such as .NET, Visual C++ or SQL Server during your application's installation!

  3. Windows 11 Version Detection
  4. In this article, you will see how to detect Windows 11 Version by using C# and C++.

  5. Sharp3D.Math - A 3D math library for .NET
  6. started building this library as part of a C# 3D engine I am currently working on. Having noticed that there isn't any decent open-source C# library for dealing with complex math out there I decided to focus my efforts on this library and release it to the world.