GithubHelp home page GithubHelp logo

Comments (9)

DavidAJohn avatar DavidAJohn commented on July 20, 2024

As a test, I've updated the nuget packages and the Dockerfile in the Marketing Gateway to .NET 6. This also meant updating Ocelot to v18.0.

The project builds successfully. There don't appear to be any problems, but updating the store and admin gateways in the same way might expose any underlying issues with Ocelot 18 and the current configs,

Although it's not required, I may also switch it to use the simplified Program.cs-only implementation that is standard in new .NET 6 projects.

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

Switched the Marketing Gateway project to also use the .NET 6 Program-only model here: 459c094

After updating the nuget packages (from the previous commit here): 7041ebd :

It's just a case of re-writing the Program.cs file, then adding the implict usings tag to the .csproj file and rebuilding. The rebuild generates the global usings file in the hidden 'obj' folder.

You can then also right-click the Program.cs using refs and choose 'Remove and Sort Usings'. It seems to remove the ones that are now in the generated global usings file. Neat.

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

Just as a reminder, I made the mistake of forgetting to add the previous contents of the Program.cs file back in after moving the Startup config stuff across. As detailed here: 9b2fa3d

That of course included the crucial Ocelot json config file references.

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

Further progress on the .NET 6 updates:

The Admin Gateway has been updated: fba9e21

The Store Gateway has been updated: 082f8e7

And the most complex of the updates so far, the Products Aggregator: 952ce26

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

The Basket API has also now been updated to .NET 6 : 33e6405

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

The Identity API has also been updated: 0b16926

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

The Inventory API has now been updated, as detailed in this commit: e83bc05

This was a bit more of an issue because of some major breaking changes in the Npqsql library for PostgreSQL/EF, involving DateTime values with or without timezones.

For now, I've simply opted out of this by adding a line into the Program.cs file.

It may be worth revisiting this later, to fully understand the implications of the changes.

The upgrade guide can be found here.

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

The remaining .NET 5 projects have all now been updated to .NET 6, including:

Products API : a3e4d61

Ordering API : d7475eb

EventBus class library : 7396218

from fotostoriomicroservices.

DavidAJohn avatar DavidAJohn commented on July 20, 2024

All parts of the application have now been updated to .NET 6.

from fotostoriomicroservices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.