# How to Handle Build Errors After Using a Telerik WinForms .NET Core Template

## Environment

| Product Version | Product                      | Author                                                                          |
| --------------- | ---------------------------- | ------------------------------------------------------------------------------- |
| 2022.1.222      | UI for WinForms for WinForms | [Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova) |

## Description

Create a Telerik WinForms application from the template:

![netsdk1141-error 001](https://www.telerik.com/products/winforms/documentation/assets/c5fbc5d8ca43a74cace5b1de725bbb3a/netsdk1141-error001.png)

![netsdk1141-error 002](https://www.telerik.com/products/winforms/documentation/assets/1839842627cee3c7a3bf1c9cc55b202e/netsdk1141-error002.png)

The respective NuGet package (Net60) is installed:

![netsdk1141-error 003](https://www.telerik.com/products/winforms/documentation/assets/a8169a383178420b3909316d07fbe9b6/netsdk1141-error003.png)

There are cases in which it may not be possible to build the project due to the following errors:

![netsdk1141-error 005](https://www.telerik.com/products/winforms/documentation/assets/149740eb6ae5100bc44827325548ef46/netsdk1141-error005.png)

![netsdk1141-error 009](https://www.telerik.com/products/winforms/documentation/assets/5489dbde299bf7516fe23fd47a778b97/netsdk1141-error009.png)

More information about it is available here:

* [NETSDK1141: Unable to resolve the .NET SDK version as specified in the global.json](https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1141?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk\(NETSDK1141\)%26rd%3Dtrue)

* [NETSDK1013: The TargetFramework value was not recognized](https://docs.microsoft.com/en-us/dotnet/core/tools/sdk-errors/netsdk1013?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk\(NETSDK1013\)%26rd%3Dtrue)

* [NuGet Error NU1105](https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1105?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk\(NU1105\)%26rd%3Dtrue)

> note Have in mind that these are some of the possible errors that may occur due to the same reason, the global.json. file.

All of these errors are due to a mismatch between the target framework and the specified SDK version. They may occur if there is a **global.json** file inside of some parent folder which refers a different sdk version, for example:

![netsdk1141-error 004](https://www.telerik.com/products/winforms/documentation/assets/dfc5c724ee6a1c1f5fdb37e9cf69ef2f/netsdk1141-error004.png)

## Solution

There are two approaches that can handle this situation:

1\. Create a local **global.json** file and specify the correct sdk version to be used:

![netsdk1141-error 006](https://www.telerik.com/products/winforms/documentation/assets/ef5f20b2c931fac29632edda4943f864/netsdk1141-error006.png)

![netsdk1141-error 007](https://www.telerik.com/products/winforms/documentation/assets/f6a59e08cc7984de7f0b8cc976ab7664/netsdk1141-error007.png)

Thus, the project rebuild will be successful:

![netsdk1141-error 008](https://www.telerik.com/products/winforms/documentation/assets/c92621d8902ee078c587cff0c77e5bae/netsdk1141-error008.png)

2\. Move the **global.json** file from the parent folder to another destination together with the projects that depend on this file.

## See Also

* [NET Core Design Time](https://www.telerik.com/products/winforms/documentation/core/design-time)
