Comments (9)
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.
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.
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.
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.
The Basket API has also now been updated to .NET 6 : 33e6405
from fotostoriomicroservices.
The Identity API has also been updated: 0b16926
from fotostoriomicroservices.
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.
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.
All parts of the application have now been updated to .NET 6.
from fotostoriomicroservices.
Related Issues (20)
- Product details and Inventory HOT 5
- Time to consider .NET 7 HOT 4
- Extending Serilog and Seq to all projects
- Marketing client application HOT 2
- Email confirmation when registering
- Exception Middleware HOT 1
- Integration Tests using SQL Server and EF
- Use OpenIddict for identity HOT 1
- Identity API refactor in Accounts Controller
- Update to .NET 8 HOT 2
- Breaking changes in .NET 8 Docker images HOT 1
- Health Checks failing & missing icons HOT 2
- Migrate gateways from Ocelot to YARP? HOT 1
- Ordering API returning 404 to admin orders page HOT 2
- Use of AutoMapper in Discount Grpc HOT 1
- Basket API and AutoMapper
- Adding an Ordering/Marketing Aggregator?
- Stripe API updates HOT 2
- Move site images from imgbb.com HOT 2
- Hard-coded image references should be dynamic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fotostoriomicroservices.