# Issue packaging (Resolved)

**URL:** <https://forums.unrealengine.com/t/issue-packaging-resolved/231242>\
**Category:** Plugins\
**Tags:** unreal-engine, UE5-0\
**Created:** [May 26, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242 "2021-05-26T18:08:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Defuse\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/defuse_studios/32/1220031_2.png) [@Defuse\_Studios](https://forums.unrealengine.com/u/Defuse_Studios)\
**Post date:** [May 26, 2021, 6:08pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/1 "2021-05-26T18:08:03Z")

</div>

Hey guys,

I am unable to package and get the following error.

[https://gyazo.com/552f7c1a3fd0644c340272be1e6f8a33](https://gyazo.com/552f7c1a3fd0644c340272be1e6f8a33)

I have both visual studio 2017 and 2019 installed both have the correct install settings with the appropriate Unreal Engine installer options ticked on. I have also gone to the link referenced in the error and installed .NET 5.0 and it still didn’t work even after restarting the PC. I have also tried with .NET 3.0 and .NET 6.0 but still no luck. I’ve tried reinstalling UE5 as well. Below is the info from the package menu.

[https://gyazo.com/0dc133af40b198c31d371ca18ba734be](https://gyazo.com/0dc133af40b198c31d371ca18ba734be)  
[https://i.gyazo.com/ae0c3517b6c4bee549d764014839ea92.mp4](https://i.gyazo.com/ae0c3517b6c4bee549d764014839ea92.mp4)

The error also references a hostfxr.dll file which isnt in location below:  
C:\Program Files\Epic Games\UE\_5.0EA\Engine\Binaries\DotNET\AutomationTool

Any help would be amazing  
Thanks guys

---

<div class="post-metadata">

**Author:** ![Amanda.Schade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Amanda.Schade](https://forums.unrealengine.com/u/Amanda.Schade)\
**Post date:** [May 26, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/2 "2021-05-26T18:25:58Z")

</div>

You may need to update your .NET SDK—some users have overcome the error by downloading this one: [Download .NET Core 3.1 (Linux, macOS, and Windows)](https://dotnet.microsoft.com/download/dotnet/3.1)

---

<div class="post-metadata">

**Author:** ![Defuse\_Studios](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/defuse_studios/32/1220031_2.png) [@Defuse\_Studios](https://forums.unrealengine.com/u/Defuse_Studios)\
**Post date:** [May 26, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/3 "2021-05-26T18:39:07Z")

</div>

Amazing thanks so much, just to clarify for anyone else I had downloaded using the wrong link here is a direct link to the correct version

[https://download.visualstudio.microsoft.com/download/pr/e2c406c9-d40d-442c-b6cd-bc60a84d159f/556f8d45b3f5fa932785e138468a6ee3/dotnet-sdk-3.1.115-win-x64.exe](https://download.visualstudio.microsoft.com/download/pr/e2c406c9-d40d-442c-b6cd-bc60a84d159f/556f8d45b3f5fa932785e138468a6ee3/dotnet-sdk-3.1.115-win-x64.exe)

---

<div class="post-metadata">

**Author:** ![dizzzzie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dizzzzie](https://forums.unrealengine.com/u/dizzzzie)\
**Post date:** [May 26, 2021, 7:53pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/4 "2021-05-26T19:53:35Z")

</div>

I wanted to say thank you for posting your problem and answer, I ran into this exact issue this morning as well. Now I’m packaging properly.

---

<div class="post-metadata">

**Author:** ![David.Sullins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Sullins](https://forums.unrealengine.com/u/David.Sullins)\
**Post date:** [May 26, 2021, 8:50pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/5 "2021-05-26T20:50:47Z")

</div>

You shouldn’t need to reinstall any dotnet core because the 5.0EA already ships with the correct dotnet core. The automation scripts just don’t seem to use it. You can work around this by setting the environment variable DOTNET\_ROOT to %ENGINE\_DIR%\Engine\Binaries\ThirdParty\DotNet\Windows (replace %ENGINE\_DIR% with your 5.0EA install directory).

This is applicable if you see the hostfxr.dll error or if you see something like “The specified framework ‘Microsoft.WindowsDesktop.App’, version ‘3.1.0’ was not found”.

In my opinion this could be a simple fix on Epic’s side to actually use the dotnet core that the engine comes with.

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [May 26, 2021, 11:10pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/6 "2021-05-26T23:10:07Z")

</div>

Unfortunately, none of the proposed solutions worked for me for either building from source or packaging a game with the prebuilt UE5 binary.

It’s clear that the bundled DotNet is being used as I get **Using bundled DotNet SDK** from the `Build.bat`, so that’s not the issue.

For some reason UBT is being configured for `CompilerVersion = VisualStudio2017` despite even changing `Engine/Config/BaseEngine.ini` to have `CompilerVersion=VisualStudio2019` under `[/Script/WindowsTargetPlatform.WindowsTargetSettings]`.

I only could get it to work by manually adding the `-2019` command line parameter at the end of calling `Build.bat` in Visual Studio. This solution is kind of ugly when considering how the engine will call the automation tool during packaging.

I didn’t find anything in my environment variables that would indicate 2017 is being preferred.

Any other recommended paths here?

---

<div class="post-metadata">

**Author:** ![Ixiguis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Post date:** [May 26, 2021, 11:17pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/7 "2021-05-26T23:17:21Z")

</div>

Uhm, where’s the Package Project button?

Edit: Ah, under the Platforms button (next to the Play button)

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [May 26, 2021, 11:53pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/8 "2021-05-26T23:53:56Z")

</div>

I figured out my particular issue and it’s highly uncommon, but incase someone is in the same boat:

At some point, I added `C:\Users\<user>\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml` and hardcoded the compiler to `VisualStudio2017`. I did this because of some silly configuration I was figuring out with developing code plugins.

Deleting the file worked, and probably is the correct path forward when developing on both UE4 and UE5 targets.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [May 27, 2021, 1:21am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/9 "2021-05-27T01:21:28Z")

</div>

It’s @Ixiguis !!!

So nice to see you again!

It’s going to be fun exploring UE5 with you and the rest of the Community!

❤

Rama

---

<div class="post-metadata">

**Author:** ![Lord\_Cail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Cail](https://forums.unrealengine.com/u/Lord_Cail)\
**Post date:** [May 27, 2021, 8:55am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/10 "2021-05-27T08:55:27Z")

</div>

Worked! Thx @Defuse_Studios!

---

<div class="post-metadata">

**Author:** ![Schytheron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Schytheron](https://forums.unrealengine.com/u/Schytheron)\
**Post date:** [May 27, 2021, 6:19pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/11 "2021-05-27T18:19:41Z")

</div>

How exactly do you set the DOTNET\_ROOT environment variable @David.Sullins? Can you explain?

---

<div class="post-metadata">

**Author:** ![David.Sullins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Sullins](https://forums.unrealengine.com/u/David.Sullins)\
**Post date:** [May 27, 2021, 7:06pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/12 "2021-05-27T19:06:53Z")

</div>

A few methods to set an environment variable in Windows are listed here [How do I set system environment variables in Windows 10? - Super User](https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10)

---

<div class="post-metadata">

**Author:** ![Schytheron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Schytheron](https://forums.unrealengine.com/u/Schytheron)\
**Post date:** [May 28, 2021, 1:02pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/13 "2021-05-28T13:02:43Z")

</div>

@David.Sullins I already did this before, using the “Advanced System Settings” option. When I go to the “Environment Variables” window “DOTNET\_ROOT” is nowhere to be found (it isn’t listed when using the PowerShell method either). If I create a new environment variable, name it “DOTNET\_ROOT” and then set it’s value to the path you mentioned earlier nothing happens. Absolutely no difference, still can’t package my Windows projects.

Can you show me your “Enviroment Variables” window (or a list of your environment variables)? It’s very strange that “DOTNET\_ROOT” doesn’t exist for me.

---

<div class="post-metadata">

**Author:** ![Radiant\_Realms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/radiant_realms/32/1199490_2.png) [@Radiant\_Realms](https://forums.unrealengine.com/u/Radiant_Realms)\
**Post date:** [May 28, 2021, 5:12pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/14 "2021-05-28T17:12:28Z")

</div>

Hello everyone, I have been struggling with the same problem.

Here is a screenshot of the the message I get under the packaging tool dropdown for windows:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/ce249d921dd8b3b51fe91d6d49cec8f1f755568c.png)

And here is a screen shot from the output log.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/e/3e1884c944a2f8e5134798aac427d5c23c0d8d85.png)

Any assistance would be much appreciated.

---

<div class="post-metadata">

**Author:** ![RealTaku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RealTaku](https://forums.unrealengine.com/u/RealTaku)\
**Post date:** [May 29, 2021, 5:31am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/15 "2021-05-29T05:31:17Z")

</div>

Hi guys, I have the same problem as you and have tried all the solutions listed here. Unfortunately without success.

![Screenshot 2021-05-29 002418](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/4/541e456ebf0bc4109e4515232297702a82ba7144.png)

Strangely, it doesn’t show any version under “SDK Managment”, but it does under “All Devices” …

And when I try anyway, the following error messages come up:

 ![Screenshot 2021-05-29 003216](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/2/024407753b0661c41f8667a0a4c54b9c3cbdb83d.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Radiant\_Realms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/radiant_realms/32/1199490_2.png) [@Radiant\_Realms](https://forums.unrealengine.com/u/Radiant_Realms)\
**Post date:** [May 29, 2021, 2:09pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/16 "2021-05-29T14:09:57Z")

</div>

We seem to have very similar issues, I just hope that because the title of this thread now has ‘resolved’ added to it, that it doesn’t stagnate the discussion

---

<div class="post-metadata">

**Author:** ![Camta005](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/camta005/32/88710_2.png) [@Camta005](https://forums.unrealengine.com/u/Camta005)\
**Post date:** [May 30, 2021, 5:44am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/17 "2021-05-30T05:44:30Z")

</div>

> [@Defuse\_Studios](#):
>
> Amazing thanks so much, just to clarify for anyone else I had downloaded using the wrong link here is a direct link to the correct version
> 
> [https://download.visualstudio.microsoft.com/download/pr/e2c406c9-d40d-442c-b6cd-bc60a84d159f/556f8d45b3f5fa932785e138468a6ee3/dotnet-sdk-3.1.115-win-x64.exe](https://download.visualstudio.microsoft.com/download/pr/e2c406c9-d40d-442c-b6cd-bc60a84d159f/556f8d45b3f5fa932785e138468a6ee3/dotnet-sdk-3.1.115-win-x64.exe)

Thanks this worked for me.

---

<div class="post-metadata">

**Author:** ![Radiant\_Realms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/radiant_realms/32/1199490_2.png) [@Radiant\_Realms](https://forums.unrealengine.com/u/Radiant_Realms)\
**Post date:** [May 31, 2021, 7:04am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/18 "2021-05-31T07:04:26Z")

</div>

Hi everyone, It is good to see that a lot of people have been able to find the solution on this thread. Unfortunately I am still struggling with this issue, an assistance would be much appreciated?

---

<div class="post-metadata">

**Author:** ![RealTaku](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RealTaku](https://forums.unrealengine.com/u/RealTaku)\
**Post date:** [May 31, 2021, 8:30am UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/19 "2021-05-31T08:30:13Z")

</div>

I have also tried a few things and unfortunately nothing has helped…

---

<div class="post-metadata">

**Author:** ![Radiant\_Realms](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/radiant_realms/32/1199490_2.png) [@Radiant\_Realms](https://forums.unrealengine.com/u/Radiant_Realms)\
**Post date:** [June 1, 2021, 3:00pm UTC](https://forums.unrealengine.com/t/issue-packaging-resolved/231242/20 "2021-06-01T15:00:07Z")

</div>

The strangest thing is that my old PC seems to be just fine, but I still can’t package on my preferred workstation. Maybe a full uninstall, and then re-install might help. (only hoping)

[Next page](https://forums.unrealengine.com/t/issue-packaging-resolved/231242.md?page=2)
