---
title: "Discussion on \"Solving error NETSDK1152 when upgrading to .NET 6\" | Hashnode"
description: "Discussion on \"Solving error NETSDK1152 when upgrading to .NET 6\". The cause of the error\nWhen using the .NET 6 SDK to run dotnet publish, you may get the error NETSDK1152. The full error looks something like this:\n\nC:\\Program Files\\dotnet\\sdk\\6.0.101\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.ConflictResolution.t..."
url: "https://hashnode.com/posts/solving-error-netsdk1152-when-upgrading-to-net-6/6218d9db085330c3f79bf781"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Solving error NETSDK1152 when upgrading to .NET 6](https://techblog.timhilton.xyz/solving-error-netsdk1152-when-upgrading-to-net-6?utm_source=hashnode&utm_medium=feed)

The cause of the error When using the .NET 6 SDK to run dotnet publish, you may get the error NETSDK1152. The full error looks something like this: C:\\Program Files\\dotnet\\sdk\\6.0.101\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.ConflictResolution.t...

Feb 25, 2022 · 2 min read · techblog.timhilton.xyz  
Updated Sep 29, 2022  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#dotnetcore](https://hashnode.com/tag/dotnetcore)
-   [#build](https://hashnode.com/tag/build)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

  
[View profile](https://hashnode.com/@tjhilton)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
