Click here to Skip to main content
16,016,669 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 4:27
mveRichard MacCutchan1-Dec-23 4:27 
GeneralRe: How to "update" old .NET code to current versions Pin
Andre Oosthuizen1-Dec-23 22:09
mveAndre Oosthuizen1-Dec-23 22:09 
GeneralRe: How to "update" old .NET code to current versions Pin
Richard MacCutchan1-Dec-23 22:18
mveRichard MacCutchan1-Dec-23 22:18 
GeneralRe: How to "update" old .NET code to current versions Pin
Andre Oosthuizen1-Dec-23 22:59
mveAndre Oosthuizen1-Dec-23 22:59 
GeneralRe: How to "update" old .NET code to current versions Pin
Dave Kreskowiak1-Dec-23 5:18
mveDave Kreskowiak1-Dec-23 5:18 
GeneralRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 6:09
jschell1-Dec-23 6:09 
GeneralRe: How to "update" old .NET code to current versions Pin
Gerry Schmitz1-Dec-23 6:57
mveGerry Schmitz1-Dec-23 6:57 
AnswerRe: How to "update" old .NET code to current versions Pin
jschell1-Dec-23 6:23
jschell1-Dec-23 6:23 
Steps to upgrade.

Start with a fresh directory/folder. Do NOT attempt to work this in your existing application. Even if you want to be in there when you are done only move it there once it works.

Ideally you should start with the Visual Studio version that the library was built with. Why? Because you first need to verify that you can build it at all with the closest approximation to an ideal environment.

Myself I would do a 'clean' (the older VS) before moving on.

If it doesn't build then you will need to figure that out first.
Ideally there should be a way to test (unit tests) so if so run those.
If tests are missing then it would probably be a good idea to at least create a basic test framework that can exercise some of the functionality.

Now you take a snap shot - check the code into source control. This is your baseline - version 1.

------------------------------------------
Now start the new VS and attempt to load the solution. Given the dates I suspect it is going to modify the solution.

If you are lucky this solution will still build and tests will run. If yes then check it in, version 2. Otherwise you might as well move on the next part immediately.

------------------------------------------
Most of the work is here.

There are some project configuration values that probably need to be updated (different Net versions.) You can try compiling after that but expect it to fail.

You will need to update the libraries. Plural because there will probably be more than one.

Compile.

Then start looking at the errors. And fix them. Breaking changes mean exactly that in that you might need to modify the code so it works with a newer version.

This could require either no work or a substantial amount of work.

Once the errors are gone you should take a look at the warnings too. Sometimes those warnings can represent functionality that isn't going to work.

----------------------------
The above is an ideal scenario.

In a less than ideal scenario you would need to upgrade, completely, to an older version of VS first. So do all of the above. Then repeat with the newest version that you actually want.
GeneralRe: How to "update" old .NET code to current versions Pin
lewist572-Dec-23 3:27
lewist572-Dec-23 3:27 
QuestionWorking with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx24-Oct-23 11:34
professionaljkirkerx24-Oct-23 11:34 
AnswerRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz24-Oct-23 19:32
mveGerry Schmitz24-Oct-23 19:32 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx24-Oct-23 20:48
professionaljkirkerx24-Oct-23 20:48 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx26-Oct-23 9:30
professionaljkirkerx26-Oct-23 9:30 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz27-Oct-23 6:45
mveGerry Schmitz27-Oct-23 6:45 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx27-Oct-23 9:05
professionaljkirkerx27-Oct-23 9:05 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz28-Oct-23 5:37
mveGerry Schmitz28-Oct-23 5:37 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx28-Oct-23 17:28
professionaljkirkerx28-Oct-23 17:28 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz29-Oct-23 6:04
mveGerry Schmitz29-Oct-23 6:04 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx29-Oct-23 11:46
professionaljkirkerx29-Oct-23 11:46 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
Gerry Schmitz29-Oct-23 17:24
mveGerry Schmitz29-Oct-23 17:24 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx29-Oct-23 17:50
professionaljkirkerx29-Oct-23 17:50 
GeneralRe: Working with fonts and chars (⬤) in Win forms and OS versions, 10 compared to 7 Pin
jkirkerx30-Oct-23 10:30
professionaljkirkerx30-Oct-23 10:30 
QuestionCapturing a still from a RTSP stream Pin
Member 1499589618-Sep-23 23:43
Member 1499589618-Sep-23 23:43 
AnswerRe: Capturing a still from a RTSP stream Pin
Richard Deeming19-Sep-23 0:17
mveRichard Deeming19-Sep-23 0:17 
AnswerRe: Capturing a still from a RTSP stream Pin
Richard MacCutchan19-Sep-23 1:52
mveRichard MacCutchan19-Sep-23 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.