Alex's Coding Blog
  • Home
  • About
  • Projects
  • Contact me

Blog

Solved: Invalid combination of TargetFramework and AzureFunctionsVersion is set

  • July 25, 2023 July 25, 2023
  • by Alexander

Run into the following error while upgrading one of my Azure Function from .NET 5 to .NET 6.

Invalid combination of TargetFramework and AzureFunctionsVersion is set.

The reason that .NET 5 is supported by Azure Function v3 and .NET is supported by Azure Function v4.

Thus, these lines in project file should do the job:

<PropertyGroup>  
  <TargetFramework>net6.0</TargetFramework> 
  <AzureFunctionsVersion>v4</AzureFunctionsVersion>
  <OutputType>Exe</OutputType>
</PropertyGroup>
Azure Functions

Debugging microservices is always tricky and time consuming specially without proper code level logging in place.

Meet Konso. It's developed as a solution for this challenge and can help with saving development effort for your team up to 30%. 🎯🎉

The key functions are:

🔥 Centralized logging for your microservices
🔥 Tracing with metrics and value tracking events
🔥 Ad-Hoc events exploration
🔥 Saving your queries
🔥 Create alerts and get notified


You can start collecting you project's logs in 5 minutes. 🕐💪

To Learn more about logging tool, book a free demo.
To get started for free, Create your free account now

Alexander Lvovich

Solution Architect and Software Developer.

Share on:

No comments are allowed for this post

Recent Posts

  • When Clouds Clash: Understanding Kubernetes Cluster Failures and How to Overcome Them
  • Collecting .NET API metrics with Konso
  • Applying Value Tracking for your .NET 7 application with Konso
  • How to disable object model validation .NET 7
  • Easily track and troubleshoot errors in your .NET 7 web app using Konso's logging feature

Categories

  • Azure
  • Architecture
  • .NET Core
  • Certification
  • DevOps
  • How-to
  • Azure Functions
  • Serverless
  • Cosmos DB
  • Security
  • Thoughts
  • Kubernetes
© Copyright 2023, Alexander Lvovich. Theme by Colorlib
I use cookies and similar technologies on our website to enhance your browsing experience and analyze website traffic. By clicking "Accept," you consent with my Privacy Policy to the use of these technologies.
Accept