
Chilliwack, British Columbia Web Design & Development Articles
Latest articles from around the web
Last month I learned how to convert a 13 year old .NET app to modern .NET 5 with the "try convert" tool. It was surprisingly easy to bring a "legacy" app well forward to a pretty darn cool self-contained app. That means NO .NET install. Just run an exe and you're set. I found this 5 year old .NET application called FloatingGlucose from Bj?rn that connects to a Nightscout open source diabetes server like the one I use and displays your current glucose values in a floating popup on your Windows desktop. It can also connect to the Dexcom Share servers. However, the app has an installer and requires .NET 4.6 to be installed. How quickly - and successfully - can I convert it to a self-contained .NET 5 app? I don't know, I haven't written that part of this blog post yet. I'm still up here. Let's try it. Ok, I've forked it here https://github.com/shanselman/FloatingGlucose and I will bring it down to my local machine. I started using the GitHub CLI lately and it's great, so I'll clone with it. NOTE: I'm surprised I can't clone AND get submodules with the GH CLI so I guess I need to git submodule update --init --recursive after the initial use of GH. And looks like GH is out of date so I'll 'winget install gh' to update it while I'm here. Cool. Now I'll use the dotnet upgrade assistant. This tutorial will show you how. The upgrade assistant is a whole text-based command-line wizard to help you update solutions.Upgrade StepsEntrypoint: C:githubFloatingGlucoseFloatingGlucoseFloatingGlucose.csprojCurrent Project: C:githubFloatingGlucoseFloatingGlucoseFloatingGlucose.csproj1. [Skipped] Back up project2. [Next step] Convert project file to SDK style3. Clean up NuGet package references4. Update TFM5. Update NuGet Packages6. Add template files7. Upgrade app config files a. Convert Application Settings b. Disable unsupported configuration sections8. Update source code a. Apply fix for UA0012: 'UnsafeDeserialize()' does not exist9. Move to next projectChoose a command: 1. Apply next step (Convert project file to SDK style) 2. Skip next step (Convert project file to SDK style) 3. See more step details 4. Configure logging 5. Exit> 1[22:25:49 INF] Applying upgrade step Convert project file to SDK style[22:25:49 INF] Converting project file format with try-convert, version 0.7.222801[22:25:52 INF] [try-convert] Conversion complete![22:25:52 INF] Project file converted successfully! The project may require additional changes to build successfully against the new .NET target.[22:25:55 INF] Upgrade step Convert project file to SDK style applied successfullyPlease press enter to continue... So I'm going step by step through the process, answering questions. OK, done. Let's see if it builds. Looks like it doesn't. It has a custom setup PowerShell script that is trying to call InnoSetup and make an installer. Since I want to make a version that doesn't require an installer, I can remove all that from the PostBuildEvent and PreBuildEvent in the main csproj file. Now I'm getting a number of compiler errors that aren't related to the conversion, but rather a misunderstanding about how exceptions are to be re-thrown. When you say "throw err" you're actually losing your call stack and context. else{ //rethrow because we don't know how to handle other errors throw err;} Instead, just:else{ //rethrow because we don't know how to handle other errors throw;} throw to maintain the current error context. I'm just tidying up at this point. I see a few warnings like:C:githubFloatingGlucoseFloatingGlucoseFormWebbrowser.cs(10,6): warning SYSLIB0003: 'PermissionSetAttribute' is obsolete: 'Code Access Security is not supported or honored by the runtime.' and I comment them out as they are vestigial at this point. I'm down to a final error:Could not resolve this reference. Could not locate the assembly "System.Windows.Forms.DataVisualization". Interesting, what's this about? Looks like not all of the Windows Forms DataVisualization project came along for .NET 5? The older code is here https://github.com/dotnet/winforms-datavisualization for .NET Core 3. The readme says "We consider the System.Windows.Forms.DataVisualization deprecated and we only provide it to ease porting to .NET Core 3" However, Angelo Cresta has a .NET 5 version here https://github.com/AngeloCresta/winforms-datavisualization-net5 so I can try updating to his version. I'll bring it in as a Submodule and then add it as a Project Reference from the main FloatingGlucose app. I'll also bump the JSON.NET reference from 9 to 13.0.1 NOTE: I'll also put in a dotnet_diagnostic.CA1416.severity = none in an .editorconfig to keep the compiler from warning me that this requires Windows 7 and above. Boom, this 5 year old app is now a .NET 5 app and builds clean. SHIP IT. Well, test and run it first, eh?2>Done building project "FloatingGlucose.csproj".========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== Nice, a clean warning-free build AND it starts up immediately AND looks OK on my 4k monitor likely due to the work that was done to make WinForms apps scale nicely on high dpi systems. Does it work? Darn right it does. Fabulous. Now I have a little widget I can have on my screen at all times that shows my current sugars! And finally, can I make it a single no-install EXE that doesn't even need .NET installed?dotnet publish --configuration Release --runtime=win10-x64 --output ./publish -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true -p:DebugType=None .FloatingGlucoseFloatingGlucose.csproj Yes, now I have a single EXE I can run of this now .NET 5 WinForms app: Fab. That was fun. Took about 2 hours. Consider if YOU can update your "legacy" codebase to .NET 5 and reap the benefits! Here is the 'works on my machine' late night release. PR's welcome. Night! Sponsor: The No. 1 reason developers choose Couchbase? You can use your existing SQL++ skills to easily query and access JSON. That's more power and flexibility with less training. Learn more.(C) 2021 Scott Hanselman. All rights reserved.
R is a programming language that solely focuses on statistical analysis and visualization. It is used extensively by statisticians, data analysts, data scientists, and more to gain valuable insights from data. Like all programming languages, R has a learning curve that can be difficult for some. In this article, we will go through some courses […] The post Top Online Courses to Learn R Programming appeared first on Developer.com.
INTRODUCTION Appeal customers with Product videos using Odoo Marketplace YouTube Channel Feeds! Increasing user engagement in the marketplace is one of the major concerns of any owner. However, it is also crucial to do it without increasing the bounce rate. One of the simplest ways is to embed a video on the marketplace about the [...]
Technology has done our world wonders: from advancements in medicine, travel, communication, and not to mention our own day-to-day lives. There's no doubt that it has "transformed human experience" by impacting the way our society functions, as well as how we interact with one another and ourselves. But is this actually a good thing?
Microservices are data-engineering approaches that help reduce the human requirements for maintenance. Many DevOps departments suffer from chronic understaffing, but employees can manage a network... The post Gearing Up For The Next Generation: 5 Things You Need To Know About Microservice Architecture appeared first on Web Development & Technology Resources.
In this post, we want to focus on the process of hiring a software development agency. When is it better to outsource instead of setting up in-house teams? How can you find the right software company for your project, and how do you verify their expertise, authenticity, and credibility? The […] The post Software Development Agency - When to Hire and How to Choose the Best Company to Cooperate? first appeared on ASPER BROTHERS.
Designing for user experiences is what all designers do. UX is often thought of as the preserve of app or web designers; however, even a print designer laying out a magazine anticipates reader reaction to the scale of type, the placement of adverts, and the art direction of successive stories. Because all designers design user […] The post When UX Goes Bad (and How to Fix It) first appeared on Webdesigner Depot.
Low light photography is one of the most difficult skills in photography but if executed correctly, one of the most spectacular. Whether you’re photographing the
Did you know that there is a community for people like you? One that comes up with bold designs and other big creative ideas? Where you can participate in contests and win cash to fuel your creative interests? You didn’t? Feel invited into the Legion of the Bold… Disclaimer: We've partnered with Frito-Lay in this sponsored campaign. What is the Legion of the Bold? After the immense success of Doritos' "Crash The Super Bowl" video contest, the brand decided to take their consumer engagement to the next level. Thus, the Legion of the Bold was born. The Legion of the Bold is a creative community that empowers fans to create unique and inspiring content for the chance to earn brand recognition, have their work highlighted by a major brand and earn cash prizes to fuel their own personal creative interests. Doritos Legion of the Bold encourages open innovation and creativity among its list of highly creative members. More than a dozen "contests of skill" (briefs) have hit the community ranging from creating a "Love Ballad" to developing a script for an on-air spot to designing a fresh t-shirt design. The contests are uniquely designed to both challenge the creative community […]
On the Laravel News site they've posted an interesting perspective that reflects on some of the speakers from this year's Laracon US (2018) sharing the books some of them have written. We love books here at Laravel News! The Laracon US 2018 all-star lineup of speakers delivered stellar talks, and many of them have written best-selling books! We thought it would be a good idea to compile a list of books authored by Laracon speakers as well as other books mentioned during their talks. Books mentioned include: Laravel Up and Running Clean Architecture Rework Refactoring to Collections There are several others in the list, each with a brief summary of their contents and links to a few other related resources.
About The Coding Studio Inc.
Developing professional web applications
for Chilliwack, British Columbia, for 20 years!
Consultation Services
With years of experience and many satisfied customers, we provide the direction and assistance you require.
Custom Web Development
We specialize in complex custom web projects, from small business websites to corporate applications.
Increase Profits
We create an experience which converts more leads and retains more customers, which increases profits.
Reduce Expenses
We help to simplify and automate employee tasks, which reduces payroll and other expenses.
What customers have said
TestimonialsWhitehorse,Yukon Web Design & Development
Saint-Zotique,Quebec Web Design & Development
LAncienne-Lorette,Quebec Web Design & Development
Cardwell,New Brunswick Web Design & Development
Howick,Ontario Web Design & Development
Spiritwood No. 496,Saskatchewan Web Design & Development
Grey,Manitoba Web Design & Development
Saint-Elzéar,Quebec Web Design & Development