• About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us
AimactGrow
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing
No Result
View All Result
AimactGrow
No Result
View All Result

Upgrading a 20 12 months previous College Venture to .NET 6 with dotnet-upgrade-assistant

Admin by Admin
April 18, 2025
Home Coding
Share on FacebookShare on Twitter



I wrote a Tiny Digital Working System for a 300-level OS class in C# for faculty again in 2001 (?) and later moved it to VB.NET in 2002. That is all pre-.NET Core, and on early .NET 1.1 or 2.0 on Home windows. I moved it to GitHub 5 years in the past and ported it to .NET Core 2.0 on the time. At this level it was 15 years previous, so it was cool to see this challenge working on Home windows, Linux, in Docker, and on a Raspberry Pi…a machine that did not exist when the challenge was initially written.

NOTE: If the timeline is complicated, I had already been working in business for years at this level however was nonetheless plugging away at my 4 12 months diploma at evening. It will definitely took 11 years to finish my BS in Software program Engineering.

This night, as the kids slept, I needed to see if I might run the .NET Improve Assistant on this now 20 12 months previous app and get it working on .NET 6.

Let’s begin:

$ upgrade-assistant improve .TinyOS.sln
-----------------------------------------------------------------------------------------------------------------
Microsoft .NET Improve Assistant v0.3.256001+3c4e05c787f588e940fe73bfa78d7eedfe0190bd

We're occupied with your suggestions! Please use the next hyperlink to open a survey: https://aka.ms/DotNetUASurvey
-----------------------------------------------------------------------------------------------------------------

[22:58:01 INF] Loaded 5 extensions
[22:58:02 INF] Utilizing MSBuild from C:Program Filesdotnetsdk6.0.100
[22:58:02 INF] Utilizing Visible Studio set up from C:Program FilesMicrosoft Visible Studio2022Preview [v17]
[22:58:06 INF] Initializing improve step Choose an entrypoint
[22:58:07 INF] Setting entrypoint to solely challenge in answer: C:UsersscottTinyOSsrcTinyOSCoreTinyOSCore.csproj
[22:58:07 INF] Recommending executable TFM net6.0 as a result of the challenge builds to an executable
[22:58:07 INF] Initializing improve step Choose challenge to improve
[22:58:07 INF] Recommending executable TFM net6.0 as a result of the challenge builds to an executable
[22:58:07 INF] Recommending executable TFM net6.0 as a result of the challenge builds to an executable
[22:58:07 INF] Initializing improve step Again up challenge

See how the method is interactive on the command line, with colour prompts and a collection of dynamic multiple-choice questions?

Updating .NET project with the upgrade assistant

Curiously, it builds on the primary attempt, no errors.

Once I manually have a look at the .csproj I can see some bizarre model numbers, seemingly from some not-quite-baked model of .NET Core 2 I used a few years in the past. My spidey sense says that is flawed, and I am assuming the improve assistant did not perceive it.

    

I additionally be aware a commented-out reference to ILLink.Duties which was a preview function in Mono’s Linker to scale back the ultimate dimension of apps and tree-trim them. A few of that performance is constructed into .NET 6 now so I will use that through the construct and packaging course of later. The reference just isn’t wanted immediately.

I am gonna blindly improve them to .NET 6 and see what occurs. I might do that by simply altering the numbers and seeing if it restores and builds, however I may attempt dotnet outdated which stays a beautiful instrument within the upgrader’s toolkit.

image

This “outdated” instrument is sweet because it talks to NuGet and confirms that there are newer variations of sure packages.

In my exams – which had been simply batch information at this early time – I used to be calling my dotnet app like this:

dotnet netcoreapp2.0/TinyOSCore.dll 512 scott13.txt  

This may change to the fashionable type with simply TinyOSCore.exe 512 scott13.txt with an exe and args and no ceremony.

Publishing and trimming my TinyOS turns into only a 15 meg EXE. Good contemplating that the .NET I want is in there with no separate set up. I might flip this little artificial OS right into a microservice if I needed to be completely additional.

dotnet publish -r win-x64 --self-contained -p:PublishSingleFile=true -p:SuppressTrimAnalysisWarnings=true

If I add

-p:EnableCompressionInSingleFile=true

Then it is even smaller. No code modifications. Run all my exams, appears good. My challenge from college from .NET 1.1 is now .NET 6.0, cross platform, self-contained in 11 megs in a single EXE. Candy.


Sponsor: At Rocket Mortgage® the work you do round right here will probably be 100% impactful however gained’t take all of your free time, providing you with the right work-life steadiness. Or as we name it, tech/life steadiness! Study extra.




About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, marketing consultant, father, diabetic, and Microsoft worker. He’s a failed stand-up comedian, a cornrower, and a guide writer.

facebook
bluesky
subscribe
About   E-newsletter

Internet hosting By
Hosted on Linux using .NET in an Azure App Service








Tags: .NETdotnetupgradeassistantProjectUniversityUpgradingyear
Admin

Admin

Next Post
Get $175 off the Change 2 once you commerce in your outdated Change at GameStop

Get $175 off the Change 2 once you commerce in your outdated Change at GameStop

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended.

SMIL on? | CSS-Methods

SMIL on? | CSS-Methods

April 4, 2025
The best way to make Google Maps your default iPhone navigation app

iPhone 17 value: Trump’s tariffs appear inevitable

May 26, 2025

Trending.

Industrial-strength April Patch Tuesday covers 135 CVEs – Sophos Information

Industrial-strength April Patch Tuesday covers 135 CVEs – Sophos Information

April 10, 2025
Expedition 33 Guides, Codex, and Construct Planner

Expedition 33 Guides, Codex, and Construct Planner

April 26, 2025
How you can open the Antechamber and all lever places in Blue Prince

How you can open the Antechamber and all lever places in Blue Prince

April 14, 2025
Important SAP Exploit, AI-Powered Phishing, Main Breaches, New CVEs & Extra

Important SAP Exploit, AI-Powered Phishing, Main Breaches, New CVEs & Extra

April 28, 2025
Wormable AirPlay Flaws Allow Zero-Click on RCE on Apple Units by way of Public Wi-Fi

Wormable AirPlay Flaws Allow Zero-Click on RCE on Apple Units by way of Public Wi-Fi

May 5, 2025

AimactGrow

Welcome to AimactGrow, your ultimate source for all things technology! Our mission is to provide insightful, up-to-date content on the latest advancements in technology, coding, gaming, digital marketing, SEO, cybersecurity, and artificial intelligence (AI).

Categories

  • AI
  • Coding
  • Cybersecurity
  • Digital marketing
  • Gaming
  • SEO
  • Technology

Recent News

Search In all places Optimization Information (+ Free Guidelines)

Search In all places Optimization Information (+ Free Guidelines)

June 19, 2025
Texas Devices to make ‘historic’ $60bn US chip funding

Texas Devices to make ‘historic’ $60bn US chip funding

June 19, 2025
  • About Us
  • Privacy Policy
  • Disclaimer
  • Contact Us

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved

No Result
View All Result
  • Home
  • Technology
  • AI
  • SEO
  • Coding
  • Gaming
  • Cybersecurity
  • Digital marketing

© 2025 https://blog.aimactgrow.com/ - All Rights Reserved